]>
Commit | Line | Data |
---|---|---|
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 | // | |
16 | // Author: Arturo Fernandez, Enrique Gamez | |
17 | // FCFM-UAP, Mexico. | |
18 | // | |
19 | ///////////////////////////////////////////////////////////////////////// | |
20 | ||
21 | #include <TObject.h> | |
22 | ||
23 | enum ECRMode { | |
24 | kSingleMuons, | |
25 | kMuonBundle, | |
26 | kMuonFlux | |
27 | }; | |
28 | ||
29 | class AliACORDEConstants : public TObject { | |
30 | public: | |
31 | virtual ~AliACORDEConstants(); | |
32 | ||
33 | static AliACORDEConstants* Instance(); | |
34 | ||
35 | Float_t CageLenght() const; | |
36 | Float_t CageWidth() const; | |
37 | Float_t CageHeight() const; | |
38 | ||
39 | Float_t SinglePaletteLenght() const; | |
40 | Float_t SinglePaletteWidth() const; | |
41 | Float_t SinglePaletteHeight() const; | |
42 | ||
43 | Float_t ActiveAreaGap() const; | |
44 | Float_t ActiveAreaLenght() const; | |
45 | Float_t ActiveAreaWidth() const; | |
46 | Float_t ActiveAreaHeight() const; | |
47 | ||
48 | Float_t MagnetWidth() const; | |
49 | Float_t MagnetLenght() const; | |
50 | Float_t MagMinRadius() const; | |
51 | Float_t MagMaxRadius() const; | |
52 | ||
53 | Float_t Depth() const; | |
54 | ||
55 | protected: | |
56 | AliACORDEConstants(); | |
57 | AliACORDEConstants(const AliACORDEConstants& ct); | |
58 | AliACORDEConstants& operator=(const AliACORDEConstants& ct); | |
59 | ||
60 | static AliACORDEConstants* fgInstance; // static instanton | |
61 | ||
62 | static const Float_t fgkCageLenght; // Cage lenght | |
63 | static const Float_t fgkCageWidth; // Cage width | |
64 | static const Float_t fgkCageHeight; // Cage height | |
65 | ||
66 | static const Float_t fgkSinglePaletteLenght; // Palette lenght | |
67 | static const Float_t fgkSinglePaletteWidth; // Palette width | |
68 | static const Float_t fgkSinglePaletteHeight; // Palette height | |
69 | ||
70 | static const Float_t fgkActiveAreaGap; // Scintillator active area | |
71 | ||
72 | static const Float_t fgkActiveAreaLenght; // Active area lenght | |
73 | static const Float_t fgkActiveAreaWidth; // Active area width | |
74 | static const Float_t fgkActiveAreaHeight; // Active area height | |
75 | ||
76 | static const Float_t fgkMagnetWidth; // Magnet widht | |
77 | static const Float_t fgkMagnetLenght; // Magnet lenght | |
78 | static const Float_t fgkMagMinRadius; // Magnet inside radius | |
79 | static const Float_t fgkMagMaxRadius; // Magnet outer radius | |
80 | ||
81 | static const Float_t fgkDepth; // Alice IP depth from surface | |
82 | ||
83 | private: | |
84 | ClassDef(AliACORDEConstants, 0) // ACORDE(ACORDE) global constants | |
85 | }; | |
2814d35e | 86 | |
87 | typedef AliACORDEConstants AliCRTConstants; // for backward compatibility | |
88 | ||
b86e74f5 | 89 | #endif // ALIACORDECONSTANTS_H |