Additional protection
[u/mrichter/AliRoot.git] / VZERO / AliVZEROTriggerMask.h
CommitLineData
2647fc37 1#ifndef ALIVZEROTRIGGERMASK_H
2#define ALIVZEROTRIGGERMASK_H
a055ee24 3
4///_________________________________________________________________________
5///
6/// Auxiliary classs to compute the VZERO Trigger
7///_________________________________________________________________________
8
9#include <TObject.h>
2647fc37 10class TTree;
11class TClonesArray;
b44c933e 12class AliESDVZERO;
13class AliVZEROCalibData;
a055ee24 14
15class AliVZEROTriggerMask : public TObject
16{
17 public:
18 AliVZEROTriggerMask(); // constructor
19 virtual ~AliVZEROTriggerMask(){} // destructor
20
b44c933e 21 void FillMasks(AliESDVZERO *esdV0,
22 AliVZEROCalibData *cal,
23 TF1 *slewing);
a055ee24 24 Double_t GetZPosition(const char* symname);
25
b44c933e 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;}
a055ee24 36
37private:
38
2647fc37 39 Float_t fAdcThresHold; // Threshold on the ADC
b44c933e 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
a055ee24 58};
59
2647fc37 60#endif // ALIVZEROTRIGGERMASK_H