Coding conventions
[u/mrichter/AliRoot.git] / STEER / AliEventTag.cxx
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
26 ClassImp(AliEventTag)
27
28 //______________________________________________________________________________
29   AliEventTag::AliEventTag() : 
30     TObject(),
31     fAliceEventId(0),
32     fGUID(0),
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),
40     fTriggerInfo(-10),
41     fZDCNeutronEnergy(-10.0),
42     fZDCProtonEnergy(-10.0),
43     fZDCEMEnergy(-10.0),
44     fT0VertexZ(-10.0),
45     fNumberOfTracks(-10),
46     fNumberOfPositiveTracks(-10),
47     fNumberOfNegativeTracks(-10),
48     fNumberOfNeutralTracks(-10),  
49     fNumberOfV0s(-10),
50     fNumberOfCascades(-10),
51     fNumberOfKinks(-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),
70     fNumberOfMuons(-10),
71     fNumberOfPions(-10),
72     fNumberOfKaons(-10),
73     fNumberOfProtons(-10),
74     fNumberOfLambdas(-10),
75     fNumberOfPhotons(-10),
76     fNumberOfPi0s(-10),
77     fNumberOfNeutrons(-10),
78     fNumberOfKaon0s(-10),
79     fTotalP(-10.0),
80     fMeanPt(-10.0),
81     fMaxPt(-10.0),
82     fTotalNeutralP(-10.0),
83     fMeanNeutralPt(-10.0),
84     fMaxNeutralPt(-10.0),
85     fEventPlaneAngle(-10.0),
86     fHBTRadii(-10.0)
87 {
88   // AliEventTag default constructor
89 }
90
91
92 //______________________________________________________________________________
93 AliEventTag::AliEventTag(const AliEventTag & EvTag) : TObject(EvTag)
94 {
95   // EventTag copy constructor
96   SetEventId(EvTag.GetEventId());
97   SetGUID(EvTag.GetGUID());
98   
99   SetNumOfParticipants(EvTag.GetNumOfParticipants());
100   SetImpactParameter(EvTag.GetImpactParameter());
101   
102   SetVertexX(EvTag.GetVertexX());
103   SetVertexY(EvTag.GetVertexY());
104   SetVertexZ(EvTag.GetVertexZ());
105
106   SetVertexFlag(EvTag.GetVertexFlag());
107   SetVertexZError(EvTag.GetVertexZError());
108
109   SetTrigger(EvTag.GetTrigger());
110   
111   SetZDCNeutronEnergy(EvTag.GetZDCNeutronEnergy());
112   SetZDCProtonEnergy(EvTag.GetZDCProtonEnergy());
113   SetZDCEMEnergy(EvTag.GetZDCEMEnergy());
114   
115   SetT0VertexZ(EvTag.GetT0VertexZ());
116   
117   SetNumOfTracks(EvTag.GetNumOfTracks());
118   SetNumOfPosTracks(EvTag.GetNumOfPosTracks());
119   SetNumOfNegTracks(EvTag.GetNumOfNegTracks());
120   SetNumOfNeutrTracks(EvTag.GetNumOfNeutrTracks());
121   
122   SetNumOfV0s(EvTag.GetNumOfV0s());
123   SetNumOfCascades(EvTag.GetNumOfCascades());
124   SetNumOfKinks(EvTag.GetNumOfKinks());
125   
126   SetNumOfPMDTracks(EvTag.GetNumOfPMDTracks());
127   SetNumOfPHOSTracks(EvTag.GetNumOfPHOSTracks());
128   SetNumOfEMCALTracks(EvTag.GetNumOfEMCALTracks());
129   SetNumOfFMDTracks(EvTag.GetNumOfFMDTracks());
130   
131   SetNumOfJetCandidates(EvTag.GetNumOfJetCandidates());
132   SetNumOfHardPhotonsCandidates(EvTag.GetNumOfHardPhotonsCandidates());
133
134   SetMaxJetEnergy(EvTag.GetMaxJetEnergy());
135   SetMaxNeutralEnergy(EvTag.GetMaxNeutralEnergy());
136   
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());
146
147   SetNumOfElectrons(EvTag.GetNumOfElectrons());
148   SetNumOfMuons(EvTag.GetNumOfMuons());
149   SetNumOfPions(EvTag.GetNumOfPions());
150   SetNumOfKaons(EvTag.GetNumOfKaons());
151   SetNumOfProtons(EvTag.GetNumOfProtons());
152   SetNumOfLambdas(EvTag.GetNumOfLambdas());
153  
154
155   SetNumOfPhotons(EvTag.GetNumOfPhotons());
156   SetNumOfPi0s(EvTag.GetNumOfPi0s());
157   SetNumOfNeutrons(EvTag.GetNumOfNeutrons());
158   SetNumOfKaon0s(EvTag.GetNumOfKaon0s());
159   
160   SetTotalMomentum(EvTag.GetTotalMomentum());
161   SetMeanPt(EvTag.GetMeanPt());
162   SetMaxPt(EvTag.GetMaxPt());
163
164   SetNeutralTotalMomentum(EvTag.GetNeutralTotalMomentum());
165   SetNeutralMeanPt(EvTag.GetNeutralMeanPt());
166   SetNeutralMaxPt(EvTag.GetNeutralMaxPt());
167   
168   SetEventPlaneAngle(EvTag.GetEventPlaneAngle());
169   SetHBTRadii(EvTag.GetHBTRadii());
170 }
171
172 //______________________________________________________________________________
173 AliEventTag & AliEventTag::operator=(const AliEventTag &EvTag)
174 {
175   // EventTag assignment operator
176   if (this != &EvTag) {
177     TObject::operator=(EvTag);
178
179     SetEventId(EvTag.GetEventId());
180     SetGUID(EvTag.GetGUID());
181     
182     SetNumOfParticipants(EvTag.GetNumOfParticipants());
183     SetImpactParameter(EvTag.GetImpactParameter());
184     
185     SetVertexX(EvTag.GetVertexX());
186     SetVertexY(EvTag.GetVertexY());
187     SetVertexZ(EvTag.GetVertexZ());
188     
189     SetVertexFlag(EvTag.GetVertexFlag());
190     SetVertexZError(EvTag.GetVertexZError());
191     
192     SetTrigger(EvTag.GetTrigger());
193     
194     SetZDCNeutronEnergy(EvTag.GetZDCNeutronEnergy());
195     SetZDCProtonEnergy(EvTag.GetZDCProtonEnergy());
196     SetZDCEMEnergy(EvTag.GetZDCEMEnergy());
197     
198     SetT0VertexZ(EvTag.GetT0VertexZ());
199     
200     SetNumOfTracks(EvTag.GetNumOfTracks());
201     SetNumOfPosTracks(EvTag.GetNumOfPosTracks());
202     SetNumOfNegTracks(EvTag.GetNumOfNegTracks());
203     SetNumOfNeutrTracks(EvTag.GetNumOfNeutrTracks());
204     
205     SetNumOfV0s(EvTag.GetNumOfV0s());
206     SetNumOfCascades(EvTag.GetNumOfCascades());
207     SetNumOfKinks(EvTag.GetNumOfKinks());
208     
209     SetNumOfPMDTracks(EvTag.GetNumOfPMDTracks());
210     SetNumOfPHOSTracks(EvTag.GetNumOfPHOSTracks());
211     SetNumOfEMCALTracks(EvTag.GetNumOfEMCALTracks());
212     SetNumOfFMDTracks(EvTag.GetNumOfFMDTracks());
213     
214     SetNumOfJetCandidates(EvTag.GetNumOfJetCandidates());
215     SetNumOfHardPhotonsCandidates(EvTag.GetNumOfHardPhotonsCandidates());
216     
217     SetMaxJetEnergy(EvTag.GetMaxJetEnergy());
218     SetMaxNeutralEnergy(EvTag.GetMaxNeutralEnergy());
219     
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());
229     
230     SetNumOfElectrons(EvTag.GetNumOfElectrons());
231     SetNumOfMuons(EvTag.GetNumOfMuons());
232     SetNumOfPions(EvTag.GetNumOfPions());
233     SetNumOfKaons(EvTag.GetNumOfKaons());
234     SetNumOfProtons(EvTag.GetNumOfProtons());
235     SetNumOfLambdas(EvTag.GetNumOfLambdas());
236     
237     
238     SetNumOfPhotons(EvTag.GetNumOfPhotons());
239     SetNumOfPi0s(EvTag.GetNumOfPi0s());
240     SetNumOfNeutrons(EvTag.GetNumOfNeutrons());
241     SetNumOfKaon0s(EvTag.GetNumOfKaon0s());
242     
243     SetTotalMomentum(EvTag.GetTotalMomentum());
244     SetMeanPt(EvTag.GetMeanPt());
245     SetMaxPt(EvTag.GetMaxPt());
246     
247     SetNeutralTotalMomentum(EvTag.GetNeutralTotalMomentum());
248     SetNeutralMeanPt(EvTag.GetNeutralMeanPt());
249     SetNeutralMaxPt(EvTag.GetNeutralMaxPt());
250     
251     SetEventPlaneAngle(EvTag.GetEventPlaneAngle());
252     SetHBTRadii(EvTag.GetHBTRadii());
253   }
254   return *this;
255 }
256
257 //______________________________________________________________________________
258 AliEventTag::~AliEventTag()
259 {
260   // AliEventTag destructor
261 }