]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDdigitsParam.h
Remove a run from LHC10e wo AODs; added run list for the new PbPb MC LHC11a10b_bis
[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    SetNTimeBins(Int_t det, Int_t ntb)          { fNTimeBins[det]       = ntb;      }     
29             void    SetPretriggerPhase(Int_t det, UInt_t phase) { fPretriggerPhase[det] = phase;    }
30             void    SetADCbaseline(Int_t det, Int_t baseline)   { fADCbaseline[det]     = baseline; }
31
32             void    SetNTimeBinsAll(Int_t ntb)                  { for (Int_t i = 0; i < 540; i++) 
33                                                                     { fNTimeBins[i]       = ntb;      } }     
34             void    SetPretriggerPhaseAll(UInt_t phase)         { for (Int_t i = 0; i < 540; i++)
35                                                                     { fPretriggerPhase[i] = phase;    } }
36             void    SetADCbaselineAll(Int_t baseline)           { for (Int_t i = 0; i < 540; i++)
37                                                                     { fADCbaseline[i]     = baseline; } }
38
39             Int_t   GetNTimeBins(Int_t det) const               { return fNTimeBins[det];           }
40             UInt_t  GetPretriggerPhase(Int_t det) const         { return fPretriggerPhase[det];     }
41             Int_t   GetADCbaseline(Int_t det) const             { return fADCbaseline[det];         }
42
43   protected:
44
45             Int_t   fNTimeBins[540];       //  Number of timebins for each detector
46             UInt_t  fPretriggerPhase[540]; //  Pretrigger phase for each detector
47             Int_t   fADCbaseline[540];     //  ADC baseline for each detector, given in ADC channels
48
49     ClassDef(AliTRDdigitsParam,5)          //  The parameters for digits
50
51 };
52 #endif