1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 //-----------------------------------------------------------------
19 // Implementation of the EventTag class
20 // This is the class to deal with the tags in the event level
21 // Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
22 //-----------------------------------------------------------------
24 #include "AliEventTag.h"
28 //______________________________________________________________________________
29 AliEventTag::AliEventTag() :
36 fNumberOfParticipants(-10),
37 fImpactParameter(-10.0),
38 fPrimaryVertexFlag(-1),
39 fPrimaryVertexX(-100.0),
40 fPrimaryVertexY(-100.0),
41 fPrimaryVertexZ(-100.0),
42 fPrimaryVertexZError(-100.0),
44 fZDCNeutronEnergy(-10.0),
45 fZDCProtonEnergy(-10.0),
49 fNumberOfPositiveTracks(-10),
50 fNumberOfNegativeTracks(-10),
51 fNumberOfNeutralTracks(-10),
53 fNumberOfCascades(-10),
55 fNumberOfPMDTracks(-10),
56 fNumberOfPHOSTracks(-10),
57 fNumberOfEMCALTracks(-10),
58 fNumberOfFMDTracks(-10),
59 fNumberOfJetCandidates(-10),
60 fMaxJetEnergy(-100.0),
61 fNumberOfHardPhotonsCandidates(-10),
62 fMaxNeutralEnergy(-100.0),
63 fNumberOfChargedAbove1GeV(-10),
64 fNumberOfChargedAbove3GeV(-10),
65 fNumberOfChargedAbove10GeV(-10),
66 fNumberOfMuonsAbove1GeV(-10),
67 fNumberOfMuonsAbove3GeV(-10),
68 fNumberOfMuonsAbove10GeV(-10),
69 fNumberOfElectronsAbove1GeV(-10),
70 fNumberOfElectronsAbove3GeV(-10),
71 fNumberOfElectronsAbove10GeV(-10),
72 fNumberOfElectrons(-10),
76 fNumberOfProtons(-10),
77 fNumberOfLambdas(-10),
78 fNumberOfPhotons(-10),
80 fNumberOfNeutrons(-10),
85 fTotalNeutralP(-10.0),
86 fMeanNeutralPt(-10.0),
88 fEventPlaneAngle(-10.0),
91 // AliEventTag default constructor
95 //______________________________________________________________________________
96 AliEventTag::AliEventTag(const AliEventTag & EvTag) : TObject(EvTag)
98 // EventTag copy constructor
99 SetEventId(EvTag.GetEventId());
100 SetGUID(EvTag.GetGUID());
102 SetMD5(EvTag.GetMD5());
103 SetTURL(EvTag.GetTURL());
104 SetSize(EvTag.GetSize());
106 SetNumOfParticipants(EvTag.GetNumOfParticipants());
107 SetImpactParameter(EvTag.GetImpactParameter());
109 SetVertexX(EvTag.GetVertexX());
110 SetVertexY(EvTag.GetVertexY());
111 SetVertexZ(EvTag.GetVertexZ());
113 SetVertexFlag(EvTag.GetVertexFlag());
114 SetVertexZError(EvTag.GetVertexZError());
116 SetTrigger(EvTag.GetTrigger());
118 SetZDCNeutronEnergy(EvTag.GetZDCNeutronEnergy());
119 SetZDCProtonEnergy(EvTag.GetZDCProtonEnergy());
120 SetZDCEMEnergy(EvTag.GetZDCEMEnergy());
122 SetT0VertexZ(EvTag.GetT0VertexZ());
124 SetNumOfTracks(EvTag.GetNumOfTracks());
125 SetNumOfPosTracks(EvTag.GetNumOfPosTracks());
126 SetNumOfNegTracks(EvTag.GetNumOfNegTracks());
127 SetNumOfNeutrTracks(EvTag.GetNumOfNeutrTracks());
129 SetNumOfV0s(EvTag.GetNumOfV0s());
130 SetNumOfCascades(EvTag.GetNumOfCascades());
131 SetNumOfKinks(EvTag.GetNumOfKinks());
133 SetNumOfPMDTracks(EvTag.GetNumOfPMDTracks());
134 SetNumOfPHOSTracks(EvTag.GetNumOfPHOSTracks());
135 SetNumOfEMCALTracks(EvTag.GetNumOfEMCALTracks());
136 SetNumOfFMDTracks(EvTag.GetNumOfFMDTracks());
138 SetNumOfJetCandidates(EvTag.GetNumOfJetCandidates());
139 SetNumOfHardPhotonsCandidates(EvTag.GetNumOfHardPhotonsCandidates());
141 SetMaxJetEnergy(EvTag.GetMaxJetEnergy());
142 SetMaxNeutralEnergy(EvTag.GetMaxNeutralEnergy());
144 SetNumOfChargedAbove1GeV(EvTag.GetNumOfChargedAbove1GeV());
145 SetNumOfChargedAbove3GeV(EvTag.GetNumOfChargedAbove3GeV());
146 SetNumOfChargedAbove10GeV(EvTag.GetNumOfChargedAbove10GeV());
147 SetNumOfMuonsAbove1GeV(EvTag.GetNumOfMuonsAbove1GeV());
148 SetNumOfMuonsAbove3GeV(EvTag.GetNumOfMuonsAbove3GeV());
149 SetNumOfMuonsAbove10GeV(EvTag.GetNumOfMuonsAbove10GeV());
150 SetNumOfElectronsAbove1GeV(EvTag.GetNumOfElectronsAbove1GeV());
151 SetNumOfElectronsAbove3GeV(EvTag.GetNumOfElectronsAbove3GeV());
152 SetNumOfElectronsAbove10GeV(EvTag.GetNumOfElectronsAbove10GeV());
154 SetNumOfElectrons(EvTag.GetNumOfElectrons());
155 SetNumOfMuons(EvTag.GetNumOfMuons());
156 SetNumOfPions(EvTag.GetNumOfPions());
157 SetNumOfKaons(EvTag.GetNumOfKaons());
158 SetNumOfProtons(EvTag.GetNumOfProtons());
159 SetNumOfLambdas(EvTag.GetNumOfLambdas());
162 SetNumOfPhotons(EvTag.GetNumOfPhotons());
163 SetNumOfPi0s(EvTag.GetNumOfPi0s());
164 SetNumOfNeutrons(EvTag.GetNumOfNeutrons());
165 SetNumOfKaon0s(EvTag.GetNumOfKaon0s());
167 SetTotalMomentum(EvTag.GetTotalMomentum());
168 SetMeanPt(EvTag.GetMeanPt());
169 SetMaxPt(EvTag.GetMaxPt());
171 SetNeutralTotalMomentum(EvTag.GetNeutralTotalMomentum());
172 SetNeutralMeanPt(EvTag.GetNeutralMeanPt());
173 SetNeutralMaxPt(EvTag.GetNeutralMaxPt());
175 SetEventPlaneAngle(EvTag.GetEventPlaneAngle());
176 SetHBTRadii(EvTag.GetHBTRadii());
179 //______________________________________________________________________________
180 AliEventTag & AliEventTag::operator=(const AliEventTag &EvTag)
182 // EventTag assignment operator
183 if (this != &EvTag) {
184 TObject::operator=(EvTag);
186 SetEventId(EvTag.GetEventId());
187 SetGUID(EvTag.GetGUID());
189 SetMD5(EvTag.GetMD5());
190 SetTURL(EvTag.GetTURL());
191 SetSize(EvTag.GetSize());
193 SetNumOfParticipants(EvTag.GetNumOfParticipants());
194 SetImpactParameter(EvTag.GetImpactParameter());
196 SetVertexX(EvTag.GetVertexX());
197 SetVertexY(EvTag.GetVertexY());
198 SetVertexZ(EvTag.GetVertexZ());
200 SetVertexFlag(EvTag.GetVertexFlag());
201 SetVertexZError(EvTag.GetVertexZError());
203 SetTrigger(EvTag.GetTrigger());
205 SetZDCNeutronEnergy(EvTag.GetZDCNeutronEnergy());
206 SetZDCProtonEnergy(EvTag.GetZDCProtonEnergy());
207 SetZDCEMEnergy(EvTag.GetZDCEMEnergy());
209 SetT0VertexZ(EvTag.GetT0VertexZ());
211 SetNumOfTracks(EvTag.GetNumOfTracks());
212 SetNumOfPosTracks(EvTag.GetNumOfPosTracks());
213 SetNumOfNegTracks(EvTag.GetNumOfNegTracks());
214 SetNumOfNeutrTracks(EvTag.GetNumOfNeutrTracks());
216 SetNumOfV0s(EvTag.GetNumOfV0s());
217 SetNumOfCascades(EvTag.GetNumOfCascades());
218 SetNumOfKinks(EvTag.GetNumOfKinks());
220 SetNumOfPMDTracks(EvTag.GetNumOfPMDTracks());
221 SetNumOfPHOSTracks(EvTag.GetNumOfPHOSTracks());
222 SetNumOfEMCALTracks(EvTag.GetNumOfEMCALTracks());
223 SetNumOfFMDTracks(EvTag.GetNumOfFMDTracks());
225 SetNumOfJetCandidates(EvTag.GetNumOfJetCandidates());
226 SetNumOfHardPhotonsCandidates(EvTag.GetNumOfHardPhotonsCandidates());
228 SetMaxJetEnergy(EvTag.GetMaxJetEnergy());
229 SetMaxNeutralEnergy(EvTag.GetMaxNeutralEnergy());
231 SetNumOfChargedAbove1GeV(EvTag.GetNumOfChargedAbove1GeV());
232 SetNumOfChargedAbove3GeV(EvTag.GetNumOfChargedAbove3GeV());
233 SetNumOfChargedAbove10GeV(EvTag.GetNumOfChargedAbove10GeV());
234 SetNumOfMuonsAbove1GeV(EvTag.GetNumOfMuonsAbove1GeV());
235 SetNumOfMuonsAbove3GeV(EvTag.GetNumOfMuonsAbove3GeV());
236 SetNumOfMuonsAbove10GeV(EvTag.GetNumOfMuonsAbove10GeV());
237 SetNumOfElectronsAbove1GeV(EvTag.GetNumOfElectronsAbove1GeV());
238 SetNumOfElectronsAbove3GeV(EvTag.GetNumOfElectronsAbove3GeV());
239 SetNumOfElectronsAbove10GeV(EvTag.GetNumOfElectronsAbove10GeV());
241 SetNumOfElectrons(EvTag.GetNumOfElectrons());
242 SetNumOfMuons(EvTag.GetNumOfMuons());
243 SetNumOfPions(EvTag.GetNumOfPions());
244 SetNumOfKaons(EvTag.GetNumOfKaons());
245 SetNumOfProtons(EvTag.GetNumOfProtons());
246 SetNumOfLambdas(EvTag.GetNumOfLambdas());
249 SetNumOfPhotons(EvTag.GetNumOfPhotons());
250 SetNumOfPi0s(EvTag.GetNumOfPi0s());
251 SetNumOfNeutrons(EvTag.GetNumOfNeutrons());
252 SetNumOfKaon0s(EvTag.GetNumOfKaon0s());
254 SetTotalMomentum(EvTag.GetTotalMomentum());
255 SetMeanPt(EvTag.GetMeanPt());
256 SetMaxPt(EvTag.GetMaxPt());
258 SetNeutralTotalMomentum(EvTag.GetNeutralTotalMomentum());
259 SetNeutralMeanPt(EvTag.GetNeutralMeanPt());
260 SetNeutralMaxPt(EvTag.GetNeutralMaxPt());
262 SetEventPlaneAngle(EvTag.GetEventPlaneAngle());
263 SetHBTRadii(EvTag.GetHBTRadii());
268 //______________________________________________________________________________
269 AliEventTag::~AliEventTag()
271 // AliEventTag destructor