]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALTriggerRawDigit.h
Cleanup
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTriggerRawDigit.h
1 #ifndef ALIEMCALTRIGGERRAWDIGIT_H
2 #define ALIEMCALTRIGGERRAWDIGIT_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  
9  Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3
10 */
11
12 #include "AliEMCALRawDigit.h" 
13 #include "AliEMCALTriggerTypes.h" 
14
15 class AliEMCALTriggerRawDigit : public AliEMCALRawDigit 
16 {
17 public:
18         
19         AliEMCALTriggerRawDigit();
20         AliEMCALTriggerRawDigit(Int_t id, Int_t timeSamples[], Int_t nSamples);
21         
22         virtual ~AliEMCALTriggerRawDigit();
23         
24         void    SetTriggerBit(const TriggerType_t type, const Int_t mode) {fTriggerBits = (fTriggerBits | (1 << (type + kTriggerTypeEnd * mode)));}
25         
26         Bool_t  SetL0Time(   Int_t i);
27         
28         Int_t   GetTriggerBit(const TriggerType_t type, const Int_t mode) const;
29
30         Int_t   GetTriggerBits() const {return fTriggerBits;}
31         
32         Bool_t  GetL0Time(const Int_t i, Int_t& time) const;
33         Bool_t  GetL0Times(Int_t times[]            ) const;
34         Int_t   GetNL0Times(                        ) const {return fNL0Times;}
35         
36         Int_t   GetL0TimeSum(const Int_t time) const;
37         
38         void    SetL1TimeSum(Int_t ts) {fL1TimeSum = ts;}
39         Int_t   GetL1TimeSum(        ) const {return fL1TimeSum;}
40         
41         virtual void Print(const Option_t* opt) const;
42         
43 private: 
44  
45         AliEMCALTriggerRawDigit(const AliEMCALTriggerRawDigit &cd);            // Not implemented
46         AliEMCALTriggerRawDigit &operator=(const AliEMCALTriggerRawDigit &cd); // Not implemented
47
48         Int_t   fTriggerBits;
49         Int_t   fNL0Times;
50         Int_t   fL0Times[10];
51         
52         Int_t   fL1TimeSum;
53         
54         ClassDef(AliEMCALTriggerRawDigit,1)
55 };
56 #endif
57