]>
Commit | Line | Data |
---|---|---|
daa2ae2f | 1 | #ifndef ALIPHOSGEOMETRY_H |
2 | #define ALIPHOSGEOMETRY_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6ad0bfa0 | 6 | /* $Id$ */ |
7 | ||
daa2ae2f | 8 | //////////////////////////////////////////////// |
9 | // Geometry class for PHOS : singleton // | |
10 | // Version SUBATECH // | |
11 | // Author Y. Schutz SUBATECH // | |
12 | // geometry parametrized for any // | |
13 | // shape of modules // | |
14 | //////////////////////////////////////////////// | |
d15a28e7 | 15 | |
16 | // --- ROOT system --- | |
17 | ||
daa2ae2f | 18 | #include "TNamed.h" |
19 | #include "TString.h" | |
20 | #include "TObjArray.h" | |
21 | #include "TVector3.h" | |
d15a28e7 | 22 | |
23 | // --- AliRoot header files --- | |
24 | ||
daa2ae2f | 25 | #include "AliGeometry.h" |
26 | #include "AliPHOSRecPoint.h" | |
27 | ||
9f616d61 | 28 | static const TString kDegre("deg") ; |
29 | static const TString kRadian("rad") ; | |
30 | ||
daa2ae2f | 31 | class AliPHOSGeometry : public AliGeometry { |
32 | ||
33 | public: | |
34 | ||
35 | AliPHOSGeometry() {} ; // must be kept public for root persistency purposes | |
36 | virtual ~AliPHOSGeometry(void) ; | |
37 | static AliPHOSGeometry * GetInstance(const Text_t* name, const Text_t* title) ; | |
38 | static AliPHOSGeometry * GetInstance() ; | |
39 | virtual void GetGlobal(const AliRecPoint* RecPoint, TVector3 & gpos, TMatrix & gmat) ; | |
40 | virtual void GetGlobal(const AliRecPoint* RecPoint, TVector3 & gpos) ; | |
41 | ||
42 | protected: | |
43 | ||
44 | AliPHOSGeometry(const Text_t* name, const Text_t* title) : AliGeometry(name, title) { Init() ; } | |
45 | void Init(void) ; // steering method for PHOS and CPV | |
46 | void InitPHOS(void) ; // defines the various PHOS geometry parameters | |
47 | void InitPPSD(void) ; // defines the various PPSD geometry parameters | |
48 | ||
49 | public: | |
50 | ||
51 | // General | |
52 | ||
53 | Bool_t AbsToRelNumbering(const Int_t AbsId, Int_t * RelId) ; // converts the absolute PHOS numbering to a relative | |
9f616d61 | 54 | void EmcModuleCoverage(const Int_t m, Double_t & tm, Double_t & tM, Double_t & pm, Double_t & pM, Option_t * opt = kRadian); |
55 | // calculates the angular coverage in theta and phi of a EMC module | |
56 | void EmcXtalCoverage(Double_t & theta, Double_t & phi, Option_t * opt = kRadian) ; | |
57 | // calculates the angular coverage in theta and phi of a | |
58 | // single crystal in a EMC module | |
59 | void ImpactOnEmc(const Double_t theta, const Double_t phi, Int_t & ModuleNumber, Double_t & x, Double_t & z) ; | |
60 | // calculates the impact coordinates of a neutral particle | |
61 | // emitted in direction theta and phi in ALICE | |
daa2ae2f | 62 | void RelPosInModule(const Int_t * RelId, Float_t & y, Float_t & z) ; // gets the position of element (pad or Xtal) relative to |
63 | // center of PHOS module | |
64 | void RelPosInAlice(const Int_t AbsId, TVector3 & pos) ; // gets the position of element (pad or Xtal) relative to | |
65 | // Alice | |
66 | Bool_t RelToAbsNumbering(const Int_t * RelId, Int_t & AbsId) ; // converts the absolute PHOS numbering to a relative | |
c198e326 | 67 | |
daa2ae2f | 68 | |
69 | ///////////// PHOS related parameters | |
70 | ||
71 | Bool_t IsInitialized(void) const { return fInit ; } | |
72 | Float_t GetAirFilledBoxSize(Int_t index) const { return fAirFilledBoxSize[index] ;} | |
73 | Float_t GetCrystalHolderThickness(void) const { return fCrystalHolderThickness ; } | |
74 | Float_t GetCrystalSize(Int_t index) const { return fXtlSize[index] ; } | |
75 | Float_t GetCrystalSupportHeight(void) const { return fCrystalSupportHeight ; } | |
76 | Float_t GetCrystalWrapThickness(void) const { return fCrystalWrapThickness;} | |
77 | Float_t GetGapBetweenCrystals(void) const { return fGapBetweenCrystals ; } | |
78 | Float_t GetIPtoCrystalSurface(void) const { return fIPtoCrystalSurface ; } | |
79 | Float_t GetIPtoOuterCoverDistance(void) const { return fIPtoOuterCoverDistance ; } | |
80 | Float_t GetIPtoTopLidDistance(void) const { return fIPtoTopLidDistance ; } | |
81 | Float_t GetLowerThermoPlateThickness(void) const { return fLowerThermoPlateThickness ; } | |
82 | Float_t GetLowerTextolitPlateThickness(void) const { return fLowerTextolitPlateThickness ; } | |
83 | Float_t GetModuleBoxThickness(void) const { return fModuleBoxThickness ; } | |
84 | Int_t GetNPhi(void) const { return fNPhi ; } | |
85 | Int_t GetNZ(void) const { return fNZ ; } | |
86 | Int_t GetNModules(void) const { return fNModules ; } | |
87 | Float_t GetOuterBoxSize(Int_t index) const { return fOuterBoxSize[index] ; } | |
88 | Float_t GetOuterBoxThickness(Int_t index) const { return fOuterBoxThickness[index] ; } | |
89 | Float_t GetPHOSAngle(Int_t index) const { return fPHOSAngle[index-1] ; } | |
90 | Float_t GetPinDiodeSize(Int_t index) const { return fPinDiodeSize[index] ; } | |
91 | Float_t GetSecondUpperPlateThickness(void) const { return fSecondUpperPlateThickness ; } | |
92 | Float_t GetSupportPlateThickness(void) const { return fSupportPlateThickness ; } | |
93 | Float_t GetTextolitBoxSize(Int_t index) const { return fTextolitBoxSize[index] ; } | |
94 | Float_t GetTextolitBoxThickness(Int_t index) const { return fTextolitBoxThickness[index]; } | |
95 | Float_t GetUpperPlateThickness(void) const { return fUpperPlateThickness ; } | |
96 | Float_t GetUpperCoolingPlateThickness(void) const { return fUpperCoolingPlateThickness ; } | |
97 | ||
98 | private: | |
99 | ||
100 | void SetPHOSAngles() ; // calculates the PHOS modules PHI angle | |
101 | ||
102 | public: | |
d15a28e7 | 103 | |
daa2ae2f | 104 | ///////////// PPSD (PHOS PRE SHOWER DETECTOR) related parameters |
105 | ||
106 | ||
107 | Float_t GetAnodeThickness(void) const { return fAnodeThickness ; } | |
108 | Float_t GetAvalancheGap(void) const { return fAvalancheGap ; } | |
109 | Float_t GetCathodeThickness(void) const { return fCathodeThickness ; } | |
110 | Float_t GetCompositeThickness(void) const { return fCompositeThickness ; } | |
111 | Float_t GetConversionGap(void) const { return fConversionGap ; } | |
112 | Float_t GetLeadConverterThickness(void) const { return fLeadConverterThickness ; } | |
113 | Float_t GetLeadToMicro2Gap(void) const { return fLeadToMicro2Gap ; } | |
114 | Float_t GetLidThickness(void) const { return fLidThickness ; } | |
115 | Float_t GetMicromegas1Thickness(void) const { return fMicromegas1Thickness ; } | |
116 | Float_t GetMicromegas2Thickness(void) const { return fMicromegas2Thickness ; } | |
117 | Float_t GetMicromegasWallThickness(void) const { return fMicromegasWallThickness ; } | |
118 | Float_t GetMicro1ToLeadGap(void) const { return fMicro1ToLeadGap ; } | |
119 | Int_t GetNumberOfPadsPhi(void) const { return fNumberOfPadsPhi ; } | |
120 | Int_t GetNumberOfPadsZ(void) const { return fNumberOfPadsZ ; } | |
121 | Int_t GetNumberOfModulesPhi(void) const { return fNumberOfModulesPhi ; } | |
122 | Int_t GetNumberOfModulesZ(void) const { return fNumberOfModulesZ ; } | |
123 | Float_t GetPCThickness(void) const { return fPCThickness ; } | |
124 | Float_t GetPhiDisplacement(void) const { return fPhiDisplacement ; } | |
125 | Float_t GetPPSDBoxSize(Int_t index) const { return fPPSDBoxSize[index] ; } | |
126 | Float_t GetPPSDModuleSize(Int_t index) const { return fPPSDModuleSize[index] ; } | |
127 | Float_t GetZDisplacement(void) const { return fZDisplacement ; } | |
2f3366b6 | 128 | |
129 | void SetLeadConverterThickness(Float_t e) ; // should ultimately disappear | |
daa2ae2f | 130 | |
131 | private: | |
132 | ||
133 | ///////////// PHOS related parameters | |
134 | ||
135 | Float_t fAirFilledBoxSize[3] ; // Air filled box containing one module | |
136 | Float_t fAirThickness[3] ; // Space filled with air between the module box and the Textolit box | |
137 | Float_t fCrystalSupportHeight ; // Height of the support of the crystal | |
138 | Float_t fCrystalWrapThickness ; // Thickness of Tyvek wrapping the crystal | |
139 | Float_t fCrystalHolderThickness ; // Titanium holder of the crystal | |
140 | Float_t fGapBetweenCrystals ; // Total Gap between two adjacent crystals | |
141 | Bool_t fInit ; // Tells if geometry has been succesfully set up | |
142 | Float_t fIPtoOuterCoverDistance ; // Distances from interaction point to outer cover | |
143 | Float_t fIPtoCrystalSurface ; // Distances from interaction point to Xtal surface | |
144 | Float_t fModuleBoxThickness ; // Thickness of the thermo insulating box containing one crystals module | |
145 | Float_t fLowerTextolitPlateThickness ; // Thickness of lower textolit plate | |
146 | Float_t fLowerThermoPlateThickness ; // Thickness of lower thermo insulating plate | |
147 | Int_t fNModules ; // Number of modules constituing PHOS | |
148 | Int_t fNPhi ; // Number of crystal units in X (phi) direction | |
149 | Int_t fNZ ; // Number of crystal units in Z direction | |
150 | Float_t fOuterBoxSize[3] ; // Size of the outer thermo insulating foam box | |
151 | Float_t fOuterBoxThickness[3] ; // Thickness of the outer thermo insulating foam box | |
152 | Float_t fPHOSAngle[4] ; // Position angles of modules | |
153 | Float_t fPinDiodeSize[3] ; // Size of the PIN Diode | |
154 | TObjArray * fRotMatrixArray ; // Liste of rotation matrices (one per phos module) | |
155 | Float_t fSecondUpperPlateThickness ; // Thickness of upper polystyrene foam plate | |
156 | Float_t fSupportPlateThickness ; // Thickness of the Aluminium support plate | |
157 | Float_t fUpperCoolingPlateThickness ; // Thickness of the upper cooling plate | |
158 | Float_t fUpperPlateThickness ; // Thickness of the uper thermo insulating foam plate | |
159 | Float_t fTextolitBoxSize[3] ; // Size of the Textolit box inside the insulating foam box | |
160 | Float_t fTextolitBoxThickness[3] ; // Thicknesses of th Textolit box | |
161 | Float_t fXtlSize[3] ; // PWO4 crystal dimensions | |
162 | ||
163 | ||
164 | ///////////// PPSD (PHOS PRE SHOWER DETECTOR) related parameters | |
165 | ||
166 | Float_t fAnodeThickness ; // Thickness of the copper layer which makes the anode | |
167 | Float_t fAvalancheGap ; // Thickness of the gas in the avalanche stage | |
168 | Float_t fCathodeThickness ; // Thickeness of composite material ensuring rigidity of cathode | |
169 | Float_t fCompositeThickness ; // Thickeness of composite material ensuring rigidity of anode | |
170 | Float_t fConversionGap ; // Thickness of the gas in the conversion stage | |
171 | Float_t fIPtoTopLidDistance ; // Distance from interaction point to top lid of PPSD | |
172 | Float_t fLeadConverterThickness ; // Thickness of the Lead converter | |
173 | Float_t fLeadToMicro2Gap ; // Thickness of the air gap between the Lead and Micromegas 2 | |
174 | Float_t fLidThickness ; // Thickness of top lid | |
175 | Float_t fMicromegas1Thickness ; // Thickness of the first downstream Micromegas | |
176 | Float_t fMicromegas2Thickness ; // Thickness of the second downstream Micromegas | |
177 | Float_t fMicromegasWallThickness ; // Thickness of the Micromegas leak tight box | |
178 | Float_t fMicro1ToLeadGap ; // Thickness of the air gap between Micromegas 1 and the Lead | |
179 | Int_t fNumberOfPadsPhi ; // Number of pads on a micromegas module ; | |
180 | Int_t fNumberOfPadsZ ; // Number of pads on a micromegas module ; | |
181 | Int_t fNumberOfModulesPhi ; // Number of micromegas modules in phi | |
182 | Int_t fNumberOfModulesZ ; // Number of micromegas modules in z | |
183 | Float_t fPCThickness ; // Thickness of the printed circuit board of the anode | |
184 | Float_t fPhiDisplacement ; // Phi displacement of micromegas1 with respect to micromegas2 | |
185 | Float_t fPPSDBoxSize[3] ; // Size of large box which contains PPSD; matches PHOS module size | |
186 | Float_t fPPSDModuleSize[3] ; // Size of an individual micromegas module | |
187 | Float_t fZDisplacement ; // Z displacement of micromegas1 with respect to micromegas2 | |
188 | ||
189 | static AliPHOSGeometry * fGeom ; // pointer to the unique instance of the singleton | |
190 | ||
191 | ClassDef(AliPHOSGeometry,1) // PHOS geometry class , version subatech | |
192 | ||
193 | } ; | |
194 | ||
195 | #endif // AliPHOSGEOMETRY_H |