]> git.uio.no Git - u/mrichter/AliRoot.git/blob - VZERO/AliVZEROTriggerMask.h
- adding members to the CALO cluster data struct to facilitate for use of
[u/mrichter/AliRoot.git] / VZERO / AliVZEROTriggerMask.h
1 #ifndef ALIVZEROTRIGGERMASK_H
2 #define ALIVZEROTRIGGERMASK_H
3
4 ///_________________________________________________________________________
5 ///
6 ///  Auxiliary classs to compute the  VZERO Trigger
7 ///_________________________________________________________________________   
8
9 #include <TObject.h>
10 class TTree;
11 class TClonesArray;
12
13 class AliVZEROTriggerMask : public TObject
14 {
15  public:
16                    AliVZEROTriggerMask();   // constructor
17    virtual        ~AliVZEROTriggerMask(){}  // destructor
18
19    void FillMasks(TTree* vzeroDigitsTree,
20                   TClonesArray* const vzeroDigits);
21    Double_t GetZPosition(const char* symname);
22
23    void            SetAdcThreshold(Float_t t=55.0) 
24      {fAdcThresHold=t;}
25    void            SetTimeWindowWidthBBA(Float_t w=50.0)
26      {fTimeWindowWidthBBA=w;}
27    void            SetTimeWindowWidthBBC(Float_t w=50.0)
28      {fTimeWindowWidthBBC=w;}
29    void            SetTimeWindowWidthBGA(Float_t w=20.0) 
30      {fTimeWindowWidthBGA=w;}
31    void            SetTimeWindowWidthBGC(Float_t w=20.0) 
32      {fTimeWindowWidthBGC=w;}
33
34    UInt_t GetBBtriggerV0A() const { return fBBtriggerV0A;}
35    UInt_t GetBGtriggerV0A() const { return fBGtriggerV0A;}
36    UInt_t GetBBtriggerV0C() const { return fBBtriggerV0C;}
37    UInt_t GetBGtriggerV0C() const { return fBGtriggerV0C;}
38
39 private:
40
41    Float_t fAdcThresHold; // Threshold on the ADC
42    Float_t fTimeWindowWidthBBA; // size of the BBA window
43    Float_t fTimeWindowWidthBGA; // size of the BGA window
44    Float_t fTimeWindowWidthBBC; // size of the BBC window
45    Float_t fTimeWindowWidthBGC; // size of the BGC window
46    UInt_t fBBtriggerV0A; // bit mask for Beam-Beam trigger in V0A
47    UInt_t fBGtriggerV0A; // bit mask for Beam-Gas trigger in V0A
48    UInt_t fBBtriggerV0C; // bit mask for Beam-Beam trigger in V0C
49    UInt_t fBGtriggerV0C; // bit mask for Beam-Gas trigger in V0C
50
51
52    ClassDef( AliVZEROTriggerMask, 1 )  // VZERO Trigger Detector class
53 };
54
55 #endif // ALIVZEROTRIGGERMASK_H