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 */
8 ////////////////////////////////////////////////////////////////////////
10 // AliACORDEConstants class
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.
16 // Author: Arturo Fernandez, Enrique Gamez, Mario Rodriguez Cahuantzi
19 // Last update: Nov. 24th 08
20 /////////////////////////////////////////////////////////////////////////
30 class AliACORDEConstants : public TObject {
32 virtual ~AliACORDEConstants();
34 static AliACORDEConstants* Instance();
36 // constant for geometry
37 Float_t ModuleLength() const;
38 Float_t ModuleWidth() const;
39 Float_t ModuleHeight() const;
40 Float_t InsideModulePositionX(Int_t i) const;
41 Float_t InsideModulePositionY(Int_t i) const;
42 Float_t InsideModulePositionZ(Int_t i) const;
43 Float_t CenterModulePositionX(Int_t i) const;
44 Float_t CenterModulePositionY(Int_t i) const;
45 Float_t CenterModulePositionZ(Int_t i) const;
46 Float_t OutsideModulePositionX(Int_t i) const;
47 Float_t OutsideModulePositionY(Int_t i) const;
48 Float_t OutsideModulePositionZ(Int_t i) const;
49 Float_t OldModulePositionX(Int_t i) const;
50 Float_t OldModulePositionY(Int_t i) const;
51 Float_t OldModulePositionZ(Int_t i) const;
52 Float_t SupportModulePositionX(Int_t i) const;
53 Float_t SupportModulePositionY(Int_t i) const;
54 Float_t SupportModulePositionZ(Int_t i) const;
55 Float_t OldExtraModulePositionZ(Int_t i) const;
56 Int_t OldModuleElectronicChannel(Int_t i) const;
57 Float_t OldExtraModulePositionX() const;
58 Float_t OldExtraModulePositionY() const;
59 Float_t PlasticLength() const;
60 Float_t PlasticWidth() const;
61 Float_t PlasticHeight() const;
62 Float_t ProfileWidth() const;
63 Float_t ProfileThickness() const;
64 Float_t Depth() const;
66 // constant to convert hits in digits
67 Float_t HitEnergyThreshold() const { return fgkHitEnergyThreshold;}
68 Float_t MaxHitTimeDifference() const { return fgkMaxHitTimeDifference;}
69 // constants for trigger
70 Int_t MultiMuonThreshold() const { return fgkMultiMuonThreshold;}
71 Float_t MultiMuonWindow() const { return fgkMultiMuonWindow;}
77 static AliACORDEConstants* fgInstance; // static instanton
78 AliACORDEConstants (const AliACORDEConstants& fgInstance);
79 AliACORDEConstants& operator = (const AliACORDEConstants& fInstance);
81 static const Float_t fgkModuleLength; // Module lenght
82 static const Float_t fgkModuleWidth; // Module width
83 static const Float_t fgkModuleHeight; // Module height
84 static const Float_t fgkInsideModulePositionX[60]; // Module X-Position (inside)
85 static const Float_t fgkInsideModulePositionY[60]; // Module Y-Position (inside)
86 static const Float_t fgkInsideModulePositionZ[60]; // Module Z-Position (inside)
87 static const Float_t fgkCenterModulePositionX[60]; // Module X-Position (centroid)
88 static const Float_t fgkCenterModulePositionY[60]; // Module Y-Position (centroid)
89 static const Float_t fgkCenterModulePositionZ[60]; // Module Z-Position (centroid)
90 static const Float_t fgkOutsideModulePositionX[60]; // Module X-Position (outside)
91 static const Float_t fgkOutsideModulePositionY[60]; // Module Y-Position (outside)
92 static const Float_t fgkOutsideModulePositionZ[60]; // Module Z-Position (outside)
93 static const Float_t fgkOldModulePositionX[60]; // OLD position in ALICE
94 static const Float_t fgkOldModulePositionY[60]; // of center of module
95 static const Float_t fgkOldModulePositionZ[60]; // Old position of module Z
96 static const Float_t fgkSupportModulePositionX[60]; // Position of bar support X
97 static const Float_t fgkSupportModulePositionY[60]; // Position of bar support Y
98 static const Float_t fgkSupportModulePositionZ[60]; // Position of bar support Z
99 static const Float_t fgkOldExtraModulePositionZ[4]; // Old Position in Z for central modules (up face)
100 static const Float_t fgkOldExtraModulePositionX; // Old Position in X for central modules (up face)
101 static const Float_t fgkOldExtraModulePositionY; // Old Position in Y for central modules (up face)
102 static const Int_t fgkOldModuleElectronicChannel[60]; // Old DCS-Elecronoc assigment for modules
104 static const Float_t fgkPlasticLength; // Plastic length
105 static const Float_t fgkPlasticWidth; // Plastic width
106 static const Float_t fgkPlasticHeight; // Plastic height
109 static const Float_t fgkProfileWidth; // profile of the module
110 static const Float_t fgkProfileThickness; // thickness of scintillator
111 static const Float_t fgkDepth; // Alice IP depth from surface
113 static const Float_t fgkHitEnergyThreshold; // thereshold of energy
114 static const Float_t fgkMaxHitTimeDifference; // time difference of hit in modules
115 static const Int_t fgkMultiMuonThreshold; // thereshold of energy (AMU-mode)
116 static const Float_t fgkMultiMuonWindow; // time window (AMU-mode)
120 ClassDef(AliACORDEConstants, 0) // ACORDE(ACORDE) global constants
123 typedef AliACORDEConstants AliCRTConstants; // for backward compatibility
125 #endif // ALIACORDECONSTANTS_H