]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONConstants.h
Use of appropriate sensor depending response objects in SPD simulation
[u/mrichter/AliRoot.git] / MUON / AliMUONConstants.h
CommitLineData
f665c1ea 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 */
5
24c9eaa0 6/* $Id$*/
30178c30 7// Revision of includes 07/05/2004
692de412 8//
9/// \ingroup base
10/// \class AliMUONConstants
11/// \brief MUON global constants
f665c1ea 12
13#include <TObject.h>
f665c1ea 14
15class AliMUONConstants : public TObject {
16 public:
17 // return number of chambers
18 static Int_t NCh() {return fgNCh;}
19 // return number of tracking chambers
20 static Int_t NTrackingCh() {return fgNTrackingCh;}
21 // return number of trigger chambers
22 static Int_t NTriggerCh() {return fgNTriggerCh;}
23 // return number of trigger circuits
24 static Int_t NTriggerCircuit() {return fgNTriggerCircuit;}
edb96c6a 25 // return number of detection element
26 static Int_t NDetElem() {return fgNDetElem;}
24c9eaa0 27 // return position of chamber i
f665c1ea 28 static Float_t DefaultChamberZ(Int_t i) {return fgDefaultChamberZ[i];}
29 // return pointer to array of positions
30 static Float_t* DefaultChamberZ() {return fgDefaultChamberZ;}
31 // return chamber i inner diameter
32 static Float_t Dmin(Int_t i) {return fgDmin[i];}
08d27ccb 33 // return chamber i inner radius
34 static Float_t Rmin(Int_t i) {return Dmin(i)/2.0;}
f665c1ea 35 // return chamber i outer diameter
36 static Float_t Dmax(Int_t i) {return fgDmax[i];}
08d27ccb 37 // return chamber i outer radius
38 static Float_t Rmax(Int_t i) {return Dmax(i)/2.0;}
97ccf8cb 39 // return maximum zoom for event display
40 static Int_t MaxZoom() {return fgMaxZoom;}
e516b01d 41 // return half-distance between two half-chambers
42 static Float_t DzCh() {return fgDzCh;}
43 // return half-distance between two slats
44 static Float_t DzSlat() {return fgDzSlat;}
29fc2c86 45 static Int_t ChamberNumber(Float_t z);
7e4a628d 46 // return SqrtKx3 and SqrtKy3 for Slat
1c334adf 47 static Float_t SqrtKx3() {return fgSqrtKx3;}
48 static Float_t SqrtKy3() {return fgSqrtKy3;}
7e4a628d 49 // return SqrtKx3 and SqrtKy3 for Station 1 & 2
1c334adf 50 static Float_t SqrtKx3St1() {return fgSqrtKx3St1;}
51 static Float_t SqrtKy3St1() {return fgSqrtKy3St1;}
7e4a628d 52 // return charge correlation (needed for response and for cluster finder !?)
1c334adf 53 static Float_t ChargeCorrel() {return fgChargeCorrel;}
54 static Float_t ChargeCorrelSt1() {return fgChargeCorrelSt1;}
7e4a628d 55 // return wire pitch
1c334adf 56 static Float_t Pitch() {return fgPitch;}
57 static Float_t PitchSt1() {return fgPitchSt1;}
29fc2c86 58
30178c30 59 protected:
60 AliMUONConstants() : TObject() {}
f665c1ea 61 virtual ~AliMUONConstants(){}
30178c30 62
f665c1ea 63 private:
37c0cd40 64 static Int_t fgNCh; // Number of Chambers
f665c1ea 65 static Int_t fgNTrackingCh; // Number of Tracking Chambers
66 static Int_t fgNTriggerCh; // Number of Trigger Chambers
67 static Int_t fgNTriggerCircuit; // Number of Trigger Circuits
edb96c6a 68 static Int_t fgNDetElem; // Number of Detection Elements.
f665c1ea 69//
70 static Float_t fgDefaultChamberZ[14]; // ! Z-positions of chambers
97ccf8cb 71 static Float_t fgDmin[7]; // ! inner diameter
72 static Float_t fgDmax[7]; // ! outer diameter
e516b01d 73
74 static Float_t fgDzCh; // half-distance between two half-chambers
75 static Float_t fgDzSlat; // half-distance between two slat on the same chamber
1c334adf 76 static Float_t fgSqrtKx3; // SqrtKx3 for St2 & Slat
77 static Float_t fgSqrtKy3; // SqrtKy3 for St2 & Slat
78 static Float_t fgSqrtKx3St1; // SqrtKx3 for Station 1
79 static Float_t fgSqrtKy3St1; // SqrtKy3 for Station 1
7e4a628d 80
1c334adf 81 static Float_t fgChargeCorrel; // charge correlation for St2 & Slats
82 static Float_t fgChargeCorrelSt1; // charge correlation for Station 1
7e4a628d 83
1c334adf 84 static Float_t fgPitch; // wire pitch for St2 & Slats
85 static Float_t fgPitchSt1; // wire pitch for Station 1
e516b01d 86
f665c1ea 87//
97ccf8cb 88 static Int_t fgMaxZoom; // Maximum Zoom for event display
ecfa008b 89 ClassDef(AliMUONConstants, 0) // MUON global constants
f665c1ea 90};
91
92#endif
93
94
95
96
97
98
99
100