HerdSoftware  0.4.0
TopScdBuilder_v2.h
Go to the documentation of this file.
1 /*
2  * TopScdBuilder_v2.h
3  *
4  * Created on: 17 February 2023
5  * Author: Nicola Mori
6  */
7 
9 
12 #ifndef TOPSCDBUILDER_V2_H_
13 #define TOPSCDBUILDER_V2_H_
14 
15 class G4LogicalVolume;
16 
23 public:
25  TopScdBuilder_v2(SCDOptions &options);
26 
31  G4LogicalVolume *Build();
32 
38  [[nodiscard]] const std::vector<float> &NormalPositions() const { return m_normPos; };
39 
40 private:
42 
43  std::vector<float> m_normPos; // position of each layer along the normal
44 };
45 
46 #endif /* TOPSCDBUILDER_V2_H_ */
TopScdBuilder_v2::TopScdBuilder_v2
TopScdBuilder_v2(SCDOptions &options)
Constructor.
Definition: TopScdBuilder_v2.cpp:26
SCDOptions
Definition: DetStructs.h:404
TopScdBuilder_v2::m_normPos
std::vector< float > m_normPos
Definition: TopScdBuilder_v2.h:43
TopScdBuilder_v2::m_options
SCDOptions & m_options
Definition: TopScdBuilder_v2.h:38
TopScdBuilder_v2::NormalPositions
const std::vector< float > & NormalPositions() const
Get the normal positions of all layers.
Definition: TopScdBuilder_v2.h:38
TopScdBuilder_v2::Build
G4LogicalVolume * Build()
Builds the top SCD.
Definition: TopScdBuilder_v2.cpp:28
DetStructs.h
TopScdBuilder_v2
Builder class for top SCD.
Definition: TopScdBuilder_v2.h:22