CbmRoot
CbmLitTrackingGeometryConstructor.h
Go to the documentation of this file.
1 
8 #ifndef CBMLITTRACKINGGEOMETRYCONSTRUCTOR_H_
9 #define CBMLITTRACKINGGEOMETRYCONSTRUCTOR_H_
10 
11 #include "TObject.h"
15 
16 #include <string>
17 
18 class TGeoManager;
19 class CbmTrdGeoHandler;
20 class TProfile2D;
21 
23 public:
29 
35 
41 
46  template<class T>
48 
54 
60 
65  template<class T>
67 
69 
70  void ConvertTProfile2DToLitMaterialGrid(const TProfile2D* profile,
72  Double_t maximumValue = 0);
73 
78  Int_t GetNofTrdStations();
79 
84  Int_t GetNofMuchStations();
85 
90  Int_t GetNofMuchTrdStations();
91 
96  Int_t GetNofMvdStations();
97 
102  Int_t GetNofStsStations();
103 
108  Int_t GetNofMuchAbsorbers();
109 
113  // Int_t ConvertTrdToAbsoluteStationNr(
114  // Int_t station,
115  // Int_t layer);
116 
120  Int_t ConvertMuchToAbsoluteStationNr(Int_t station, Int_t layer);
121 
122 private:
129 
134 
139 
145 
146  TGeoManager* fGeo; // Pointer to full geometry
147  Int_t fNofTrdStations; // Number of TRD stations
148  Int_t fNofMuchStations; // Number of MUCH stations
149  Int_t fNofMvdStations; // Number of MVD stations
150  Int_t fNofStsStations; // Number of STS stations
151  Int_t fNofMuchAbsorbers; // Number of MUCH absorbers
153 };
154 
155 #endif /* CBMLITTRACKINGGEOMETRYCONSTRUCTOR_H_ */
CbmLitTrackingGeometryConstructor::ConvertTProfile2DToLitMaterialGrid
void ConvertTProfile2DToLitMaterialGrid(const TProfile2D *profile, lit::parallel::LitMaterialGrid *grid, Double_t maximumValue=0)
Definition: CbmLitTrackingGeometryConstructor.cxx:253
CbmLitTrackingGeometryConstructor::GetMuchLayoutVec
void GetMuchLayoutVec(lit::parallel::LitDetectorLayoutVec &layout)
Return MUCH detector layout for parallel MUCH tracking in SIMD format.
Definition: CbmLitTrackingGeometryConstructor.cxx:60
lit::parallel::LitMaterialGrid
Class stores a grid of material thickness in silicon equivalent.
Definition: LitMaterialGrid.h:37
CbmLitTrackingGeometryConstructor::GetNofMvdStations
Int_t GetNofMvdStations()
Return number of stations in MVD.
Definition: CbmLitTrackingGeometryConstructor.cxx:419
CbmLitTrackingGeometryConstructor::GetNofMuchStations
Int_t GetNofMuchStations()
Return number of stations in MUCH.
Definition: CbmLitTrackingGeometryConstructor.cxx:337
CbmLitDetectorSetup
Helper class to access detector presence.
Definition: CbmLitDetectorSetup.h:22
CbmLitTrackingGeometryConstructor
Definition: CbmLitTrackingGeometryConstructor.h:22
CbmLitTrackingGeometryConstructor::operator=
const CbmLitTrackingGeometryConstructor & operator=(const CbmLitTrackingGeometryConstructor &)
Assignment operator.
CbmLitTrackingGeometryConstructor::fNofStsStations
Int_t fNofStsStations
Definition: CbmLitTrackingGeometryConstructor.h:150
CbmTrdGeoHandler
Definition: CbmTrdGeoHandler.h:29
CbmLitTrackingGeometryConstructor::GetTrdLayoutScal
void GetTrdLayoutScal(lit::parallel::LitDetectorLayoutScal &layout)
Return TRD detector layout for TRD parallel tracking in scalar format.
Definition: CbmLitTrackingGeometryConstructor.cxx:158
lit::parallel::LitDetectorLayout
Represents detector layout.
Definition: LitDetectorLayout.h:33
CbmLitTrackingGeometryConstructor::GetNofStsStations
Int_t GetNofStsStations()
Return number of stations in STS.
Definition: CbmLitTrackingGeometryConstructor.cxx:480
CbmLitTrackingGeometryConstructor::GetTrdLayout
void GetTrdLayout(lit::parallel::LitDetectorLayout< T > &layout)
Return TRD detector layout for TRD parallel tracking.
Definition: CbmLitTrackingGeometryConstructor.cxx:164
CbmLitTrackingGeometryConstructor::fNofMuchAbsorbers
Int_t fNofMuchAbsorbers
Definition: CbmLitTrackingGeometryConstructor.h:151
CbmLitTrackingGeometryConstructor::GetNofTrdStations
Int_t GetNofTrdStations()
Return number of stations in TRD.
Definition: CbmLitTrackingGeometryConstructor.cxx:315
CbmLitTrackingGeometryConstructor::GetNofMuchTrdStations
Int_t GetNofMuchTrdStations()
Return number of stations in MUCH + TRD.
Definition: CbmLitTrackingGeometryConstructor.cxx:415
CbmLitTrackingGeometryConstructor::CbmLitTrackingGeometryConstructor
CbmLitTrackingGeometryConstructor()
Constructor. Constructor is protected since singleton pattern is used. Pointer to object is returned ...
Definition: CbmLitTrackingGeometryConstructor.cxx:41
CbmLitTrackingGeometryConstructor::ConvertMuchToAbsoluteStationNr
Int_t ConvertMuchToAbsoluteStationNr(Int_t station, Int_t layer)
Definition: CbmLitTrackingGeometryConstructor.cxx:497
CbmLitTrackingGeometryConstructor::fGeo
TGeoManager * fGeo
Definition: CbmLitTrackingGeometryConstructor.h:146
CbmLitTrackingGeometryConstructor::GetMuchLayoutScal
void GetMuchLayoutScal(lit::parallel::LitDetectorLayoutScal &layout)
Return MUCH detector layout for parallel MUCH tracking in scalar format.
Definition: CbmLitTrackingGeometryConstructor.cxx:65
CbmLitTrackingGeometryConstructor::GetNofMuchAbsorbers
Int_t GetNofMuchAbsorbers()
Return number of MUCH absorbers.
Definition: CbmLitTrackingGeometryConstructor.cxx:384
LitDetectorLayout.h
Detector layout class.
CbmLitTrackingGeometryConstructor::fNofMvdStations
Int_t fNofMvdStations
Definition: CbmLitTrackingGeometryConstructor.h:149
CbmLitTrackingGeometryConstructor::GetMuchLayout
void GetMuchLayout(lit::parallel::LitDetectorLayout< T > &layout)
Return MUCH detector layout for parallel MUCH tracking.
Definition: CbmLitTrackingGeometryConstructor.cxx:71
CbmLitTrackingGeometryConstructor::~CbmLitTrackingGeometryConstructor
virtual ~CbmLitTrackingGeometryConstructor()
Destructor.
Definition: CbmLitTrackingGeometryConstructor.cxx:52
CbmLitTrackingGeometryConstructor::fNofTrdStations
Int_t fNofTrdStations
Definition: CbmLitTrackingGeometryConstructor.h:147
CbmLitTrackingGeometryConstructor::GetTrdLayoutVec
void GetTrdLayoutVec(lit::parallel::LitDetectorLayoutVec &layout)
Return TRD detector layout for TRD parallel tracking in SIMD format.
Definition: CbmLitTrackingGeometryConstructor.cxx:153
LitMaterialGrid.h
Class stores a grid of material thickness in silicon equivalent.
CbmLitTrackingGeometryConstructor::CbmLitTrackingGeometryConstructor
CbmLitTrackingGeometryConstructor(const CbmLitTrackingGeometryConstructor &)
Copy constructor.
CbmLitTrackingGeometryConstructor::GetRichMaterial
void GetRichMaterial(lit::parallel::LitMaterialGrid *material)
Definition: CbmLitTrackingGeometryConstructor.cxx:230
CbmLitTrackingGeometryConstructor::fDet
CbmLitDetectorSetup fDet
Definition: CbmLitTrackingGeometryConstructor.h:152
CbmLitTrackingGeometryConstructor::Instance
static CbmLitTrackingGeometryConstructor * Instance()
Return pointer to singleton object.
Definition: CbmLitTrackingGeometryConstructor.cxx:55
CbmLitTrackingGeometryConstructor::fNofMuchStations
Int_t fNofMuchStations
Definition: CbmLitTrackingGeometryConstructor.h:148
CbmLitDetectorSetup.h
Helper class to access detector presence.