Fix for memory leaks in digits TClonesArrays (Matevz)
[u/mrichter/AliRoot.git] / VZERO / AliVZEROTriggerMask.h
CommitLineData
a055ee24 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#include <TTree.h>
11#include <TClonesArray.h>
12
13class AliVZEROTriggerMask : public TObject
14{
15 public:
16 AliVZEROTriggerMask(); // constructor
17 virtual ~AliVZEROTriggerMask(){} // destructor
18
19 void FillMasks(TTree* vzeroDigitsTree,
20 TClonesArray* 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() { return fBBtriggerV0A;}
35 UInt_t GetBGtriggerV0A() { return fBGtriggerV0A;}
36 UInt_t GetBBtriggerV0C() { return fBBtriggerV0C;}
37 UInt_t GetBGtriggerV0C() { return fBGtriggerV0C;}
38
39private:
40
41 Float_t fAdcThresHold;
42 Float_t fTimeWindowWidthBBA; //
43 Float_t fTimeWindowWidthBGA; //
44 Float_t fTimeWindowWidthBBC; //
45 Float_t fTimeWindowWidthBGC; //
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