Modification of the trigger fields in the event tag (Panos)
[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     fTriggerMask(0),
44     fTriggerCluster(0),
45     fZDCNeutron1Energy(-10.0),
46     fZDCProton1Energy(-10.0),
47     fZDCNeutron2Energy(-10.0),
48     fZDCProton2Energy(-10.0),
49     fZDCEMEnergy(-10.0),
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),
59     fNumberOfFMDTracks(-10),
60     fNumberOfPHOSClusters(-10),
61     fNumberOfEMCALClusters(-10),
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)
93 {
94   // AliEventTag default constructor
95 }
96
97
98 //______________________________________________________________________________
99 AliEventTag::AliEventTag(const AliEventTag & EvTag) : TObject(EvTag)
100 {
101   // EventTag copy constructor
102   SetEventId(EvTag.GetEventId());
103   SetGUID(EvTag.GetGUID());
104   
105   SetMD5(EvTag.GetMD5());
106   SetTURL(EvTag.GetTURL());
107   SetSize(EvTag.GetSize());
108  
109   SetNumOfParticipants(EvTag.GetNumOfParticipants());
110   SetImpactParameter(EvTag.GetImpactParameter());
111   
112   SetVertexX(EvTag.GetVertexX());
113   SetVertexY(EvTag.GetVertexY());
114   SetVertexZ(EvTag.GetVertexZ());
115
116   SetVertexFlag(EvTag.GetVertexFlag());
117   SetVertexZError(EvTag.GetVertexZError());
118
119   SetTriggerMask(EvTag.GetTriggerMask());
120   SetTriggerCluster(EvTag.GetTriggerCluster());
121   
122   SetZDCNeutron1Energy(EvTag.GetZDCNeutron1Energy());
123   SetZDCProton1Energy(EvTag.GetZDCProton1Energy());
124   SetZDCEMEnergy(EvTag.GetZDCEMEnergy());
125   SetZDCNeutron2Energy(EvTag.GetZDCNeutron2Energy());
126   SetZDCProton2Energy(EvTag.GetZDCProton2Energy());
127   
128   SetT0VertexZ(EvTag.GetT0VertexZ());
129   
130   SetNumOfTracks(EvTag.GetNumOfTracks());
131   SetNumOfPosTracks(EvTag.GetNumOfPosTracks());
132   SetNumOfNegTracks(EvTag.GetNumOfNegTracks());
133   SetNumOfNeutrTracks(EvTag.GetNumOfNeutrTracks());
134   
135   SetNumOfV0s(EvTag.GetNumOfV0s());
136   SetNumOfCascades(EvTag.GetNumOfCascades());
137   SetNumOfKinks(EvTag.GetNumOfKinks());
138   
139   SetNumOfPMDTracks(EvTag.GetNumOfPMDTracks());
140   SetNumOfFMDTracks(EvTag.GetNumOfFMDTracks());
141   SetNumOfPHOSClusters(EvTag.GetNumOfPHOSClusters());
142   SetNumOfEMCALClusters(EvTag.GetNumOfEMCALClusters());
143
144   SetNumOfJetCandidates(EvTag.GetNumOfJetCandidates());
145   SetNumOfHardPhotonsCandidates(EvTag.GetNumOfHardPhotonsCandidates());
146
147   SetMaxJetEnergy(EvTag.GetMaxJetEnergy());
148   SetMaxNeutralEnergy(EvTag.GetMaxNeutralEnergy());
149   
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());
166  
167
168   SetNumOfPhotons(EvTag.GetNumOfPhotons());
169   SetNumOfPi0s(EvTag.GetNumOfPi0s());
170   SetNumOfNeutrons(EvTag.GetNumOfNeutrons());
171   SetNumOfKaon0s(EvTag.GetNumOfKaon0s());
172   
173   SetTotalMomentum(EvTag.GetTotalMomentum());
174   SetMeanPt(EvTag.GetMeanPt());
175   SetMaxPt(EvTag.GetMaxPt());
176
177   SetNeutralTotalMomentum(EvTag.GetNeutralTotalMomentum());
178   SetNeutralMeanPt(EvTag.GetNeutralMeanPt());
179   SetNeutralMaxPt(EvTag.GetNeutralMaxPt());
180   
181   SetEventPlaneAngle(EvTag.GetEventPlaneAngle());
182   SetHBTRadii(EvTag.GetHBTRadii());
183 }
184
185 //______________________________________________________________________________
186 AliEventTag & 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     
195     SetMD5(EvTag.GetMD5());
196     SetTURL(EvTag.GetTURL());
197     SetSize(EvTag.GetSize());
198
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     
209     SetTriggerMask(EvTag.GetTriggerMask());
210     SetTriggerCluster(EvTag.GetTriggerCluster());
211     
212     SetZDCNeutron1Energy(EvTag.GetZDCNeutron1Energy());
213     SetZDCProton1Energy(EvTag.GetZDCProton1Energy());
214     SetZDCNeutron2Energy(EvTag.GetZDCNeutron2Energy());
215     SetZDCProton2Energy(EvTag.GetZDCProton2Energy());
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());
230     SetNumOfFMDTracks(EvTag.GetNumOfFMDTracks());
231     SetNumOfPHOSClusters(EvTag.GetNumOfPHOSClusters());
232     SetNumOfEMCALClusters(EvTag.GetNumOfEMCALClusters());
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;
275 }
276
277 //______________________________________________________________________________
278 AliEventTag::~AliEventTag()
279 {
280   // AliEventTag destructor
281 }