]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliEventTag.cxx
Geometry builder classes moved from base to sim.
[u/mrichter/AliRoot.git] / STEER / AliEventTag.cxx
CommitLineData
f3a97c86 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
16/* $Id$ */
17
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//-----------------------------------------------------------------
23
24#include "AliEventTag.h"
25
26ClassImp(AliEventTag)
27
28//______________________________________________________________________________
cb1645b7 29 AliEventTag::AliEventTag() :
30 TObject(),
31 fAliceEventId(0),
32 fGUID(0),
e16601cf 33 fsize(0),
34 fmd5(0),
35 fturl(0),
cb1645b7 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),
8bd8ac26 43 fTriggerMask(0),
44 fTriggerCluster(0),
32a5cab4 45 fZDCNeutron1Energy(-10.0),
46 fZDCProton1Energy(-10.0),
32a5cab4 47 fZDCNeutron2Energy(-10.0),
48 fZDCProton2Energy(-10.0),
0ee00e25 49 fZDCEMEnergy(-10.0),
cb1645b7 50 fT0VertexZ(-10.0),
51 fNumberOfTracks(-10),
52 fNumberOfPositiveTracks(-10),
53 fNumberOfNegativeTracks(-10),
54 fNumberOfNeutralTracks(-10),
55 fNumberOfV0s(-10),
56 fNumberOfCascades(-10),
57 fNumberOfKinks(-10),
58 fNumberOfPMDTracks(-10),
cb1645b7 59 fNumberOfFMDTracks(-10),
85c60a8e 60 fNumberOfPHOSClusters(-10),
61 fNumberOfEMCALClusters(-10),
cb1645b7 62 fNumberOfJetCandidates(-10),
63 fMaxJetEnergy(-100.0),
64 fNumberOfHardPhotonsCandidates(-10),
65 fMaxNeutralEnergy(-100.0),
66 fNumberOfChargedAbove1GeV(-10),
67 fNumberOfChargedAbove3GeV(-10),
68 fNumberOfChargedAbove10GeV(-10),
69 fNumberOfMuonsAbove1GeV(-10),
70 fNumberOfMuonsAbove3GeV(-10),
71 fNumberOfMuonsAbove10GeV(-10),
72 fNumberOfElectronsAbove1GeV(-10),
73 fNumberOfElectronsAbove3GeV(-10),
74 fNumberOfElectronsAbove10GeV(-10),
75 fNumberOfElectrons(-10),
76 fNumberOfMuons(-10),
77 fNumberOfPions(-10),
78 fNumberOfKaons(-10),
79 fNumberOfProtons(-10),
80 fNumberOfLambdas(-10),
81 fNumberOfPhotons(-10),
82 fNumberOfPi0s(-10),
83 fNumberOfNeutrons(-10),
84 fNumberOfKaon0s(-10),
85 fTotalP(-10.0),
86 fMeanPt(-10.0),
87 fMaxPt(-10.0),
88 fTotalNeutralP(-10.0),
89 fMeanNeutralPt(-10.0),
90 fMaxNeutralPt(-10.0),
91 fEventPlaneAngle(-10.0),
92 fHBTRadii(-10.0)
f3a97c86 93{
cb1645b7 94 // AliEventTag default constructor
f3a97c86 95}
96
97
98//______________________________________________________________________________
cb1645b7 99AliEventTag::AliEventTag(const AliEventTag & EvTag) : TObject(EvTag)
f3a97c86 100{
101 // EventTag copy constructor
cb1645b7 102 SetEventId(EvTag.GetEventId());
103 SetGUID(EvTag.GetGUID());
f3a97c86 104
e16601cf 105 SetMD5(EvTag.GetMD5());
106 SetTURL(EvTag.GetTURL());
107 SetSize(EvTag.GetSize());
108
cb1645b7 109 SetNumOfParticipants(EvTag.GetNumOfParticipants());
110 SetImpactParameter(EvTag.GetImpactParameter());
f3a97c86 111
cb1645b7 112 SetVertexX(EvTag.GetVertexX());
113 SetVertexY(EvTag.GetVertexY());
114 SetVertexZ(EvTag.GetVertexZ());
f3a97c86 115
cb1645b7 116 SetVertexFlag(EvTag.GetVertexFlag());
117 SetVertexZError(EvTag.GetVertexZError());
f3a97c86 118
8bd8ac26 119 SetTriggerMask(EvTag.GetTriggerMask());
120 SetTriggerCluster(EvTag.GetTriggerCluster());
f3a97c86 121
32a5cab4 122 SetZDCNeutron1Energy(EvTag.GetZDCNeutron1Energy());
123 SetZDCProton1Energy(EvTag.GetZDCProton1Energy());
cb1645b7 124 SetZDCEMEnergy(EvTag.GetZDCEMEnergy());
32a5cab4 125 SetZDCNeutron2Energy(EvTag.GetZDCNeutron2Energy());
126 SetZDCProton2Energy(EvTag.GetZDCProton2Energy());
f3a97c86 127
cb1645b7 128 SetT0VertexZ(EvTag.GetT0VertexZ());
f3a97c86 129
cb1645b7 130 SetNumOfTracks(EvTag.GetNumOfTracks());
131 SetNumOfPosTracks(EvTag.GetNumOfPosTracks());
132 SetNumOfNegTracks(EvTag.GetNumOfNegTracks());
133 SetNumOfNeutrTracks(EvTag.GetNumOfNeutrTracks());
f3a97c86 134
cb1645b7 135 SetNumOfV0s(EvTag.GetNumOfV0s());
136 SetNumOfCascades(EvTag.GetNumOfCascades());
137 SetNumOfKinks(EvTag.GetNumOfKinks());
f3a97c86 138
cb1645b7 139 SetNumOfPMDTracks(EvTag.GetNumOfPMDTracks());
cb1645b7 140 SetNumOfFMDTracks(EvTag.GetNumOfFMDTracks());
85c60a8e 141 SetNumOfPHOSClusters(EvTag.GetNumOfPHOSClusters());
142 SetNumOfEMCALClusters(EvTag.GetNumOfEMCALClusters());
143
cb1645b7 144 SetNumOfJetCandidates(EvTag.GetNumOfJetCandidates());
145 SetNumOfHardPhotonsCandidates(EvTag.GetNumOfHardPhotonsCandidates());
f3a97c86 146
cb1645b7 147 SetMaxJetEnergy(EvTag.GetMaxJetEnergy());
148 SetMaxNeutralEnergy(EvTag.GetMaxNeutralEnergy());
f3a97c86 149
cb1645b7 150 SetNumOfChargedAbove1GeV(EvTag.GetNumOfChargedAbove1GeV());
151 SetNumOfChargedAbove3GeV(EvTag.GetNumOfChargedAbove3GeV());
152 SetNumOfChargedAbove10GeV(EvTag.GetNumOfChargedAbove10GeV());
153 SetNumOfMuonsAbove1GeV(EvTag.GetNumOfMuonsAbove1GeV());
154 SetNumOfMuonsAbove3GeV(EvTag.GetNumOfMuonsAbove3GeV());
155 SetNumOfMuonsAbove10GeV(EvTag.GetNumOfMuonsAbove10GeV());
156 SetNumOfElectronsAbove1GeV(EvTag.GetNumOfElectronsAbove1GeV());
157 SetNumOfElectronsAbove3GeV(EvTag.GetNumOfElectronsAbove3GeV());
158 SetNumOfElectronsAbove10GeV(EvTag.GetNumOfElectronsAbove10GeV());
159
160 SetNumOfElectrons(EvTag.GetNumOfElectrons());
161 SetNumOfMuons(EvTag.GetNumOfMuons());
162 SetNumOfPions(EvTag.GetNumOfPions());
163 SetNumOfKaons(EvTag.GetNumOfKaons());
164 SetNumOfProtons(EvTag.GetNumOfProtons());
165 SetNumOfLambdas(EvTag.GetNumOfLambdas());
f3a97c86 166
167
cb1645b7 168 SetNumOfPhotons(EvTag.GetNumOfPhotons());
169 SetNumOfPi0s(EvTag.GetNumOfPi0s());
170 SetNumOfNeutrons(EvTag.GetNumOfNeutrons());
171 SetNumOfKaon0s(EvTag.GetNumOfKaon0s());
f3a97c86 172
cb1645b7 173 SetTotalMomentum(EvTag.GetTotalMomentum());
174 SetMeanPt(EvTag.GetMeanPt());
175 SetMaxPt(EvTag.GetMaxPt());
f3a97c86 176
cb1645b7 177 SetNeutralTotalMomentum(EvTag.GetNeutralTotalMomentum());
178 SetNeutralMeanPt(EvTag.GetNeutralMeanPt());
179 SetNeutralMaxPt(EvTag.GetNeutralMaxPt());
f3a97c86 180
cb1645b7 181 SetEventPlaneAngle(EvTag.GetEventPlaneAngle());
182 SetHBTRadii(EvTag.GetHBTRadii());
183}
184
185//______________________________________________________________________________
186AliEventTag & AliEventTag::operator=(const AliEventTag &EvTag)
187{
188 // EventTag assignment operator
189 if (this != &EvTag) {
190 TObject::operator=(EvTag);
191
192 SetEventId(EvTag.GetEventId());
193 SetGUID(EvTag.GetGUID());
194
e16601cf 195 SetMD5(EvTag.GetMD5());
196 SetTURL(EvTag.GetTURL());
197 SetSize(EvTag.GetSize());
198
cb1645b7 199 SetNumOfParticipants(EvTag.GetNumOfParticipants());
200 SetImpactParameter(EvTag.GetImpactParameter());
201
202 SetVertexX(EvTag.GetVertexX());
203 SetVertexY(EvTag.GetVertexY());
204 SetVertexZ(EvTag.GetVertexZ());
205
206 SetVertexFlag(EvTag.GetVertexFlag());
207 SetVertexZError(EvTag.GetVertexZError());
208
8bd8ac26 209 SetTriggerMask(EvTag.GetTriggerMask());
210 SetTriggerCluster(EvTag.GetTriggerCluster());
cb1645b7 211
32a5cab4 212 SetZDCNeutron1Energy(EvTag.GetZDCNeutron1Energy());
213 SetZDCProton1Energy(EvTag.GetZDCProton1Energy());
214 SetZDCNeutron2Energy(EvTag.GetZDCNeutron2Energy());
215 SetZDCProton2Energy(EvTag.GetZDCProton2Energy());
cb1645b7 216 SetZDCEMEnergy(EvTag.GetZDCEMEnergy());
217
218 SetT0VertexZ(EvTag.GetT0VertexZ());
219
220 SetNumOfTracks(EvTag.GetNumOfTracks());
221 SetNumOfPosTracks(EvTag.GetNumOfPosTracks());
222 SetNumOfNegTracks(EvTag.GetNumOfNegTracks());
223 SetNumOfNeutrTracks(EvTag.GetNumOfNeutrTracks());
224
225 SetNumOfV0s(EvTag.GetNumOfV0s());
226 SetNumOfCascades(EvTag.GetNumOfCascades());
227 SetNumOfKinks(EvTag.GetNumOfKinks());
228
229 SetNumOfPMDTracks(EvTag.GetNumOfPMDTracks());
cb1645b7 230 SetNumOfFMDTracks(EvTag.GetNumOfFMDTracks());
85c60a8e 231 SetNumOfPHOSClusters(EvTag.GetNumOfPHOSClusters());
232 SetNumOfEMCALClusters(EvTag.GetNumOfEMCALClusters());
cb1645b7 233
234 SetNumOfJetCandidates(EvTag.GetNumOfJetCandidates());
235 SetNumOfHardPhotonsCandidates(EvTag.GetNumOfHardPhotonsCandidates());
236
237 SetMaxJetEnergy(EvTag.GetMaxJetEnergy());
238 SetMaxNeutralEnergy(EvTag.GetMaxNeutralEnergy());
239
240 SetNumOfChargedAbove1GeV(EvTag.GetNumOfChargedAbove1GeV());
241 SetNumOfChargedAbove3GeV(EvTag.GetNumOfChargedAbove3GeV());
242 SetNumOfChargedAbove10GeV(EvTag.GetNumOfChargedAbove10GeV());
243 SetNumOfMuonsAbove1GeV(EvTag.GetNumOfMuonsAbove1GeV());
244 SetNumOfMuonsAbove3GeV(EvTag.GetNumOfMuonsAbove3GeV());
245 SetNumOfMuonsAbove10GeV(EvTag.GetNumOfMuonsAbove10GeV());
246 SetNumOfElectronsAbove1GeV(EvTag.GetNumOfElectronsAbove1GeV());
247 SetNumOfElectronsAbove3GeV(EvTag.GetNumOfElectronsAbove3GeV());
248 SetNumOfElectronsAbove10GeV(EvTag.GetNumOfElectronsAbove10GeV());
249
250 SetNumOfElectrons(EvTag.GetNumOfElectrons());
251 SetNumOfMuons(EvTag.GetNumOfMuons());
252 SetNumOfPions(EvTag.GetNumOfPions());
253 SetNumOfKaons(EvTag.GetNumOfKaons());
254 SetNumOfProtons(EvTag.GetNumOfProtons());
255 SetNumOfLambdas(EvTag.GetNumOfLambdas());
256
257
258 SetNumOfPhotons(EvTag.GetNumOfPhotons());
259 SetNumOfPi0s(EvTag.GetNumOfPi0s());
260 SetNumOfNeutrons(EvTag.GetNumOfNeutrons());
261 SetNumOfKaon0s(EvTag.GetNumOfKaon0s());
262
263 SetTotalMomentum(EvTag.GetTotalMomentum());
264 SetMeanPt(EvTag.GetMeanPt());
265 SetMaxPt(EvTag.GetMaxPt());
266
267 SetNeutralTotalMomentum(EvTag.GetNeutralTotalMomentum());
268 SetNeutralMeanPt(EvTag.GetNeutralMeanPt());
269 SetNeutralMaxPt(EvTag.GetNeutralMaxPt());
270
271 SetEventPlaneAngle(EvTag.GetEventPlaneAngle());
272 SetHBTRadii(EvTag.GetHBTRadii());
273 }
274 return *this;
f3a97c86 275}
cb1645b7 276
f3a97c86 277//______________________________________________________________________________
278AliEventTag::~AliEventTag()
279{
cb1645b7 280 // AliEventTag destructor
f3a97c86 281}