]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliEventTag.cxx
Fix effc++ warnings and most blatant coding-convention violations.
[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),
bec9a2e7 33 fPath(0),
e16601cf 34 fsize(0),
35 fmd5(0),
36 fturl(0),
cb1645b7 37 fNumberOfParticipants(-10),
38 fImpactParameter(-10.0),
39 fPrimaryVertexFlag(-1),
40 fPrimaryVertexX(-100.0),
41 fPrimaryVertexY(-100.0),
42 fPrimaryVertexZ(-100.0),
43 fPrimaryVertexZError(-100.0),
8bd8ac26 44 fTriggerMask(0),
45 fTriggerCluster(0),
32a5cab4 46 fZDCNeutron1Energy(-10.0),
47 fZDCProton1Energy(-10.0),
32a5cab4 48 fZDCNeutron2Energy(-10.0),
49 fZDCProton2Energy(-10.0),
0ee00e25 50 fZDCEMEnergy(-10.0),
cb1645b7 51 fT0VertexZ(-10.0),
52 fNumberOfTracks(-10),
53 fNumberOfPositiveTracks(-10),
54 fNumberOfNegativeTracks(-10),
55 fNumberOfNeutralTracks(-10),
56 fNumberOfV0s(-10),
57 fNumberOfCascades(-10),
58 fNumberOfKinks(-10),
59 fNumberOfPMDTracks(-10),
cb1645b7 60 fNumberOfFMDTracks(-10),
85c60a8e 61 fNumberOfPHOSClusters(-10),
62 fNumberOfEMCALClusters(-10),
cb1645b7 63 fNumberOfJetCandidates(-10),
64 fMaxJetEnergy(-100.0),
65 fNumberOfHardPhotonsCandidates(-10),
66 fMaxNeutralEnergy(-100.0),
67 fNumberOfChargedAbove1GeV(-10),
68 fNumberOfChargedAbove3GeV(-10),
69 fNumberOfChargedAbove10GeV(-10),
70 fNumberOfMuonsAbove1GeV(-10),
71 fNumberOfMuonsAbove3GeV(-10),
72 fNumberOfMuonsAbove10GeV(-10),
73 fNumberOfElectronsAbove1GeV(-10),
74 fNumberOfElectronsAbove3GeV(-10),
75 fNumberOfElectronsAbove10GeV(-10),
76 fNumberOfElectrons(-10),
77 fNumberOfMuons(-10),
78 fNumberOfPions(-10),
79 fNumberOfKaons(-10),
80 fNumberOfProtons(-10),
81 fNumberOfLambdas(-10),
82 fNumberOfPhotons(-10),
83 fNumberOfPi0s(-10),
84 fNumberOfNeutrons(-10),
85 fNumberOfKaon0s(-10),
86 fTotalP(-10.0),
87 fMeanPt(-10.0),
88 fMaxPt(-10.0),
89 fTotalNeutralP(-10.0),
90 fMeanNeutralPt(-10.0),
91 fMaxNeutralPt(-10.0),
92 fEventPlaneAngle(-10.0),
93 fHBTRadii(-10.0)
f3a97c86 94{
cb1645b7 95 // AliEventTag default constructor
f3a97c86 96}
97
98
bec9a2e7 99//___________________________________________________________________________
100AliEventTag::AliEventTag(const AliEventTag & EvTag) : TObject(EvTag) {
f3a97c86 101 // EventTag copy constructor
cb1645b7 102 SetEventId(EvTag.GetEventId());
103 SetGUID(EvTag.GetGUID());
bec9a2e7 104 SetPath(EvTag.GetPath());
e16601cf 105 SetMD5(EvTag.GetMD5());
106 SetTURL(EvTag.GetTURL());
107 SetSize(EvTag.GetSize());
cb1645b7 108 SetNumOfParticipants(EvTag.GetNumOfParticipants());
109 SetImpactParameter(EvTag.GetImpactParameter());
cb1645b7 110 SetVertexX(EvTag.GetVertexX());
111 SetVertexY(EvTag.GetVertexY());
112 SetVertexZ(EvTag.GetVertexZ());
cb1645b7 113 SetVertexFlag(EvTag.GetVertexFlag());
114 SetVertexZError(EvTag.GetVertexZError());
8bd8ac26 115 SetTriggerMask(EvTag.GetTriggerMask());
116 SetTriggerCluster(EvTag.GetTriggerCluster());
32a5cab4 117 SetZDCNeutron1Energy(EvTag.GetZDCNeutron1Energy());
118 SetZDCProton1Energy(EvTag.GetZDCProton1Energy());
cb1645b7 119 SetZDCEMEnergy(EvTag.GetZDCEMEnergy());
32a5cab4 120 SetZDCNeutron2Energy(EvTag.GetZDCNeutron2Energy());
121 SetZDCProton2Energy(EvTag.GetZDCProton2Energy());
cb1645b7 122 SetT0VertexZ(EvTag.GetT0VertexZ());
cb1645b7 123 SetNumOfTracks(EvTag.GetNumOfTracks());
124 SetNumOfPosTracks(EvTag.GetNumOfPosTracks());
125 SetNumOfNegTracks(EvTag.GetNumOfNegTracks());
126 SetNumOfNeutrTracks(EvTag.GetNumOfNeutrTracks());
cb1645b7 127 SetNumOfV0s(EvTag.GetNumOfV0s());
128 SetNumOfCascades(EvTag.GetNumOfCascades());
129 SetNumOfKinks(EvTag.GetNumOfKinks());
cb1645b7 130 SetNumOfPMDTracks(EvTag.GetNumOfPMDTracks());
cb1645b7 131 SetNumOfFMDTracks(EvTag.GetNumOfFMDTracks());
85c60a8e 132 SetNumOfPHOSClusters(EvTag.GetNumOfPHOSClusters());
133 SetNumOfEMCALClusters(EvTag.GetNumOfEMCALClusters());
cb1645b7 134 SetNumOfJetCandidates(EvTag.GetNumOfJetCandidates());
135 SetNumOfHardPhotonsCandidates(EvTag.GetNumOfHardPhotonsCandidates());
cb1645b7 136 SetMaxJetEnergy(EvTag.GetMaxJetEnergy());
137 SetMaxNeutralEnergy(EvTag.GetMaxNeutralEnergy());
cb1645b7 138 SetNumOfChargedAbove1GeV(EvTag.GetNumOfChargedAbove1GeV());
139 SetNumOfChargedAbove3GeV(EvTag.GetNumOfChargedAbove3GeV());
140 SetNumOfChargedAbove10GeV(EvTag.GetNumOfChargedAbove10GeV());
141 SetNumOfMuonsAbove1GeV(EvTag.GetNumOfMuonsAbove1GeV());
142 SetNumOfMuonsAbove3GeV(EvTag.GetNumOfMuonsAbove3GeV());
143 SetNumOfMuonsAbove10GeV(EvTag.GetNumOfMuonsAbove10GeV());
144 SetNumOfElectronsAbove1GeV(EvTag.GetNumOfElectronsAbove1GeV());
145 SetNumOfElectronsAbove3GeV(EvTag.GetNumOfElectronsAbove3GeV());
146 SetNumOfElectronsAbove10GeV(EvTag.GetNumOfElectronsAbove10GeV());
cb1645b7 147 SetNumOfElectrons(EvTag.GetNumOfElectrons());
148 SetNumOfMuons(EvTag.GetNumOfMuons());
149 SetNumOfPions(EvTag.GetNumOfPions());
150 SetNumOfKaons(EvTag.GetNumOfKaons());
151 SetNumOfProtons(EvTag.GetNumOfProtons());
152 SetNumOfLambdas(EvTag.GetNumOfLambdas());
cb1645b7 153 SetNumOfPhotons(EvTag.GetNumOfPhotons());
154 SetNumOfPi0s(EvTag.GetNumOfPi0s());
155 SetNumOfNeutrons(EvTag.GetNumOfNeutrons());
156 SetNumOfKaon0s(EvTag.GetNumOfKaon0s());
cb1645b7 157 SetTotalMomentum(EvTag.GetTotalMomentum());
158 SetMeanPt(EvTag.GetMeanPt());
159 SetMaxPt(EvTag.GetMaxPt());
cb1645b7 160 SetNeutralTotalMomentum(EvTag.GetNeutralTotalMomentum());
161 SetNeutralMeanPt(EvTag.GetNeutralMeanPt());
162 SetNeutralMaxPt(EvTag.GetNeutralMaxPt());
cb1645b7 163 SetEventPlaneAngle(EvTag.GetEventPlaneAngle());
164 SetHBTRadii(EvTag.GetHBTRadii());
165}
166
bec9a2e7 167//___________________________________________________________________________
168AliEventTag & AliEventTag::operator=(const AliEventTag &EvTag) {
cb1645b7 169 // EventTag assignment operator
170 if (this != &EvTag) {
171 TObject::operator=(EvTag);
bec9a2e7 172
cb1645b7 173 SetEventId(EvTag.GetEventId());
174 SetGUID(EvTag.GetGUID());
bec9a2e7 175 SetPath(EvTag.GetPath());
e16601cf 176 SetMD5(EvTag.GetMD5());
177 SetTURL(EvTag.GetTURL());
178 SetSize(EvTag.GetSize());
cb1645b7 179 SetNumOfParticipants(EvTag.GetNumOfParticipants());
180 SetImpactParameter(EvTag.GetImpactParameter());
cb1645b7 181 SetVertexX(EvTag.GetVertexX());
182 SetVertexY(EvTag.GetVertexY());
183 SetVertexZ(EvTag.GetVertexZ());
cb1645b7 184 SetVertexFlag(EvTag.GetVertexFlag());
185 SetVertexZError(EvTag.GetVertexZError());
8bd8ac26 186 SetTriggerMask(EvTag.GetTriggerMask());
187 SetTriggerCluster(EvTag.GetTriggerCluster());
32a5cab4 188 SetZDCNeutron1Energy(EvTag.GetZDCNeutron1Energy());
189 SetZDCProton1Energy(EvTag.GetZDCProton1Energy());
190 SetZDCNeutron2Energy(EvTag.GetZDCNeutron2Energy());
191 SetZDCProton2Energy(EvTag.GetZDCProton2Energy());
cb1645b7 192 SetZDCEMEnergy(EvTag.GetZDCEMEnergy());
cb1645b7 193 SetT0VertexZ(EvTag.GetT0VertexZ());
cb1645b7 194 SetNumOfTracks(EvTag.GetNumOfTracks());
195 SetNumOfPosTracks(EvTag.GetNumOfPosTracks());
196 SetNumOfNegTracks(EvTag.GetNumOfNegTracks());
197 SetNumOfNeutrTracks(EvTag.GetNumOfNeutrTracks());
cb1645b7 198 SetNumOfV0s(EvTag.GetNumOfV0s());
199 SetNumOfCascades(EvTag.GetNumOfCascades());
200 SetNumOfKinks(EvTag.GetNumOfKinks());
cb1645b7 201 SetNumOfPMDTracks(EvTag.GetNumOfPMDTracks());
cb1645b7 202 SetNumOfFMDTracks(EvTag.GetNumOfFMDTracks());
85c60a8e 203 SetNumOfPHOSClusters(EvTag.GetNumOfPHOSClusters());
204 SetNumOfEMCALClusters(EvTag.GetNumOfEMCALClusters());
cb1645b7 205 SetNumOfJetCandidates(EvTag.GetNumOfJetCandidates());
206 SetNumOfHardPhotonsCandidates(EvTag.GetNumOfHardPhotonsCandidates());
cb1645b7 207 SetMaxJetEnergy(EvTag.GetMaxJetEnergy());
208 SetMaxNeutralEnergy(EvTag.GetMaxNeutralEnergy());
cb1645b7 209 SetNumOfChargedAbove1GeV(EvTag.GetNumOfChargedAbove1GeV());
210 SetNumOfChargedAbove3GeV(EvTag.GetNumOfChargedAbove3GeV());
211 SetNumOfChargedAbove10GeV(EvTag.GetNumOfChargedAbove10GeV());
212 SetNumOfMuonsAbove1GeV(EvTag.GetNumOfMuonsAbove1GeV());
213 SetNumOfMuonsAbove3GeV(EvTag.GetNumOfMuonsAbove3GeV());
214 SetNumOfMuonsAbove10GeV(EvTag.GetNumOfMuonsAbove10GeV());
215 SetNumOfElectronsAbove1GeV(EvTag.GetNumOfElectronsAbove1GeV());
216 SetNumOfElectronsAbove3GeV(EvTag.GetNumOfElectronsAbove3GeV());
217 SetNumOfElectronsAbove10GeV(EvTag.GetNumOfElectronsAbove10GeV());
cb1645b7 218 SetNumOfElectrons(EvTag.GetNumOfElectrons());
219 SetNumOfMuons(EvTag.GetNumOfMuons());
220 SetNumOfPions(EvTag.GetNumOfPions());
221 SetNumOfKaons(EvTag.GetNumOfKaons());
222 SetNumOfProtons(EvTag.GetNumOfProtons());
223 SetNumOfLambdas(EvTag.GetNumOfLambdas());
cb1645b7 224 SetNumOfPhotons(EvTag.GetNumOfPhotons());
225 SetNumOfPi0s(EvTag.GetNumOfPi0s());
226 SetNumOfNeutrons(EvTag.GetNumOfNeutrons());
227 SetNumOfKaon0s(EvTag.GetNumOfKaon0s());
cb1645b7 228 SetTotalMomentum(EvTag.GetTotalMomentum());
229 SetMeanPt(EvTag.GetMeanPt());
230 SetMaxPt(EvTag.GetMaxPt());
cb1645b7 231 SetNeutralTotalMomentum(EvTag.GetNeutralTotalMomentum());
232 SetNeutralMeanPt(EvTag.GetNeutralMeanPt());
233 SetNeutralMaxPt(EvTag.GetNeutralMaxPt());
cb1645b7 234 SetEventPlaneAngle(EvTag.GetEventPlaneAngle());
235 SetHBTRadii(EvTag.GetHBTRadii());
236 }
237 return *this;
f3a97c86 238}
cb1645b7 239
bec9a2e7 240//___________________________________________________________________________
241AliEventTag::~AliEventTag() {
cb1645b7 242 // AliEventTag destructor
f3a97c86 243}