]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDparameter.h
a0a7d6f6321a55979ceac95c2d67ef57b3f1936c
[u/mrichter/AliRoot.git] / TRD / AliTRDparameter.h
1 #ifndef ALITRDPARAMETER_H
2 #define ALITRDPARAMETER_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 //  TRD parameter class                                                      //
11 //                                                                           //
12 ///////////////////////////////////////////////////////////////////////////////
13
14 #include "TNamed.h"
15
16 class TObjArray;
17 class AliTRDgeometry;
18 class AliTRDpadPlane;
19
20 class AliTRDparameter : public TNamed {
21
22  public:
23
24   enum { kNplan = 6, kNcham = 5, kNsect = 18, kNdet = 540 };
25  
26   AliTRDparameter();
27   AliTRDparameter(const Text_t* name, const Text_t* title);
28   AliTRDparameter(const AliTRDparameter &p);   
29   virtual ~AliTRDparameter();
30   AliTRDparameter &operator=(const AliTRDparameter &p); 
31
32   virtual void     Copy(TObject &p) const;
33   virtual void     Init();
34   virtual void     ReInit();
35  
36   virtual void     SetExpandTimeBin(Int_t nbefore, Int_t nafter)
37                                                                   { fTimeBefore = nbefore;
38                                                                     fTimeAfter  = nafter;       };
39
40
41
42           Int_t    GetTimeMax()                             const { return fTimeMax; };
43           Int_t    GetTimeBefore()                          const { return fTimeBefore;        }; 
44
45           Float_t  GetDriftVelocity()                       const { return fDriftVelocity;     };
46
47   
48
49
50           void     PrintDriftVelocity();
51
52
53  protected:
54
55   Int_t                fTimeMax;
56   Int_t                fTimeBefore;                         //  Number of timebins before the drift region
57   Int_t                fTimeAfter;                          //  Number of timebins after the drift region
58
59
60   Float_t              fDriftVelocity;                      //  Drift velocity (cm / mus)
61
62
63
64  private:
65
66
67   ClassDef(AliTRDparameter,7)                               //  TRD parameter class
68
69 };
70
71 #endif