Update of the ACORDE's Geometry (Mario)
[u/mrichter/AliRoot.git] / ACORDE / AliACORDEConstants.h
CommitLineData
b86e74f5 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//
ee0da434 16// Author: Arturo Fernandez, Enrique Gamez, Mario Rodriguez Cahuantzi
b86e74f5 17// FCFM-UAP, Mexico.
18//
ee0da434 19// Last update: Nov. 24th 08
b86e74f5 20/////////////////////////////////////////////////////////////////////////
21
22#include <TObject.h>
23
24enum ECRMode {
25 kSingleMuons,
26 kMuonBundle,
27 kMuonFlux
28};
29
30class AliACORDEConstants : public TObject {
31public:
32 virtual ~AliACORDEConstants();
33
34 static AliACORDEConstants* Instance();
35
19f796ed 36 // constant for geometry
37 Float_t ModuleLength() const;
38 Float_t ModuleWidth() const;
39 Float_t ModuleHeight() const;
74696677 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;
ee0da434 52 Float_t SupportModulePositionX(Int_t i) const;
53 Float_t SupportModulePositionY(Int_t i) const;
54 Float_t SupportModulePositionZ(Int_t i) const;
74696677 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;
19f796ed 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;
b86e74f5 64 Float_t Depth() const;
65
19f796ed 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;}
72
b86e74f5 73protected:
19f796ed 74
b86e74f5 75 AliACORDEConstants();
b86e74f5 76
77 static AliACORDEConstants* fgInstance; // static instanton
78
19f796ed 79 static const Float_t fgkModuleLength; // Module lenght
80 static const Float_t fgkModuleWidth; // Module width
81 static const Float_t fgkModuleHeight; // Module height
74696677 82 static const Float_t fgkInsideModulePositionX[60];
83 static const Float_t fgkInsideModulePositionY[60];
84 static const Float_t fgkInsideModulePositionZ[60];
85 static const Float_t fgkCenterModulePositionX[60];
86 static const Float_t fgkCenterModulePositionY[60];
87 static const Float_t fgkCenterModulePositionZ[60];
88 static const Float_t fgkOutsideModulePositionX[60];
89 static const Float_t fgkOutsideModulePositionY[60];
90 static const Float_t fgkOutsideModulePositionZ[60];
91 static const Float_t fgkOldModulePositionX[60]; // OLD position in ALICE
92 static const Float_t fgkOldModulePositionY[60]; // of center of module
93 static const Float_t fgkOldModulePositionZ[60];
ee0da434 94 static const Float_t fgkSupportModulePositionX[60];
95 static const Float_t fgkSupportModulePositionY[60];
96 static const Float_t fgkSupportModulePositionZ[60];
74696677 97 static const Float_t fgkOldExtraModulePositionZ[4];
98 static const Float_t fgkOldExtraModulePositionX;
99 static const Float_t fgkOldExtraModulePositionY;
100 static const Int_t fgkOldModuleElectronicChannel[60];
b86e74f5 101
19f796ed 102 static const Float_t fgkPlasticLength; // Plastic length
103 static const Float_t fgkPlasticWidth; // Plastic width
104 static const Float_t fgkPlasticHeight; // Plastic height
b86e74f5 105
b86e74f5 106
19f796ed 107 static const Float_t fgkProfileWidth; // profile of the module
108 static const Float_t fgkProfileThickness;
b86e74f5 109 static const Float_t fgkDepth; // Alice IP depth from surface
110
19f796ed 111 static const Float_t fgkHitEnergyThreshold;
112 static const Float_t fgkMaxHitTimeDifference;
113 static const Int_t fgkMultiMuonThreshold;
114 static const Float_t fgkMultiMuonWindow;
1093dbd7 115
116
b86e74f5 117 private:
118 ClassDef(AliACORDEConstants, 0) // ACORDE(ACORDE) global constants
119};
2814d35e 120
121typedef AliACORDEConstants AliCRTConstants; // for backward compatibility
122
b86e74f5 123#endif // ALIACORDECONSTANTS_H