Line data Source code
1 : #ifndef ALIPHOSTRIGGERRAWDIGIT_H
2 : #define ALIPHOSTRIGGERRAWDIGIT_H
3 :
4 : /* Copyright(c) 2007, ALICE Experiment at CERN, All rights reserved. *
5 : * See cxx source for full Copyright notice */
6 :
7 : #include "AliDigitNew.h"
8 :
9 : class AliPHOSTriggerRawDigit : public AliDigitNew
10 : {
11 :
12 : public:
13 :
14 : AliPHOSTriggerRawDigit();
15 : AliPHOSTriggerRawDigit(Int_t module, Int_t x, Int_t z, Int_t L1_Threshold, Int_t amp);
16 : AliPHOSTriggerRawDigit(Int_t module, Int_t xIdx, Int_t zIdx, Int_t TRURow, Int_t branch, Int_t amp);
17 : AliPHOSTriggerRawDigit(const AliPHOSTriggerRawDigit & tdigit);
18 : AliPHOSTriggerRawDigit& operator=(const AliPHOSTriggerRawDigit & tdigit);
19 6 : virtual ~AliPHOSTriggerRawDigit() {}
20 :
21 : void Get4x4Position(Int_t& module, Int_t& xIdx, Int_t& zIdx, Int_t& TRURow, Int_t& branch)
22 0 : {module = fMod; xIdx = fXIdx; zIdx = fZIdx; TRURow = fTRURow; branch = fBranch; }
23 :
24 : void GetModXZ(Int_t& mod, Int_t& modX, Int_t& modZ);
25 0 : Int_t GetL1Threshold() { return fL1Threshold; }
26 0 : Int_t GetType() { return fType; }
27 :
28 : private:
29 :
30 : Int_t fType; // 0-L0, 1-L1
31 : Int_t fMod; // module
32 : Int_t fXloc; // local X in module
33 : Int_t fZloc; // local Z in module
34 : Int_t fXIdx; // 4x4 X
35 : Int_t fZIdx; // 4x4 Z
36 : Int_t fTRURow; // TRU row
37 : Int_t fBranch; // branch
38 : Int_t fL1Threshold; // L1 threshold: 0-High, 1-Medium, 2-Low
39 :
40 24 : ClassDef(AliPHOSTriggerRawDigit,2)
41 : };
42 :
43 : #endif
|