]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliEventTag.cxx
START AlignObj added
[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     fsize(0),
34     fmd5(0),
35     fturl(0),
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),
43     fTriggerInfo(-10),
44     fZDCNeutronEnergy(-10.0),
45     fZDCProtonEnergy(-10.0),
46     fZDCEMEnergy(-10.0),
47     fT0VertexZ(-10.0),
48     fNumberOfTracks(-10),
49     fNumberOfPositiveTracks(-10),
50     fNumberOfNegativeTracks(-10),
51     fNumberOfNeutralTracks(-10),  
52     fNumberOfV0s(-10),
53     fNumberOfCascades(-10),
54     fNumberOfKinks(-10),
55     fNumberOfPMDTracks(-10),
56     fNumberOfFMDTracks(-10),
57     fNumberOfPHOSClusters(-10),
58     fNumberOfEMCALClusters(-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),
73     fNumberOfMuons(-10),
74     fNumberOfPions(-10),
75     fNumberOfKaons(-10),
76     fNumberOfProtons(-10),
77     fNumberOfLambdas(-10),
78     fNumberOfPhotons(-10),
79     fNumberOfPi0s(-10),
80     fNumberOfNeutrons(-10),
81     fNumberOfKaon0s(-10),
82     fTotalP(-10.0),
83     fMeanPt(-10.0),
84     fMaxPt(-10.0),
85     fTotalNeutralP(-10.0),
86     fMeanNeutralPt(-10.0),
87     fMaxNeutralPt(-10.0),
88     fEventPlaneAngle(-10.0),
89     fHBTRadii(-10.0)
90 {
91   // AliEventTag default constructor
92 }
93
94
95 //______________________________________________________________________________
96 AliEventTag::AliEventTag(const AliEventTag & EvTag) : TObject(EvTag)
97 {
98   // EventTag copy constructor
99   SetEventId(EvTag.GetEventId());
100   SetGUID(EvTag.GetGUID());
101   
102   SetMD5(EvTag.GetMD5());
103   SetTURL(EvTag.GetTURL());
104   SetSize(EvTag.GetSize());
105  
106   SetNumOfParticipants(EvTag.GetNumOfParticipants());
107   SetImpactParameter(EvTag.GetImpactParameter());
108   
109   SetVertexX(EvTag.GetVertexX());
110   SetVertexY(EvTag.GetVertexY());
111   SetVertexZ(EvTag.GetVertexZ());
112
113   SetVertexFlag(EvTag.GetVertexFlag());
114   SetVertexZError(EvTag.GetVertexZError());
115
116   SetTrigger(EvTag.GetTrigger());
117   
118   SetZDCNeutronEnergy(EvTag.GetZDCNeutronEnergy());
119   SetZDCProtonEnergy(EvTag.GetZDCProtonEnergy());
120   SetZDCEMEnergy(EvTag.GetZDCEMEnergy());
121   
122   SetT0VertexZ(EvTag.GetT0VertexZ());
123   
124   SetNumOfTracks(EvTag.GetNumOfTracks());
125   SetNumOfPosTracks(EvTag.GetNumOfPosTracks());
126   SetNumOfNegTracks(EvTag.GetNumOfNegTracks());
127   SetNumOfNeutrTracks(EvTag.GetNumOfNeutrTracks());
128   
129   SetNumOfV0s(EvTag.GetNumOfV0s());
130   SetNumOfCascades(EvTag.GetNumOfCascades());
131   SetNumOfKinks(EvTag.GetNumOfKinks());
132   
133   SetNumOfPMDTracks(EvTag.GetNumOfPMDTracks());
134   SetNumOfFMDTracks(EvTag.GetNumOfFMDTracks());
135   SetNumOfPHOSClusters(EvTag.GetNumOfPHOSClusters());
136   SetNumOfEMCALClusters(EvTag.GetNumOfEMCALClusters());
137
138   SetNumOfJetCandidates(EvTag.GetNumOfJetCandidates());
139   SetNumOfHardPhotonsCandidates(EvTag.GetNumOfHardPhotonsCandidates());
140
141   SetMaxJetEnergy(EvTag.GetMaxJetEnergy());
142   SetMaxNeutralEnergy(EvTag.GetMaxNeutralEnergy());
143   
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());
153
154   SetNumOfElectrons(EvTag.GetNumOfElectrons());
155   SetNumOfMuons(EvTag.GetNumOfMuons());
156   SetNumOfPions(EvTag.GetNumOfPions());
157   SetNumOfKaons(EvTag.GetNumOfKaons());
158   SetNumOfProtons(EvTag.GetNumOfProtons());
159   SetNumOfLambdas(EvTag.GetNumOfLambdas());
160  
161
162   SetNumOfPhotons(EvTag.GetNumOfPhotons());
163   SetNumOfPi0s(EvTag.GetNumOfPi0s());
164   SetNumOfNeutrons(EvTag.GetNumOfNeutrons());
165   SetNumOfKaon0s(EvTag.GetNumOfKaon0s());
166   
167   SetTotalMomentum(EvTag.GetTotalMomentum());
168   SetMeanPt(EvTag.GetMeanPt());
169   SetMaxPt(EvTag.GetMaxPt());
170
171   SetNeutralTotalMomentum(EvTag.GetNeutralTotalMomentum());
172   SetNeutralMeanPt(EvTag.GetNeutralMeanPt());
173   SetNeutralMaxPt(EvTag.GetNeutralMaxPt());
174   
175   SetEventPlaneAngle(EvTag.GetEventPlaneAngle());
176   SetHBTRadii(EvTag.GetHBTRadii());
177 }
178
179 //______________________________________________________________________________
180 AliEventTag & AliEventTag::operator=(const AliEventTag &EvTag)
181 {
182   // EventTag assignment operator
183   if (this != &EvTag) {
184     TObject::operator=(EvTag);
185
186     SetEventId(EvTag.GetEventId());
187     SetGUID(EvTag.GetGUID());
188     
189     SetMD5(EvTag.GetMD5());
190     SetTURL(EvTag.GetTURL());
191     SetSize(EvTag.GetSize());
192
193     SetNumOfParticipants(EvTag.GetNumOfParticipants());
194     SetImpactParameter(EvTag.GetImpactParameter());
195     
196     SetVertexX(EvTag.GetVertexX());
197     SetVertexY(EvTag.GetVertexY());
198     SetVertexZ(EvTag.GetVertexZ());
199     
200     SetVertexFlag(EvTag.GetVertexFlag());
201     SetVertexZError(EvTag.GetVertexZError());
202     
203     SetTrigger(EvTag.GetTrigger());
204     
205     SetZDCNeutronEnergy(EvTag.GetZDCNeutronEnergy());
206     SetZDCProtonEnergy(EvTag.GetZDCProtonEnergy());
207     SetZDCEMEnergy(EvTag.GetZDCEMEnergy());
208     
209     SetT0VertexZ(EvTag.GetT0VertexZ());
210     
211     SetNumOfTracks(EvTag.GetNumOfTracks());
212     SetNumOfPosTracks(EvTag.GetNumOfPosTracks());
213     SetNumOfNegTracks(EvTag.GetNumOfNegTracks());
214     SetNumOfNeutrTracks(EvTag.GetNumOfNeutrTracks());
215     
216     SetNumOfV0s(EvTag.GetNumOfV0s());
217     SetNumOfCascades(EvTag.GetNumOfCascades());
218     SetNumOfKinks(EvTag.GetNumOfKinks());
219     
220     SetNumOfPMDTracks(EvTag.GetNumOfPMDTracks());
221     SetNumOfFMDTracks(EvTag.GetNumOfFMDTracks());
222     SetNumOfPHOSClusters(EvTag.GetNumOfPHOSClusters());
223     SetNumOfEMCALClusters(EvTag.GetNumOfEMCALClusters());
224     
225     SetNumOfJetCandidates(EvTag.GetNumOfJetCandidates());
226     SetNumOfHardPhotonsCandidates(EvTag.GetNumOfHardPhotonsCandidates());
227     
228     SetMaxJetEnergy(EvTag.GetMaxJetEnergy());
229     SetMaxNeutralEnergy(EvTag.GetMaxNeutralEnergy());
230     
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());
240     
241     SetNumOfElectrons(EvTag.GetNumOfElectrons());
242     SetNumOfMuons(EvTag.GetNumOfMuons());
243     SetNumOfPions(EvTag.GetNumOfPions());
244     SetNumOfKaons(EvTag.GetNumOfKaons());
245     SetNumOfProtons(EvTag.GetNumOfProtons());
246     SetNumOfLambdas(EvTag.GetNumOfLambdas());
247     
248     
249     SetNumOfPhotons(EvTag.GetNumOfPhotons());
250     SetNumOfPi0s(EvTag.GetNumOfPi0s());
251     SetNumOfNeutrons(EvTag.GetNumOfNeutrons());
252     SetNumOfKaon0s(EvTag.GetNumOfKaon0s());
253     
254     SetTotalMomentum(EvTag.GetTotalMomentum());
255     SetMeanPt(EvTag.GetMeanPt());
256     SetMaxPt(EvTag.GetMaxPt());
257     
258     SetNeutralTotalMomentum(EvTag.GetNeutralTotalMomentum());
259     SetNeutralMeanPt(EvTag.GetNeutralMeanPt());
260     SetNeutralMaxPt(EvTag.GetNeutralMaxPt());
261     
262     SetEventPlaneAngle(EvTag.GetEventPlaneAngle());
263     SetHBTRadii(EvTag.GetHBTRadii());
264   }
265   return *this;
266 }
267
268 //______________________________________________________________________________
269 AliEventTag::~AliEventTag()
270 {
271   // AliEventTag destructor
272 }