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 ESD class
20 // This is the class to deal with during the phisical analysis of data
21 // This class is generated directly by the reconstruction methods
22 // Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
23 //-----------------------------------------------------------------
29 //______________________________________________________________________________
42 fTracks("AliESDtrack",15000),
43 fHLTConfMapTracks("AliESDHLTtrack",25000),
44 fHLTHoughTracks("AliESDHLTtrack",15000),
45 fMuonTracks("AliESDMuonTrack",30),
46 fPmdTracks("AliESDPmdTrack",3000),
48 fCascades("AliESDcascade",20),
49 fKinks("AliESDkink",4000),
50 fV0MIs("AliESDV0MI",4000),
51 fCaloClusters("AliESDCaloCluster",10000),
53 fFirstEMCALCluster(-1),
55 fFirstPHOSCluster(-1),
61 //______________________________________________________________________________
65 // Standard destructor
68 fHLTConfMapTracks.Delete();
69 fHLTHoughTracks.Delete();
76 fCaloClusters.Delete();
80 void AliESD::UpdateV0PIDs()
85 Int_t nV0 = GetNumberOfV0MIs();
86 for (Int_t i=0;i<nV0;i++){
87 AliESDV0MI * v0 = GetV0MI(i);
88 AliESDtrack* tp = GetTrack(v0->GetIndex(0));
89 AliESDtrack* tm = GetTrack(v0->GetIndex(1));
91 printf("BBBUUUUUUUGGGG\n");
100 //______________________________________________________________________________
113 fPrimaryVertex.Reset();
115 fHLTConfMapTracks.Clear();
116 fHLTHoughTracks.Clear();
121 fCaloClusters.Clear();
123 fFirstEMCALCluster=-1;
125 fFirstPHOSCluster=-1;
126 if (fESDFMD) fESDFMD->Clear();
129 //______________________________________________________________________________
130 void AliESD::Print(Option_t *) const
133 // Print header information of the event
135 printf("ESD run information\n");
136 printf("Event # %d Run # %d Trigger %ld Magnetic field %f \n",
140 GetMagneticField() );
141 printf("Vertex: (%.4f +- %.4f, %.4f +- %.4f, %.4f +- %.4f) cm\n",
142 fPrimaryVertex.GetXv(), fPrimaryVertex.GetXRes(),
143 fPrimaryVertex.GetYv(), fPrimaryVertex.GetYRes(),
144 fPrimaryVertex.GetZv(), fPrimaryVertex.GetZRes());
145 printf("Event from reconstruction version %d \n",fRecoVersion);
146 printf("Number of tracks: \n");
147 printf(" charged %d\n", GetNumberOfTracks());
148 printf(" hlt CF %d\n", GetNumberOfHLTConfMapTracks());
149 printf(" hlt HT %d\n", GetNumberOfHLTHoughTracks());
150 printf(" phos %d\n", GetNumberOfPHOSClusters());
151 printf(" emcal %d\n", GetNumberOfEMCALClusters());
152 printf(" muon %d\n", GetNumberOfMuonTracks());
153 printf(" pmd %d\n", GetNumberOfPmdTracks());
154 printf(" v0 %d\n", GetNumberOfV0s());
155 printf(" cascades %d\n)", GetNumberOfCascades());
156 printf(" kinks %d\n)", GetNumberOfKinks());
157 printf(" V0MIs %d\n)", GetNumberOfV0MIs());
158 printf(" CaloClusters %d\n)", GetNumberOfCaloClusters());
159 printf(" FMD %s\n)", (fESDFMD ? "yes" : "no"));