]>
Commit | Line | Data |
---|---|---|
1 | #ifndef AliTRDCOMMONPARAM_H | |
2 | #define AliTRDCOMMONPARAM_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /////////////////////////////////////////////////////////////////////////////// | |
7 | // // | |
8 | // Class containing constant common parameters // | |
9 | // // | |
10 | /////////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | /* $Id$ */ | |
13 | ||
14 | #include "TObject.h" | |
15 | ||
16 | class TRootIoCtor; | |
17 | ||
18 | class AliTRDpadPlane; | |
19 | ||
20 | class AliTRDCommonParam : public TObject | |
21 | { | |
22 | ||
23 | public: | |
24 | ||
25 | enum { kNlayer = 6, kNstack = 5, kNsector = 18, kNdet = 540 }; | |
26 | ||
27 | AliTRDCommonParam(TRootIoCtor *); | |
28 | AliTRDCommonParam(const AliTRDCommonParam &p); | |
29 | AliTRDCommonParam &operator=(const AliTRDCommonParam &p); | |
30 | virtual ~AliTRDCommonParam(); | |
31 | ||
32 | static AliTRDCommonParam *Instance(); | |
33 | static void Terminate(); | |
34 | ||
35 | virtual void Copy(TObject &p) const; | |
36 | ||
37 | void SetExB(Int_t exbOn = 1) { fExBOn = exbOn; } | |
38 | void SetSamplingFrequency(Float_t freq) { fSamplingFrequency = freq; } | |
39 | ||
40 | Bool_t ExBOn() const { return fExBOn; } | |
41 | Float_t GetSamplingFrequency() const { return fSamplingFrequency; } | |
42 | ||
43 | protected: | |
44 | ||
45 | void Init(); | |
46 | ||
47 | static AliTRDCommonParam *fgInstance; // Instance of this class (singleton implementation) | |
48 | static Bool_t fgTerminated; // Defines if this class has already been terminated | |
49 | Int_t fExBOn; // Switch for the ExB effects | |
50 | Float_t fSamplingFrequency; // Sampling Frequency in MHz | |
51 | ||
52 | private: | |
53 | ||
54 | // This is a singleton, constructor is private! | |
55 | AliTRDCommonParam(); | |
56 | ||
57 | ClassDef(AliTRDCommonParam,6) // The constant parameters common to simulation and reconstruction | |
58 | ||
59 | }; | |
60 | ||
61 | #endif |