]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliEventTag.cxx
Updated version of tag classes (P.Christakoglou)
[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 {
31   fAliceEventId = 0;
32   fGUID = 0;
33
34   fNumberOfParticipants = -10;
35   fImpactParameter = -10.0;
36
37   fPrimaryVertexX = -100.0;
38   fPrimaryVertexY = -100.0;
39   fPrimaryVertexZ = -100.0;
40
41   fPrimaryVertexFlag = -1;
42   fPrimaryVertexZError = -100.0;
43
44   fTriggerInfo = -10;
45
46   fZDCNeutronEnergy = -10.0;
47   fZDCProtonEnergy = -10.0;
48   fZDCEMEnergy = -10.0;
49
50   fT0VertexZ = -10.0;
51
52   fNumberOfTracks = -10;
53   fNumberOfPositiveTracks = -10;
54   fNumberOfNegativeTracks = -10;
55   fNumberOfNeutralTracks = -10;
56   
57   fNumberOfV0s = -10;
58   fNumberOfCascades = -10;
59   fNumberOfKinks = -10;
60   
61   fNumberOfPMDTracks = -10;
62   fNumberOfPHOSTracks = -10;
63   fNumberOfEMCALTracks = -10;
64   fNumberOfFMDTracks = -10;
65   
66   fNumberOfJetCandidates = -10;
67   fNumberOfHardPhotonsCandidates = -10;
68
69   fMaxJetEnergy = -100.0;
70   fMaxNeutralEnergy = -100.0; 
71   
72   fNumberOfChargedAbove1GeV = -10;
73   fNumberOfChargedAbove3GeV = -10;
74   fNumberOfChargedAbove10GeV = -10;
75   fNumberOfMuonsAbove1GeV = -10;
76   fNumberOfMuonsAbove3GeV = -10;
77   fNumberOfMuonsAbove10GeV = -10;
78   fNumberOfElectronsAbove1GeV = -10;
79   fNumberOfElectronsAbove3GeV = -10;
80   fNumberOfElectronsAbove10GeV = -10;
81
82
83   fNumberOfElectrons = -10;
84   fNumberOfMuons = -10;
85   fNumberOfPions = -10;
86   fNumberOfKaons = -10;
87   fNumberOfProtons = -10;
88   fNumberOfLambdas = -10;
89
90   fNumberOfPhotons = -10;
91   fNumberOfPi0s = -10;
92   fNumberOfNeutrons = -10;
93   fNumberOfKaon0s = -10;
94
95    
96   fTotalP = -10.0;
97   fMeanPt = -10.0;
98   fMaxPt = -10.0;
99
100   fTotalNeutralP = -10.0;
101   fMeanNeutralPt = -10.0;
102   fMaxNeutralPt = -10.0;
103
104   fEventPlaneAngle = -10.0;
105   fHBTRadii = -10.0;
106
107 }
108
109
110 //______________________________________________________________________________
111 AliEventTag::AliEventTag(AliEventTag *EvTag)
112 {
113   // EventTag copy constructor
114   SetEventId(EvTag->GetEventId());
115   SetGUID(EvTag->GetGUID());
116   
117   SetNumOfParticipants(EvTag->GetNumOfParticipants());
118   SetImpactParameter(EvTag->GetImpactParameter());
119   
120   SetVertexX(EvTag->GetVertexX());
121   SetVertexY(EvTag->GetVertexY());
122   SetVertexZ(EvTag->GetVertexZ());
123
124   SetVertexFlag(EvTag->GetVertexFlag());
125   SetVertexZError(EvTag->GetVertexZError());
126
127   SetTrigger(EvTag->GetTrigger());
128   
129   SetZDCNeutronEnergy(EvTag->GetZDCNeutronEnergy());
130   SetZDCProtonEnergy(EvTag->GetZDCProtonEnergy());
131   SetZDCEMEnergy(EvTag->GetZDCEMEnergy());
132   
133   SetT0VertexZ(EvTag->GetT0VertexZ());
134   
135   SetNumOfTracks(EvTag->GetNumOfTracks());
136   SetNumOfPosTracks(EvTag->GetNumOfPosTracks());
137   SetNumOfNegTracks(EvTag->GetNumOfNegTracks());
138   SetNumOfNeutrTracks(EvTag->GetNumOfNeutrTracks());
139   
140   SetNumOfV0s(EvTag->GetNumOfV0s());
141   SetNumOfCascades(EvTag->GetNumOfCascades());
142   SetNumOfKinks(EvTag->GetNumOfKinks());
143   
144   SetNumOfPMDTracks(EvTag->GetNumOfPMDTracks());
145   SetNumOfPHOSTracks(EvTag->GetNumOfPHOSTracks());
146   SetNumOfEMCALTracks(EvTag->GetNumOfEMCALTracks());
147   SetNumOfFMDTracks(EvTag->GetNumOfFMDTracks());
148   
149   SetNumOfJetCandidates(EvTag->GetNumOfJetCandidates());
150   SetNumOfHardPhotonsCandidates(EvTag->GetNumOfHardPhotonsCandidates());
151
152   SetMaxJetEnergy(EvTag->GetMaxJetEnergy());
153   SetMaxNeutralEnergy(EvTag->GetMaxNeutralEnergy());
154   
155   SetNumOfChargedAbove1GeV(EvTag->GetNumOfChargedAbove1GeV());
156   SetNumOfChargedAbove3GeV(EvTag->GetNumOfChargedAbove3GeV());
157   SetNumOfChargedAbove10GeV(EvTag->GetNumOfChargedAbove10GeV());
158   SetNumOfMuonsAbove1GeV(EvTag->GetNumOfMuonsAbove1GeV());
159   SetNumOfMuonsAbove3GeV(EvTag->GetNumOfMuonsAbove3GeV());
160   SetNumOfMuonsAbove10GeV(EvTag->GetNumOfMuonsAbove10GeV());
161   SetNumOfElectronsAbove1GeV(EvTag->GetNumOfElectronsAbove1GeV());
162   SetNumOfElectronsAbove3GeV(EvTag->GetNumOfElectronsAbove3GeV());
163   SetNumOfElectronsAbove10GeV(EvTag->GetNumOfElectronsAbove10GeV());
164
165   SetNumOfElectrons(EvTag->GetNumOfElectrons());
166   SetNumOfMuons(EvTag->GetNumOfMuons());
167   SetNumOfPions(EvTag->GetNumOfPions());
168   SetNumOfKaons(EvTag->GetNumOfKaons());
169   SetNumOfProtons(EvTag->GetNumOfProtons());
170   SetNumOfLambdas(EvTag->GetNumOfLambdas());
171  
172
173   SetNumOfPhotons(EvTag->GetNumOfPhotons());
174   SetNumOfPi0s(EvTag->GetNumOfPi0s());
175   SetNumOfNeutrons(EvTag->GetNumOfNeutrons());
176   SetNumOfKaon0s(EvTag->GetNumOfKaon0s());
177   
178   SetTotalMomentum(EvTag->GetTotalMomentum());
179   SetMeanPt(EvTag->GetMeanPt());
180   SetMaxPt(EvTag->GetMaxPt());
181
182   SetNeutralTotalMomentum(EvTag->GetNeutralTotalMomentum());
183   SetNeutralMeanPt(EvTag->GetNeutralMeanPt());
184   SetNeutralMaxPt(EvTag->GetNeutralMaxPt());
185   
186   SetEventPlaneAngle(EvTag->GetEventPlaneAngle());
187   SetHBTRadii(EvTag->GetHBTRadii());
188 }
189 //______________________________________________________________________________
190 AliEventTag::~AliEventTag()
191 {
192 }