]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALIACORDECONSTANTS_H | |
2 | #define ALIACORDECONSTANTS_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | //////////////////////////////////////////////////////////////////////// | |
9 | // | |
10 | // AliACORDEConstants class | |
11 | // | |
12 | // This class serves to group constants needed by ACORDE detector in 1 | |
13 | // easily accessible place. All constants are public const static data | |
14 | // members. The class is never instatiated. | |
15 | // | |
16 | // Author: Arturo Fernandez, Enrique Gamez, Mario Rodriguez Cahuantzi | |
17 | // FCFM-UAP, Mexico. | |
18 | // | |
19 | // Last update: Nov. 24th 08 | |
20 | ///////////////////////////////////////////////////////////////////////// | |
21 | ||
22 | #include <TObject.h> | |
23 | ||
24 | enum ECRMode { | |
25 | kSingleMuons, | |
26 | kMuonBundle, | |
27 | kMuonFlux | |
28 | }; | |
29 | ||
30 | class AliACORDEConstants : public TObject { | |
31 | public: | |
32 | virtual ~AliACORDEConstants(); | |
33 | ||
34 | static AliACORDEConstants* Instance(); | |
35 | ||
36 | // constant for geometry | |
37 | Float_t ModuleLength() const; | |
38 | Float_t ModuleWidth() const; | |
39 | Float_t ModuleHeight() const; | |
40 | Float_t ModulePositionX(Int_t i) const; | |
41 | Float_t ModulePositionY(Int_t i) const; | |
42 | Float_t ModulePositionZ(Int_t i) const; | |
43 | Float_t SupportModulePositionX(Int_t i) const; | |
44 | Float_t SupportModulePositionY(Int_t i) const; | |
45 | Float_t SupportModulePositionZ(Int_t i) const; | |
46 | Float_t ExtraModulePositionZ(Int_t i) const; | |
47 | Int_t ModuleElectronicChannel(Int_t i) const; | |
48 | Float_t ExtraModulePositionX() const; | |
49 | Float_t ExtraModulePositionY() const; | |
50 | Float_t PlasticLength() const; | |
51 | Float_t PlasticWidth() const; | |
52 | Float_t PlasticHeight() const; | |
53 | Float_t ProfileWidth() const; | |
54 | Float_t ProfileThickness() const; | |
55 | Float_t Depth() const; | |
56 | ||
57 | // constant to convert hits in digits | |
58 | Float_t HitEnergyThreshold() const { return fgkHitEnergyThreshold;} | |
59 | Float_t MaxHitTimeDifference() const { return fgkMaxHitTimeDifference;} | |
60 | // constants for trigger | |
61 | Int_t MultiMuonThreshold() const { return fgkMultiMuonThreshold;} | |
62 | Float_t MultiMuonWindow() const { return fgkMultiMuonWindow;} | |
63 | ||
64 | protected: | |
65 | ||
66 | AliACORDEConstants(); | |
67 | ||
68 | static AliACORDEConstants* fgInstance; // static instanton | |
69 | ||
70 | static const Float_t fgkModuleLength; // Module lenght | |
71 | static const Float_t fgkModuleWidth; // Module width | |
72 | static const Float_t fgkModuleHeight; // Module height | |
73 | static const Float_t fgkModulePositionX[60]; // position in ALICE | |
74 | static const Float_t fgkModulePositionY[60]; // of center of module | |
75 | static const Float_t fgkModulePositionZ[60]; | |
76 | static const Float_t fgkSupportModulePositionX[60]; | |
77 | static const Float_t fgkSupportModulePositionY[60]; | |
78 | static const Float_t fgkSupportModulePositionZ[60]; | |
79 | static const Float_t fgkExtraModulePositionZ[4]; | |
80 | static const Float_t fgkExtraModulePositionX; | |
81 | static const Float_t fgkExtraModulePositionY; | |
82 | static const Int_t fgkModuleElectronicChannel[60]; | |
83 | ||
84 | static const Float_t fgkPlasticLength; // Plastic length | |
85 | static const Float_t fgkPlasticWidth; // Plastic width | |
86 | static const Float_t fgkPlasticHeight; // Plastic height | |
87 | ||
88 | ||
89 | static const Float_t fgkProfileWidth; // profile of the module | |
90 | static const Float_t fgkProfileThickness; | |
91 | static const Float_t fgkDepth; // Alice IP depth from surface | |
92 | ||
93 | static const Float_t fgkHitEnergyThreshold; | |
94 | static const Float_t fgkMaxHitTimeDifference; | |
95 | static const Int_t fgkMultiMuonThreshold; | |
96 | static const Float_t fgkMultiMuonWindow; | |
97 | private: | |
98 | ClassDef(AliACORDEConstants, 0) // ACORDE(ACORDE) global constants | |
99 | }; | |
100 | ||
101 | typedef AliACORDEConstants AliCRTConstants; // for backward compatibility | |
102 | ||
103 | #endif // ALIACORDECONSTANTS_H |