4 //-------------------------------------------------------------------------
5 // Container class for ESD VZERO data
6 // Author: Brigitte Cheynis & Cvetan Cheshkov
7 //-------------------------------------------------------------------------
11 class AliESDVZERO : public AliVVZERO
15 AliESDVZERO(const AliESDVZERO&o);
16 AliESDVZERO(UInt_t BBtriggerV0A, UInt_t BGtriggerV0A,
17 UInt_t BBtriggerV0C, UInt_t BGtriggerV0C,
18 Float_t *Multiplicity, Float_t *Adc,
19 Float_t *Time, Float_t *Width, Bool_t *BBFlag, Bool_t *BGFlag);
20 void Copy(TObject &obj) const;
22 virtual ~AliESDVZERO() {};
25 void SetBBtriggerV0A(UInt_t BBtrigger) {fBBtriggerV0A=BBtrigger;}
26 void SetBGtriggerV0A(UInt_t BGtrigger) {fBGtriggerV0A=BGtrigger;}
27 void SetBBtriggerV0C(UInt_t BBtrigger) {fBBtriggerV0C=BBtrigger;}
28 void SetBGtriggerV0C(UInt_t BGtrigger) {fBGtriggerV0C=BGtrigger;}
29 void SetMultiplicity(Float_t Multiplicity[64])
30 {for(Int_t i=0;i<64;i++) fMultiplicity[i]=Multiplicity[i];}
31 void SetADC(Float_t adc[64])
32 {for(Int_t i=0;i<64;i++) fAdc[i]=adc[i];}
33 void SetTime(Float_t time[64])
34 {for(Int_t i=0;i<64;i++) fTime[i]=time[i];}
35 void SetWidth(Float_t width[64])
36 {for(Int_t i=0;i<64;i++) fWidth[i]=width[i];}
37 void SetBBFlag(Bool_t BBFlag[64])
38 {for(Int_t i=0;i<64;i++) fBBFlag[i]=BBFlag[i];}
39 void SetBGFlag(Bool_t BGFlag[64])
40 {for(Int_t i=0;i<64;i++) fBGFlag[i]=BGFlag[i];}
42 void SetV0ATime(Float_t time) {fV0ATime = time;}
43 void SetV0CTime(Float_t time) {fV0CTime = time;}
44 void SetV0ATimeError(Float_t err) {fV0ATimeError = err;}
45 void SetV0CTimeError(Float_t err) {fV0CTimeError = err;}
47 void SetV0ADecision(Decision des) {fV0ADecision = des;}
48 void SetV0CDecision(Decision des) {fV0CDecision = des;}
51 virtual Short_t GetNbPMV0A() const;
52 virtual Short_t GetNbPMV0C() const;
53 virtual Float_t GetMTotV0A() const;
54 virtual Float_t GetMTotV0C() const;
55 virtual Float_t GetMRingV0A(Int_t ring) const;
56 virtual Float_t GetMRingV0C(Int_t ring) const;
58 virtual Float_t GetMultiplicity(Int_t i) const;
59 virtual Float_t GetMultiplicityV0A(Int_t i) const;
60 virtual Float_t GetMultiplicityV0C(Int_t i) const;
61 virtual Float_t GetAdc(Int_t i) const;
62 virtual Float_t GetAdcV0A(Int_t i) const;
63 virtual Float_t GetAdcV0C(Int_t i) const;
64 virtual Float_t GetTime(Int_t i) const;
65 virtual Float_t GetTimeV0A(Int_t i) const;
66 virtual Float_t GetTimeV0C(Int_t i) const;
67 virtual Float_t GetWidth(Int_t i) const;
68 virtual Float_t GetWidthV0A(Int_t i) const;
69 virtual Float_t GetWidthV0C(Int_t i) const;
70 virtual Bool_t BBTriggerV0A(Int_t i) const;
71 virtual Bool_t BGTriggerV0A(Int_t i) const;
72 virtual Bool_t BBTriggerV0C(Int_t i) const;
73 virtual Bool_t BGTriggerV0C(Int_t i) const;
74 virtual Bool_t GetBBFlag(Int_t i) const;
75 virtual Bool_t GetBGFlag(Int_t i) const;
77 virtual Float_t GetV0ATime() const { return fV0ATime; }
78 virtual Float_t GetV0CTime() const { return fV0CTime; }
79 virtual Float_t GetV0ATimeError() const { return fV0ATimeError; }
80 virtual Float_t GetV0CTimeError() const { return fV0CTimeError; }
82 virtual Decision GetV0ADecision() const { return fV0ADecision; }
83 virtual Decision GetV0CDecision() const { return fV0CDecision; }
85 AliESDVZERO &operator=(const AliESDVZERO& source);
89 UInt_t fBBtriggerV0A; // bit mask for Beam-Beam trigger in V0A
90 UInt_t fBGtriggerV0A; // bit mask for Beam-Gas trigger in V0A
91 UInt_t fBBtriggerV0C; // bit mask for Beam-Beam trigger in V0C
92 UInt_t fBGtriggerV0C; // bit mask for Beam-Gas trigger in V0C
94 Float_t fMultiplicity[64]; // multiplicity for each channel
95 Float_t fAdc[64]; // adc for each channel
96 Float_t fTime[64]; // time for each channel
97 Float_t fWidth[64]; // time width for each channel
98 Bool_t fBBFlag[64]; // BB Flags from Online V0 Electronics
99 Bool_t fBGFlag[64]; // BG Flags from Online V0 Electronics
101 Float_t fV0ATime; // Average time in V0A
102 Float_t fV0CTime; // Average time in V0C
103 Float_t fV0ATimeError; // Error in the average time in V0A
104 Float_t fV0CTimeError; // Error in the average time in V0C
106 Decision fV0ADecision; // V0A final decision based on average time of channels
107 Decision fV0CDecision; // V0C final decision based on average time of channels
109 ClassDef(AliESDVZERO,9)