1 #ifndef ALIMUONCONSTANTS_H
2 #define ALIMUONCONSTANTS_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
7 // Revision of includes 07/05/2004
10 /// \class AliMUONConstants
11 /// \brief MUON global constants
15 class AliMUONConstants : public TObject {
17 /// Return number of chambers
19 /// Return number of tracking chambers
20 static Int_t NTrackingCh();
21 /// Return number of tracking stations
22 static Int_t NTrackingSt() {return fgNTrackingSt;}
23 /// Return number of trigger chambers
24 static Int_t NTriggerCh() {return NCh()-NTrackingCh();}
25 /// Return number of trigger circuits
26 static Int_t NTriggerCircuit() {return fgNTriggerCircuit;}
27 /// Return number of detection element
28 static Int_t NDetElem() {return fgNDetElem;}
29 /// Return number of geometry modules
30 static Int_t NGeomModules() {return fgNGeomModules;}
31 /// Return position of chamber i
32 static Float_t DefaultChamberZ(Int_t i) {return fgDefaultChamberZ[i];}
33 /// Return ratio between trigger chambers
34 static Float_t DefaultRatioTriggerChamber(Int_t i) {return fgDefaultRatioTriggerChamber[i];}
35 /// Return Inclination with respect the vertical axis of stations 345
36 static Float_t St345Inclination() {return fgSt345inclination;}
37 /// Return pointer to array of positions
38 static Float_t* DefaultChamberZ() {return fgDefaultChamberZ;}
39 /// Return chamber i inner diameter
40 static Float_t Dmin(Int_t i) {return fgDmin[i];}
41 /// Return chamber i inner radius
42 static Float_t Rmin(Int_t i) {return Dmin(i)/2.0;}
43 /// Return chamber i outer diameter
44 static Float_t Dmax(Int_t i) {return fgDmax[i];}
45 /// Return chamber i outer radius
46 static Float_t Rmax(Int_t i) {return Dmax(i)/2.0;}
47 /// Return maximum zoom for event display
48 static Int_t MaxZoom() {return fgMaxZoom;}
49 /// Return half-distance between two half-chambers
50 static Float_t DzCh() {return fgDzCh;}
51 /// Return half-distance between two slats
52 static Float_t DzSlat() {return fgDzSlat;}
53 /// Return chamber number according z position of hit.
54 static Int_t ChamberNumber(Float_t z);
55 /// Return SqrtKx3 for Slat
56 static Float_t SqrtKx3() {return fgSqrtKx3;}
57 /// Return SqrtKy3 for Slat
58 static Float_t SqrtKy3() {return fgSqrtKy3;}
59 /// Return SqrtKx3 for Station 1 & 2
60 static Float_t SqrtKx3St1() {return fgSqrtKx3St1;}
61 /// Return SqrtKy3 for Station 1 & 2
62 static Float_t SqrtKy3St1() {return fgSqrtKy3St1;}
63 /// Return charge correlation (needed for response and for cluster finder !?)
64 static Float_t ChargeCorrel() {return fgChargeCorrel;}
65 /// Return charge correlation for Station 1 & 2 (needed for response and for cluster finder !?)
66 static Float_t ChargeCorrelSt1() {return fgChargeCorrelSt1;}
68 static Float_t Pitch() {return fgPitch;}
69 /// Return wire pitch for Station 1 & 2
70 static Float_t PitchSt1() {return fgPitchSt1;}
71 /// Return coil z-position
72 static Double_t CoilZ() {return fgCoilZ;}
73 /// Return coil lenght
74 static Double_t CoilL() {return fgCoilL;}
75 /// Return yoke z-position
76 static Double_t YokeZ() {return fgYokeZ;}
77 /// Return yoke lenght
78 static Double_t YokeL() {return fgYokeL;}
79 /// Return z-position of absorber begining
80 static const Double_t AbsZBeg() {return fgkAbsZBeg;}
81 /// Return z-position of absorber end
82 static const Double_t AbsZEnd() {return fgkAbsZEnd;}
83 /// Return chamber thickness in X0
84 static Double_t ChamberThicknessInX0() {return fgChamberThicknessInX0;}
85 /// Return Trigger ToF Limit (75 ns)
86 static Float_t TriggerTofLimit() {return fgkTriggerTofLimit;}
89 /// Default constructor
90 AliMUONConstants() : TObject() {}
92 virtual ~AliMUONConstants(){}
95 static Int_t fgNTrackingSt; ///< Number of Tracking Stations
96 static Int_t fgNTriggerCircuit; ///< Number of Trigger Circuits
97 static Int_t fgNDetElem; ///< Number of Detection Elements.
98 static Int_t fgNGeomModules; ///< Number of Geometry modules
100 static Float_t fgDefaultChamberZ[14]; //!< Z-positions of chambers
101 static Float_t fgDefaultRatioTriggerChamber[4]; ///< Ratio between trigger chambers
102 static Float_t fgSt345inclination; //!< Inclination with respect the vertical axis of stations 345
103 static Float_t fgDmin[7]; //!< Inner diameter
104 static Float_t fgDmax[7]; //!< Outer diameter
106 static Float_t fgDzCh; ///< Half-distance between two half-chambers
107 static Float_t fgDzSlat; ///< Half-distance between two slat on the same chamber
108 static Float_t fgSqrtKx3; ///< SqrtKx3 for St2 & Slat
109 static Float_t fgSqrtKy3; ///< SqrtKy3 for St2 & Slat
110 static Float_t fgSqrtKx3St1; ///< SqrtKx3 for Station 1
111 static Float_t fgSqrtKy3St1; ///< SqrtKy3 for Station 1
113 static Float_t fgChargeCorrel; ///< Charge correlation for St2 & Slats
114 static Float_t fgChargeCorrelSt1; ///< Charge correlation for Station 1
116 static Float_t fgPitch; ///< Wire pitch for St2 & Slats
117 static Float_t fgPitchSt1; ///< Wire pitch for Station 1
119 static Double_t fgChamberThicknessInX0; ///< default chamber thickness in X0 for reconstruction
121 static Double_t fgCoilZ; ///< Coil z-position
122 static Double_t fgCoilL; ///< Coil lenght
123 static Double_t fgYokeZ; ///< Yoke z-position
124 static Double_t fgYokeL; ///< Yoke lenght
126 static const Double_t fgkAbsZBeg; ///< z-position of the begining of the absorber
127 static const Double_t fgkAbsZEnd; ///< z-position of the end of the absorber
129 static Int_t fgMaxZoom; ///< Maximum Zoom for event display
130 static Float_t fgkTriggerTofLimit; ///< Particle above this threshold are discarded in trigger algorithm
132 ClassDef(AliMUONConstants, 0) // MUON global constants