]>
Commit | Line | Data |
---|---|---|
3551db50 | 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 | // // | |
2745a409 | 8 | // Class containing constant common parameters // |
3551db50 | 9 | // // |
10 | /////////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | /* $Id$ */ | |
13 | ||
14 | #include "TObject.h" | |
15 | ||
16 | class AliTRDpadPlane; | |
17 | ||
18 | class AliTRDCommonParam : public TObject | |
19 | { | |
2745a409 | 20 | |
3551db50 | 21 | public: |
3551db50 | 22 | |
23 | enum { kNplan = 6, kNcham = 5, kNsect = 18, kNdet = 540 }; | |
24 | ||
25 | AliTRDCommonParam(const AliTRDCommonParam &p); | |
26 | AliTRDCommonParam &operator=(const AliTRDCommonParam &p); | |
671a9fcf | 27 | virtual ~AliTRDCommonParam(); |
28 | ||
2745a409 | 29 | static AliTRDCommonParam *Instance(); |
671a9fcf | 30 | static void Terminate(); |
31 | ||
2745a409 | 32 | virtual void Copy(TObject &p) const; |
3551db50 | 33 | |
b43a3e17 | 34 | void SetExB(Int_t exbOn = 1) { fExBOn = exbOn; } |
35 | void SetSamplingFrequency(Float_t freq) { fSamplingFrequency = freq; } | |
3551db50 | 36 | |
b43a3e17 | 37 | Bool_t ExBOn() const { return fExBOn; } |
3551db50 | 38 | |
cc7cef99 | 39 | AliTRDpadPlane *GetPadPlane(Int_t p, Int_t c) const; |
2745a409 | 40 | Int_t GetRowMax(Int_t p, Int_t c, Int_t /*s*/) const; |
41 | Int_t GetColMax(Int_t p) const; | |
42 | Double_t GetRow0(Int_t p, Int_t c, Int_t /*s*/) const; | |
43 | Double_t GetCol0(Int_t p) const; | |
b43a3e17 | 44 | Float_t GetSamplingFrequency() const { return fSamplingFrequency; } |
45 | ||
3551db50 | 46 | protected: |
2745a409 | 47 | |
b43a3e17 | 48 | static AliTRDCommonParam *fgInstance; // Instance of this class (singleton implementation) |
49 | static Bool_t fgTerminated; // Defines if this class has already been terminated | |
3551db50 | 50 | |
51 | void Init(); | |
3551db50 | 52 | |
b43a3e17 | 53 | Int_t fExBOn; // Switch for the ExB effects |
54 | ||
55 | Float_t fSamplingFrequency; // Sampling Frequency in MHz | |
3551db50 | 56 | |
b43a3e17 | 57 | TObjArray *fPadPlaneArray; //! Array of pad plane objects |
3551db50 | 58 | |
59 | private: | |
2745a409 | 60 | |
61 | // This is a singleton, constructor is private! | |
3551db50 | 62 | AliTRDCommonParam(); |
3551db50 | 63 | |
b43a3e17 | 64 | ClassDef(AliTRDCommonParam,3) // The constant parameters common to simulation and reconstruction |
3551db50 | 65 | }; |
66 | ||
67 | #endif |