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() :
33 fNumberOfParticipants(-10),
34 fImpactParameter(-10.0),
35 fPrimaryVertexFlag(-1),
36 fPrimaryVertexX(-100.0),
37 fPrimaryVertexY(-100.0),
38 fPrimaryVertexZ(-100.0),
39 fPrimaryVertexZError(-100.0),
41 fZDCNeutronEnergy(-10.0),
42 fZDCProtonEnergy(-10.0),
46 fNumberOfPositiveTracks(-10),
47 fNumberOfNegativeTracks(-10),
48 fNumberOfNeutralTracks(-10),
50 fNumberOfCascades(-10),
52 fNumberOfPMDTracks(-10),
53 fNumberOfPHOSTracks(-10),
54 fNumberOfEMCALTracks(-10),
55 fNumberOfFMDTracks(-10),
56 fNumberOfJetCandidates(-10),
57 fMaxJetEnergy(-100.0),
58 fNumberOfHardPhotonsCandidates(-10),
59 fMaxNeutralEnergy(-100.0),
60 fNumberOfChargedAbove1GeV(-10),
61 fNumberOfChargedAbove3GeV(-10),
62 fNumberOfChargedAbove10GeV(-10),
63 fNumberOfMuonsAbove1GeV(-10),
64 fNumberOfMuonsAbove3GeV(-10),
65 fNumberOfMuonsAbove10GeV(-10),
66 fNumberOfElectronsAbove1GeV(-10),
67 fNumberOfElectronsAbove3GeV(-10),
68 fNumberOfElectronsAbove10GeV(-10),
69 fNumberOfElectrons(-10),
73 fNumberOfProtons(-10),
74 fNumberOfLambdas(-10),
75 fNumberOfPhotons(-10),
77 fNumberOfNeutrons(-10),
82 fTotalNeutralP(-10.0),
83 fMeanNeutralPt(-10.0),
85 fEventPlaneAngle(-10.0),
88 // AliEventTag default constructor
92 //______________________________________________________________________________
93 AliEventTag::AliEventTag(const AliEventTag & EvTag) : TObject(EvTag)
95 // EventTag copy constructor
96 SetEventId(EvTag.GetEventId());
97 SetGUID(EvTag.GetGUID());
99 SetNumOfParticipants(EvTag.GetNumOfParticipants());
100 SetImpactParameter(EvTag.GetImpactParameter());
102 SetVertexX(EvTag.GetVertexX());
103 SetVertexY(EvTag.GetVertexY());
104 SetVertexZ(EvTag.GetVertexZ());
106 SetVertexFlag(EvTag.GetVertexFlag());
107 SetVertexZError(EvTag.GetVertexZError());
109 SetTrigger(EvTag.GetTrigger());
111 SetZDCNeutronEnergy(EvTag.GetZDCNeutronEnergy());
112 SetZDCProtonEnergy(EvTag.GetZDCProtonEnergy());
113 SetZDCEMEnergy(EvTag.GetZDCEMEnergy());
115 SetT0VertexZ(EvTag.GetT0VertexZ());
117 SetNumOfTracks(EvTag.GetNumOfTracks());
118 SetNumOfPosTracks(EvTag.GetNumOfPosTracks());
119 SetNumOfNegTracks(EvTag.GetNumOfNegTracks());
120 SetNumOfNeutrTracks(EvTag.GetNumOfNeutrTracks());
122 SetNumOfV0s(EvTag.GetNumOfV0s());
123 SetNumOfCascades(EvTag.GetNumOfCascades());
124 SetNumOfKinks(EvTag.GetNumOfKinks());
126 SetNumOfPMDTracks(EvTag.GetNumOfPMDTracks());
127 SetNumOfPHOSTracks(EvTag.GetNumOfPHOSTracks());
128 SetNumOfEMCALTracks(EvTag.GetNumOfEMCALTracks());
129 SetNumOfFMDTracks(EvTag.GetNumOfFMDTracks());
131 SetNumOfJetCandidates(EvTag.GetNumOfJetCandidates());
132 SetNumOfHardPhotonsCandidates(EvTag.GetNumOfHardPhotonsCandidates());
134 SetMaxJetEnergy(EvTag.GetMaxJetEnergy());
135 SetMaxNeutralEnergy(EvTag.GetMaxNeutralEnergy());
137 SetNumOfChargedAbove1GeV(EvTag.GetNumOfChargedAbove1GeV());
138 SetNumOfChargedAbove3GeV(EvTag.GetNumOfChargedAbove3GeV());
139 SetNumOfChargedAbove10GeV(EvTag.GetNumOfChargedAbove10GeV());
140 SetNumOfMuonsAbove1GeV(EvTag.GetNumOfMuonsAbove1GeV());
141 SetNumOfMuonsAbove3GeV(EvTag.GetNumOfMuonsAbove3GeV());
142 SetNumOfMuonsAbove10GeV(EvTag.GetNumOfMuonsAbove10GeV());
143 SetNumOfElectronsAbove1GeV(EvTag.GetNumOfElectronsAbove1GeV());
144 SetNumOfElectronsAbove3GeV(EvTag.GetNumOfElectronsAbove3GeV());
145 SetNumOfElectronsAbove10GeV(EvTag.GetNumOfElectronsAbove10GeV());
147 SetNumOfElectrons(EvTag.GetNumOfElectrons());
148 SetNumOfMuons(EvTag.GetNumOfMuons());
149 SetNumOfPions(EvTag.GetNumOfPions());
150 SetNumOfKaons(EvTag.GetNumOfKaons());
151 SetNumOfProtons(EvTag.GetNumOfProtons());
152 SetNumOfLambdas(EvTag.GetNumOfLambdas());
155 SetNumOfPhotons(EvTag.GetNumOfPhotons());
156 SetNumOfPi0s(EvTag.GetNumOfPi0s());
157 SetNumOfNeutrons(EvTag.GetNumOfNeutrons());
158 SetNumOfKaon0s(EvTag.GetNumOfKaon0s());
160 SetTotalMomentum(EvTag.GetTotalMomentum());
161 SetMeanPt(EvTag.GetMeanPt());
162 SetMaxPt(EvTag.GetMaxPt());
164 SetNeutralTotalMomentum(EvTag.GetNeutralTotalMomentum());
165 SetNeutralMeanPt(EvTag.GetNeutralMeanPt());
166 SetNeutralMaxPt(EvTag.GetNeutralMaxPt());
168 SetEventPlaneAngle(EvTag.GetEventPlaneAngle());
169 SetHBTRadii(EvTag.GetHBTRadii());
172 //______________________________________________________________________________
173 AliEventTag & AliEventTag::operator=(const AliEventTag &EvTag)
175 // EventTag assignment operator
176 if (this != &EvTag) {
177 TObject::operator=(EvTag);
179 SetEventId(EvTag.GetEventId());
180 SetGUID(EvTag.GetGUID());
182 SetNumOfParticipants(EvTag.GetNumOfParticipants());
183 SetImpactParameter(EvTag.GetImpactParameter());
185 SetVertexX(EvTag.GetVertexX());
186 SetVertexY(EvTag.GetVertexY());
187 SetVertexZ(EvTag.GetVertexZ());
189 SetVertexFlag(EvTag.GetVertexFlag());
190 SetVertexZError(EvTag.GetVertexZError());
192 SetTrigger(EvTag.GetTrigger());
194 SetZDCNeutronEnergy(EvTag.GetZDCNeutronEnergy());
195 SetZDCProtonEnergy(EvTag.GetZDCProtonEnergy());
196 SetZDCEMEnergy(EvTag.GetZDCEMEnergy());
198 SetT0VertexZ(EvTag.GetT0VertexZ());
200 SetNumOfTracks(EvTag.GetNumOfTracks());
201 SetNumOfPosTracks(EvTag.GetNumOfPosTracks());
202 SetNumOfNegTracks(EvTag.GetNumOfNegTracks());
203 SetNumOfNeutrTracks(EvTag.GetNumOfNeutrTracks());
205 SetNumOfV0s(EvTag.GetNumOfV0s());
206 SetNumOfCascades(EvTag.GetNumOfCascades());
207 SetNumOfKinks(EvTag.GetNumOfKinks());
209 SetNumOfPMDTracks(EvTag.GetNumOfPMDTracks());
210 SetNumOfPHOSTracks(EvTag.GetNumOfPHOSTracks());
211 SetNumOfEMCALTracks(EvTag.GetNumOfEMCALTracks());
212 SetNumOfFMDTracks(EvTag.GetNumOfFMDTracks());
214 SetNumOfJetCandidates(EvTag.GetNumOfJetCandidates());
215 SetNumOfHardPhotonsCandidates(EvTag.GetNumOfHardPhotonsCandidates());
217 SetMaxJetEnergy(EvTag.GetMaxJetEnergy());
218 SetMaxNeutralEnergy(EvTag.GetMaxNeutralEnergy());
220 SetNumOfChargedAbove1GeV(EvTag.GetNumOfChargedAbove1GeV());
221 SetNumOfChargedAbove3GeV(EvTag.GetNumOfChargedAbove3GeV());
222 SetNumOfChargedAbove10GeV(EvTag.GetNumOfChargedAbove10GeV());
223 SetNumOfMuonsAbove1GeV(EvTag.GetNumOfMuonsAbove1GeV());
224 SetNumOfMuonsAbove3GeV(EvTag.GetNumOfMuonsAbove3GeV());
225 SetNumOfMuonsAbove10GeV(EvTag.GetNumOfMuonsAbove10GeV());
226 SetNumOfElectronsAbove1GeV(EvTag.GetNumOfElectronsAbove1GeV());
227 SetNumOfElectronsAbove3GeV(EvTag.GetNumOfElectronsAbove3GeV());
228 SetNumOfElectronsAbove10GeV(EvTag.GetNumOfElectronsAbove10GeV());
230 SetNumOfElectrons(EvTag.GetNumOfElectrons());
231 SetNumOfMuons(EvTag.GetNumOfMuons());
232 SetNumOfPions(EvTag.GetNumOfPions());
233 SetNumOfKaons(EvTag.GetNumOfKaons());
234 SetNumOfProtons(EvTag.GetNumOfProtons());
235 SetNumOfLambdas(EvTag.GetNumOfLambdas());
238 SetNumOfPhotons(EvTag.GetNumOfPhotons());
239 SetNumOfPi0s(EvTag.GetNumOfPi0s());
240 SetNumOfNeutrons(EvTag.GetNumOfNeutrons());
241 SetNumOfKaon0s(EvTag.GetNumOfKaon0s());
243 SetTotalMomentum(EvTag.GetTotalMomentum());
244 SetMeanPt(EvTag.GetMeanPt());
245 SetMaxPt(EvTag.GetMaxPt());
247 SetNeutralTotalMomentum(EvTag.GetNeutralTotalMomentum());
248 SetNeutralMeanPt(EvTag.GetNeutralMeanPt());
249 SetNeutralMaxPt(EvTag.GetNeutralMaxPt());
251 SetEventPlaneAngle(EvTag.GetEventPlaneAngle());
252 SetHBTRadii(EvTag.GetHBTRadii());
257 //______________________________________________________________________________
258 AliEventTag::~AliEventTag()
260 // AliEventTag destructor