Bug fix. Removed delete statement
[u/mrichter/AliRoot.git] / STEER / AliESDVZERO.h
CommitLineData
dd735cf0 1#ifndef AliESDVZERO_H
2#define AliESDVZERO_H
3
4#include <TObject.h>
5
6class AliESDVZERO : public TObject
7{
8public:
9 AliESDVZERO();
10 AliESDVZERO(const AliESDVZERO&);
d0502ab2 11 AliESDVZERO(UInt_t BBtriggerV0A, UInt_t BGtriggerV0A,
12 UInt_t BBtriggerV0C, UInt_t BGtriggerV0C,
6c6d6114 13 Float_t *Multiplicity, Short_t *Adc,
d0502ab2 14 Short_t *Time, Short_t *Width, Bool_t *BBFlag, Bool_t *BGFlag);
732a24fe 15
a055ee24 16 virtual ~AliESDVZERO() {};
dd735cf0 17
d0502ab2 18 // Setters
a055ee24 19 virtual void SetBBtriggerV0A(UInt_t BBtrigger) {fBBtriggerV0A=BBtrigger;}
20 virtual void SetBGtriggerV0A(UInt_t BGtrigger) {fBGtriggerV0A=BGtrigger;}
21 virtual void SetBBtriggerV0C(UInt_t BBtrigger) {fBBtriggerV0C=BBtrigger;}
22 virtual void SetBGtriggerV0C(UInt_t BGtrigger) {fBGtriggerV0C=BGtrigger;}
6c6d6114 23 virtual void SetMultiplicity(Float_t Multiplicity[64])
a055ee24 24 {for(Int_t i=0;i<64;i++) fMultiplicity[i]=Multiplicity[i];}
28fdf12c 25 virtual void SetADC(Short_t adc[64])
26 {for(Int_t i=0;i<64;i++) fAdc[i]=adc[i];}
27 virtual void SetTime(Short_t time[64])
28 {for(Int_t i=0;i<64;i++) fTime[i]=time[i];}
d0502ab2 29 virtual void SetWidth(Short_t width[64])
30 {for(Int_t i=0;i<64;i++) fWidth[i]=width[i];}
31 virtual void SetBBFlag(Bool_t BBFlag[64])
32 {for(Int_t i=0;i<64;i++) fBBFlag[i]=BBFlag[i];}
33 virtual void SetBGFlag(Bool_t BGFlag[64])
34 {for(Int_t i=0;i<64;i++) fBGFlag[i]=BGFlag[i];}
35
a055ee24 36 // Getters
6c6d6114 37 Short_t GetNbPMV0A();
38 Short_t GetNbPMV0C();
39 Float_t GetMTotV0A();
40 Float_t GetMTotV0C();
41 Float_t* GetMRingV0A();
42 Float_t* GetMRingV0C();
43 Float_t GetMRingV0A(Int_t ring);
44 Float_t GetMRingV0C(Int_t ring);
28fdf12c 45
6c6d6114 46 Float_t GetMultiplicity(Int_t i);
47 Float_t GetMultiplicityV0A(Int_t i);
48 Float_t GetMultiplicityV0C(Int_t i);
49 Int_t GetAdc(Int_t i);
50 Int_t GetAdcV0A(Int_t i);
51 Int_t GetAdcV0C(Int_t i);
52 Int_t GetTime(Int_t i);
53 Int_t GetTimeV0A(Int_t i);
54 Int_t GetTimeV0C(Int_t i);
55 Int_t GetWidth(Int_t i);
56 Int_t GetWidthV0A(Int_t i);
57 Int_t GetWidthV0C(Int_t i);
58 Bool_t BBTriggerV0A(Int_t i);
59 Bool_t BGTriggerV0A(Int_t i);
60 Bool_t BBTriggerV0C(Int_t i);
61 Bool_t BGTriggerV0C(Int_t i);
62 Bool_t GetBBFlag(Int_t i);
63 Bool_t GetBGFlag(Int_t i);
d0502ab2 64
28fdf12c 65 Bool_t OutOfRange(Int_t i, const char *s, Int_t upper) const;
a055ee24 66 AliESDVZERO &operator=(const AliESDVZERO& source);
dd735cf0 67
68protected:
dd735cf0 69
d0502ab2 70 UInt_t fBBtriggerV0A; // bit mask for Beam-Beam trigger in V0A
71 UInt_t fBGtriggerV0A; // bit mask for Beam-Gas trigger in V0A
72 UInt_t fBBtriggerV0C; // bit mask for Beam-Beam trigger in V0C
73 UInt_t fBGtriggerV0C; // bit mask for Beam-Gas trigger in V0C
a055ee24 74
6c6d6114 75 Float_t fMultiplicity[64]; // multiplicity for each channel
d0502ab2 76 Short_t fAdc[64]; // adc for each channel
77 Short_t fTime[64]; // time for each channel
78 Short_t fWidth[64]; // time width for each channel
79 Bool_t fBBFlag[64]; // BB Flags from Online V0 Electronics
80 Bool_t fBGFlag[64]; // BG Flags from Online V0 Electronics
81
6c6d6114 82 ClassDef(AliESDVZERO,6)
dd735cf0 83};
84
85#endif