Optional scoring for background studies in HALL.
[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
8ddda249 78 AliACORDEConstants (const AliACORDEConstants& fgInstance);
79 AliACORDEConstants& operator = (const AliACORDEConstants& fInstance);
80
19f796ed 81 static const Float_t fgkModuleLength; // Module lenght
82 static const Float_t fgkModuleWidth; // Module width
83 static const Float_t fgkModuleHeight; // Module height
8ddda249 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)
74696677 93 static const Float_t fgkOldModulePositionX[60]; // OLD position in ALICE
94 static const Float_t fgkOldModulePositionY[60]; // of center of module
8ddda249 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
b86e74f5 103
19f796ed 104 static const Float_t fgkPlasticLength; // Plastic length
105 static const Float_t fgkPlasticWidth; // Plastic width
106 static const Float_t fgkPlasticHeight; // Plastic height
b86e74f5 107
b86e74f5 108
19f796ed 109 static const Float_t fgkProfileWidth; // profile of the module
8ddda249 110 static const Float_t fgkProfileThickness; // thickness of scintillator
b86e74f5 111 static const Float_t fgkDepth; // Alice IP depth from surface
112
8ddda249 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)
1093dbd7 117
118
b86e74f5 119 private:
120 ClassDef(AliACORDEConstants, 0) // ACORDE(ACORDE) global constants
121};
2814d35e 122
123typedef AliACORDEConstants AliCRTConstants; // for backward compatibility
124
b86e74f5 125#endif // ALIACORDECONSTANTS_H