Adding flexibility to submission macros
[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 class AliESDVZERO;
13 class AliVZEROCalibData;
14
15 class AliVZEROTriggerMask : public TObject
16 {
17  public:
18                    AliVZEROTriggerMask();   // constructor
19    virtual        ~AliVZEROTriggerMask(){}  // destructor
20
21    void FillMasks(AliESDVZERO *esdV0,
22                   AliVZEROCalibData *cal,
23                   TF1 *slewing);
24    Double_t GetZPosition(const char* symname);
25
26    void            SetAdcThreshold(Float_t thr) 
27      {fAdcThresHold=thr;}
28    void            SetTimeWindowBBA(Float_t wlow,Float_t wup)
29      {fTimeWindowBBALow=wlow; fTimeWindowBBAUp=wup;}
30    void            SetTimeWindowBBC(Float_t wlow,Float_t wup)
31      {fTimeWindowBBCLow=wlow; fTimeWindowBBCUp=wup;}
32    void            SetTimeWindowBGA(Float_t wlow,Float_t wup) 
33      {fTimeWindowBGALow=wlow; fTimeWindowBGAUp=wup;}
34    void            SetTimeWindowBGC(Float_t wlow,Float_t wup) 
35      {fTimeWindowBGCLow=wlow; fTimeWindowBGCUp=wup;}
36
37 private:
38
39    Float_t fAdcThresHold; // Threshold on the ADC
40    Float_t fTimeWindowBBALow;  // BBA window (lower cut)
41    Float_t fTimeWindowBBAUp;   // BBA window (upper cut)
42    Float_t fTimeWindowBGALow;  // BGA window (lower cut)
43    Float_t fTimeWindowBGAUp;   // BGA window (upper cut)
44    Float_t fTimeWindowFakeALow;// Fake V0A window (lower cut)
45    Float_t fTimeWindowFakeAUp; // Fake V0A window (upper cut)
46    Float_t fTimeWindowBBCLow;  // BBC window (lower cut)
47    Float_t fTimeWindowBBCUp;   // BBC window (upper cut)
48    Float_t fTimeWindowBGCLow;  // BGC window (lower cut)
49    Float_t fTimeWindowBGCUp;   // BGC window (upper cut)
50    Float_t fTimeWindowFakeCLow;// Fake V0C window (lower cut)
51    Float_t fTimeWindowFakeCUp; // Fake V0C window (upper cut)
52
53    Float_t fV0ADist;     // Z position of V0A
54    Float_t fV0CDist;     // Z position of V0C
55
56
57    ClassDef( AliVZEROTriggerMask, 2 )  // VZERO Trigger Detector class
58 };
59
60 #endif // ALIVZEROTRIGGERMASK_H