]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDdigitsParam.h
3a8aa2406732b8cb7953e06564aabb5cc2b269c0
[u/mrichter/AliRoot.git] / TRD / AliTRDdigitsParam.h
1 #ifndef ALITRDDIGITSPARAM_H
2 #define ALITRDDIGITSPARAM_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 parameters for digits                                    //
9 //                                                                           //
10 ///////////////////////////////////////////////////////////////////////////////
11
12 /* $Id: AliTRDdigitsParam.h 34070 2009-08-04 15:34:53Z cblume $ */
13
14 #include "TObject.h"
15
16 class AliTRDdigitsParam : public TObject
17 {
18
19   public:
20     
21     AliTRDdigitsParam();
22     AliTRDdigitsParam(const AliTRDdigitsParam &p);   
23     AliTRDdigitsParam &operator=(const AliTRDdigitsParam &p); 
24     virtual        ~AliTRDdigitsParam();
25
26     virtual void    Copy(TObject &p) const;
27
28             void    SetCheckOCDB(Bool_t check = kTRUE)         { fCheckOCDB = check;            }
29             Bool_t  SetNTimeBins(Int_t ntb);
30             void    SetPretiggerPhase(Int_t det, UInt_t phase) { fPretriggerPhase[det] = phase; }
31
32             Bool_t  CheckOCDB() const                          { return fCheckOCDB;             }
33             Int_t   GetNTimeBins() const                       { return fNTimeBins;             }
34             UInt_t  GetPretriggerPhase(Int_t det) const        { return fPretriggerPhase[det];  }
35
36   protected:
37
38             Bool_t  fCheckOCDB;            //  Do a consistency check with the corresponding OCDB entry
39             Int_t   fNTimeBins;            //  Number of timebins
40             UInt_t  fPretriggerPhase[540]; //  Pretrigger phase for each detector
41
42     ClassDef(AliTRDdigitsParam,2)          //  The parameters for digits
43
44 };
45 #endif