8 ClassImp(AliDetectorTag)
11 TClonesArray *AliRunTag::fgEvents = 0;
12 TClonesArray *AliRunTag::fgDetectors = 0;
14 //______________________________________________________________________________
15 AliRunTag::AliRunTag()
17 if (!fgEvents) fgEvents = new TClonesArray("AliEventTag", 1000);
21 if (!fgDetectors) fgDetectors = new TClonesArray("AliDetectorTag", 1000);
22 fDetectorTag = fgDetectors;
25 fAliceMagneticField = 0.0;
26 fAliceRunStartTime = 0;
27 fAliceRunStopTime = 0;
28 fAliceReconstructionVersion = 0;
30 fAliceBeamEnergy = 0.0;
31 fAliceCalibrationVersion = 0;
34 //______________________________________________________________________________
35 AliRunTag::~AliRunTag()
39 //______________________________________________________________________________
40 void AliRunTag::SetLHCTag(Float_t lumin, char *type)
42 fLHCTag.SetLHCTag(lumin,type);
45 //______________________________________________________________________________
46 void AliRunTag::SetDetectorTag(AliDetectorTag *DetTag)
48 TClonesArray &detectors = *fDetectorTag;
49 new(detectors[fNumDetectors++]) AliDetectorTag(DetTag);
52 //______________________________________________________________________________
53 void AliRunTag::AddEventTag(AliEventTag *EvTag)
55 TClonesArray &events = *fEventTag;
56 new(events[fNumEvents++]) AliEventTag(EvTag);
59 //______________________________________________________________________________
60 void AliRunTag::Clear()
67 //______________________________________________________________________________
68 //______________________________________________________________________________
69 AliLHCTag::AliLHCTag()
71 fLHCLuminosity = -1.0;
74 //______________________________________________________________________________
75 AliLHCTag::~AliLHCTag()
79 //______________________________________________________________________________
80 //______________________________________________________________________________
81 AliDetectorTag::AliDetectorTag()
99 //______________________________________________________________________________
100 AliDetectorTag::AliDetectorTag(AliDetectorTag *DetTag)
102 // DetectorTag copy constructor
106 //______________________________________________________________________________
107 AliDetectorTag::~AliDetectorTag()
111 //______________________________________________________________________________
112 void AliDetectorTag::CopyTag(AliDetectorTag *DetTag)
114 SetITS(DetTag->GetITS());
115 SetTPC(DetTag->GetTPC());
116 SetTRD(DetTag->GetTRD());
117 SetTOF(DetTag->GetTOF());
118 SetHMPID(DetTag->GetHMPID());
119 SetPHOS(DetTag->GetPHOS());
120 SetZDC(DetTag->GetZDC());
121 SetMUON(DetTag->GetMUON());
122 SetABSORBER(DetTag->GetABSORBER());
123 SetPMD(DetTag->GetPMD());
124 SetRICH(DetTag->GetRICH());
125 SetEMCAL(DetTag->GetEMCAL());
126 SetVZERO(DetTag->GetVZERO());
127 SetTZERO(DetTag->GetTZERO());
131 //______________________________________________________________________________
132 //______________________________________________________________________________
133 AliEventTag::AliEventTag()
138 fNumberOfParticipants = -10;
139 fImpactParameter = -10.0;
141 fPrimaryVertexX = -100.0;
142 fPrimaryVertexY = -100.0;
143 fPrimaryVertexZ = -100.0;
147 fZDCNeutronEnergy = -10.0;
148 fZDCProtonEnergy = -10.0;
149 fZDCEMEnergy = -10.0;
153 fNumberOfTracks = -10;
154 fNumberOfPositiveTracks = -10;
155 fNumberOfNegativeTracks = -10;
156 fNumberOfNeutralTracks = -10;
159 fNumberOfCascades = -10;
160 fNumberOfKinks = -10;
162 fNumberOfPMDTracks = -10;
163 fNumberOfPHOSTracks = -10;
164 fNumberOfEMCALTracks = -10;
165 fNumberOfFMDTracks = -10;
167 fNumberOfJetCandidates = -10;
168 fNumberOfHardPhotonsCandidates = -10;
170 fNumberOfElectrons = -10;
171 fNumberOfMuons = -10;
172 fNumberOfPions = -10;
173 fNumberOfKaons = -10;
174 fNumberOfProtons = -10;
175 fNumberOfLambdas = -10;
177 fNumberOfJPsiCandidates = -10;
178 fNumberOfPsiPrimeCandidates = -10;
179 fNumberOfUpsilonCandidates = -10;
180 fNumberOfUpsilonPrimeCandidates = -10;
181 fNumberOfUpsilonDoublePrimeCandidates = -10;
182 fNumberOfCharmParticleCandidates = -10;
183 fNumberOfBeautyParticleCandidates = -10;
185 fK0PeakPosition = -10.0;
186 fK0PeakWidth = -10.0;
197 //______________________________________________________________________________
198 AliEventTag::AliEventTag(AliEventTag *EvTag)
200 // EventTag copy constructor
203 //______________________________________________________________________________
204 AliEventTag::~AliEventTag()
208 //______________________________________________________________________________
209 void AliEventTag::CopyTag(AliEventTag *EvTag)
211 SetEventId(EvTag->GetEventId());
212 SetGUID(EvTag->GetGUID());
214 SetNumOfParticipants(EvTag->GetNumOfParticipants());
215 SetImpactParameter(EvTag->GetImpactParameter());
217 SetVertexX(EvTag->GetVertexX());
218 SetVertexY(EvTag->GetVertexY());
219 SetVertexZ(EvTag->GetVertexZ());
221 SetTrigger(EvTag->GetTrigger());
223 SetZDCNeutronEnergy(EvTag->GetZDCNeutronEnergy());
224 SetZDCProtonEnergy(EvTag->GetZDCProtonEnergy());
225 SetZDCEMEnergy(EvTag->GetZDCEMEnergy());
227 SetT0VertexZ(EvTag->GetT0VertexZ());
229 SetNumOfTracks(EvTag->GetNumOfTracks());
230 SetNumOfPosTracks(EvTag->GetNumOfPosTracks());
231 SetNumOfNegTracks(EvTag->GetNumOfNegTracks());
232 SetNumOfNeutrTracks(EvTag->GetNumOfNeutrTracks());
234 SetNumOfV0s(EvTag->GetNumOfV0s());
235 SetNumOfCascades(EvTag->GetNumOfCascades());
236 SetNumOfKinks(EvTag->GetNumOfKinks());
238 SetNumOfPMDTracks(EvTag->GetNumOfPMDTracks());
239 SetNumOfPHOSTracks(EvTag->GetNumOfPHOSTracks());
240 SetNumOfEMCALTracks(EvTag->GetNumOfEMCALTracks());
241 SetNumOfFMDTracks(EvTag->GetNumOfFMDTracks());
243 SetNumOfJetCandidates(EvTag->GetNumOfJetCandidates());
244 SetNumOfHardPhotonsCandidates(EvTag->GetNumOfHardPhotonsCandidates());
245 SetNumOfJPsiCandidates(EvTag->GetNumOfJPsiCandidates());
246 SetNumOfPsiPrimeCandidates(EvTag->GetNumOfPsiPrimeCandidates());
247 SetNumOfUpsilonCandidates(EvTag->GetNumOfUpsilonCandidates());
248 SetNumOfUpsilonPrimeCandidates(EvTag->GetNumOfUpsilonPrimeCandidates());
249 SetNumOfUpsilonDoublePrimeCandidates(EvTag->GetNumOfUpsilonDoublePrimeCandidates());
250 SetNumOfCharmCandidates(EvTag->GetNumOfCharmCandidates());
251 SetNumOfBeautyCandidates(EvTag->GetNumOfBeautyCandidates());
253 SetNumOfElectrons(EvTag->GetNumOfElectrons());
254 SetNumOfMuons(EvTag->GetNumOfMuons());
255 SetNumOfPions(EvTag->GetNumOfPions());
256 SetNumOfKaons(EvTag->GetNumOfKaons());
257 SetNumOfProtons(EvTag->GetNumOfProtons());
258 SetNumOfLambdas(EvTag->GetNumOfLambdas());
260 SetK0Peak(EvTag->GetK0Peak());
261 SetK0Width(EvTag->GetK0Width());
263 SetTotalMomentum(EvTag->GetTotalMomentum());
264 SetMeanPt(EvTag->GetMeanPt());
265 SetMaxPt(EvTag->GetMaxPt());
267 SetFlowV1(EvTag->GetFlowV1());
268 SetFlowV2(EvTag->GetFlowV2());