9 #ifndef ERTelescopeSetup_H 10 #define ERTelescopeSetup_H 18 #include "TGeoMatrix.h" 21 Double_t fGlobalX = -1.;
22 Double_t fGlobalY = -1.;
23 Double_t fGlobalZ = -1.;
24 Double_t fLocalX = -1.;
25 Double_t fLocalY = -1.;
26 Double_t fLocalZ = -1.;
27 Double_t fWidth = -1.;
30 Double_t localX, Double_t localY, Double_t localZ,
44 enum StationType {QStation, RStation};
49 Double_t GetStripGlobalX(
const TString& componentBranchName, Int_t stripNb)
const;
50 Double_t GetStripGlobalY(
const TString& componentBranchName, Int_t stripNb)
const;
51 Double_t GetStripGlobalZ(
const TString& componentBranchName, Int_t stripNb)
const;
52 Double_t GetStripLocalX(
const TString& componentBranchName, Int_t stripNb)
const;
53 Double_t GetStripLocalY(
const TString& componentBranchName, Int_t stripNb)
const;
54 Double_t GetStripLocalZ(
const TString& componentBranchName, Int_t stripNb)
const;
55 Double_t GetStripPhi(
const TString& componentBranchName, Int_t stripNb)
const;
56 Double_t GetStripR(
const TString& componentBranchName, Int_t stripNb)
const;
57 TVector3 GetStationTranslation(
const TString& componentBranchName)
const;
58 Double_t GetStripWidth(TString componentBranchName, Int_t stripNb)
const;
59 TVector3 GetStripLocalPosition(
const TString& componentBranchName,
60 unsigned int stripNb)
const;
61 TVector3 ToStationCoordinateSystem(
const TString& componentBranchName,
62 const TVector3& vectorInGlobalCS)
const;
63 TVector3 ToGlobalCoordinateSystem(
const TString& componentBranchName,
64 const TVector3& vectorInStationCS)
const;
65 StationType GetStationType(
const TString& componentBranchName)
const;
68 virtual void ReadGeoParamsFromParContainer();
73 void GetTransInMotherNode (TGeoNode
const* node, Double_t b[3]);
74 void FillRStrips(TGeoNode* r_station,
const TString& branch_name);
75 std::map<TString, std::vector<ERTelescopeStrip>> fStrips;
76 std::map<TString, std::vector<ERRTelescopeStrip>> fRStrips;
77 std::map<TString, TGeoHMatrix> fStationGlobalToLocalMatrixies;
78 std::map<TString, StationType> fStationTypes;
80 bool fGeometryInited =
false;