1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
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 //-----------------------------------------------------------------
24 #include "AliEventTag.h"
28 //______________________________________________________________________________
29 AliEventTag::AliEventTag()
34 fNumberOfParticipants = -10;
35 fImpactParameter = -10.0;
37 fPrimaryVertexX = -100.0;
38 fPrimaryVertexY = -100.0;
39 fPrimaryVertexZ = -100.0;
41 fPrimaryVertexFlag = -1;
42 fPrimaryVertexZError = -100.0;
46 fZDCNeutronEnergy = -10.0;
47 fZDCProtonEnergy = -10.0;
52 fNumberOfTracks = -10;
53 fNumberOfPositiveTracks = -10;
54 fNumberOfNegativeTracks = -10;
55 fNumberOfNeutralTracks = -10;
58 fNumberOfCascades = -10;
61 fNumberOfPMDTracks = -10;
62 fNumberOfPHOSTracks = -10;
63 fNumberOfEMCALTracks = -10;
64 fNumberOfFMDTracks = -10;
66 fNumberOfJetCandidates = -10;
67 fNumberOfHardPhotonsCandidates = -10;
69 fMaxJetEnergy = -100.0;
70 fMaxNeutralEnergy = -100.0;
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;
83 fNumberOfElectrons = -10;
87 fNumberOfProtons = -10;
88 fNumberOfLambdas = -10;
90 fNumberOfPhotons = -10;
92 fNumberOfNeutrons = -10;
93 fNumberOfKaon0s = -10;
100 fTotalNeutralP = -10.0;
101 fMeanNeutralPt = -10.0;
102 fMaxNeutralPt = -10.0;
104 fEventPlaneAngle = -10.0;
110 //______________________________________________________________________________
111 AliEventTag::AliEventTag(AliEventTag *EvTag)
113 // EventTag copy constructor
114 SetEventId(EvTag->GetEventId());
115 SetGUID(EvTag->GetGUID());
117 SetNumOfParticipants(EvTag->GetNumOfParticipants());
118 SetImpactParameter(EvTag->GetImpactParameter());
120 SetVertexX(EvTag->GetVertexX());
121 SetVertexY(EvTag->GetVertexY());
122 SetVertexZ(EvTag->GetVertexZ());
124 SetVertexFlag(EvTag->GetVertexFlag());
125 SetVertexZError(EvTag->GetVertexZError());
127 SetTrigger(EvTag->GetTrigger());
129 SetZDCNeutronEnergy(EvTag->GetZDCNeutronEnergy());
130 SetZDCProtonEnergy(EvTag->GetZDCProtonEnergy());
131 SetZDCEMEnergy(EvTag->GetZDCEMEnergy());
133 SetT0VertexZ(EvTag->GetT0VertexZ());
135 SetNumOfTracks(EvTag->GetNumOfTracks());
136 SetNumOfPosTracks(EvTag->GetNumOfPosTracks());
137 SetNumOfNegTracks(EvTag->GetNumOfNegTracks());
138 SetNumOfNeutrTracks(EvTag->GetNumOfNeutrTracks());
140 SetNumOfV0s(EvTag->GetNumOfV0s());
141 SetNumOfCascades(EvTag->GetNumOfCascades());
142 SetNumOfKinks(EvTag->GetNumOfKinks());
144 SetNumOfPMDTracks(EvTag->GetNumOfPMDTracks());
145 SetNumOfPHOSTracks(EvTag->GetNumOfPHOSTracks());
146 SetNumOfEMCALTracks(EvTag->GetNumOfEMCALTracks());
147 SetNumOfFMDTracks(EvTag->GetNumOfFMDTracks());
149 SetNumOfJetCandidates(EvTag->GetNumOfJetCandidates());
150 SetNumOfHardPhotonsCandidates(EvTag->GetNumOfHardPhotonsCandidates());
152 SetMaxJetEnergy(EvTag->GetMaxJetEnergy());
153 SetMaxNeutralEnergy(EvTag->GetMaxNeutralEnergy());
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());
165 SetNumOfElectrons(EvTag->GetNumOfElectrons());
166 SetNumOfMuons(EvTag->GetNumOfMuons());
167 SetNumOfPions(EvTag->GetNumOfPions());
168 SetNumOfKaons(EvTag->GetNumOfKaons());
169 SetNumOfProtons(EvTag->GetNumOfProtons());
170 SetNumOfLambdas(EvTag->GetNumOfLambdas());
173 SetNumOfPhotons(EvTag->GetNumOfPhotons());
174 SetNumOfPi0s(EvTag->GetNumOfPi0s());
175 SetNumOfNeutrons(EvTag->GetNumOfNeutrons());
176 SetNumOfKaon0s(EvTag->GetNumOfKaon0s());
178 SetTotalMomentum(EvTag->GetTotalMomentum());
179 SetMeanPt(EvTag->GetMeanPt());
180 SetMaxPt(EvTag->GetMaxPt());
182 SetNeutralTotalMomentum(EvTag->GetNeutralTotalMomentum());
183 SetNeutralMeanPt(EvTag->GetNeutralMeanPt());
184 SetNeutralMaxPt(EvTag->GetNeutralMaxPt());
186 SetEventPlaneAngle(EvTag->GetEventPlaneAngle());
187 SetHBTRadii(EvTag->GetHBTRadii());
189 //______________________________________________________________________________
190 AliEventTag::~AliEventTag()