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 //______________________________________________________________________________
44 fTracks("AliESDtrack",15000),
45 fHLTConfMapTracks("AliESDHLTtrack",25000),
46 fHLTHoughTracks("AliESDHLTtrack",15000),
47 fMuonTracks("AliESDMuonTrack",30),
48 fPmdTracks("AliESDPmdTrack",3000),
50 fCascades("AliESDcascade",20),
51 fKinks("AliESDkink",4000),
52 fV0MIs("AliESDV0MI",4000),
53 fCaloClusters("AliESDCaloCluster",10000),
55 fFirstEMCALCluster(-1),
57 fFirstPHOSCluster(-1),
63 //______________________________________________________________________________
67 // Standard destructor
70 fHLTConfMapTracks.Delete();
71 fHLTHoughTracks.Delete();
78 fCaloClusters.Delete();
82 void AliESD::UpdateV0PIDs()
87 Int_t nV0 = GetNumberOfV0MIs();
88 for (Int_t i=0;i<nV0;i++){
89 AliESDV0MI * v0 = GetV0MI(i);
90 AliESDtrack* tp = GetTrack(v0->GetIndex(0));
91 AliESDtrack* tm = GetTrack(v0->GetIndex(1));
93 printf("BBBUUUUUUUGGGG\n");
102 //______________________________________________________________________________
117 fPrimaryVertex.Reset();
119 fHLTConfMapTracks.Clear();
120 fHLTHoughTracks.Clear();
125 fCaloClusters.Clear();
127 fFirstEMCALCluster=-1;
129 fFirstPHOSCluster=-1;
130 if (fESDFMD) fESDFMD->Clear();
133 //______________________________________________________________________________
134 void AliESD::Print(Option_t *) const
137 // Print header information of the event
139 printf("ESD run information\n");
140 printf("Event # %d Run # %d Trigger %ld Magnetic field %f \n",
144 GetMagneticField() );
145 printf("Vertex: (%.4f +- %.4f, %.4f +- %.4f, %.4f +- %.4f) cm\n",
146 fPrimaryVertex.GetXv(), fPrimaryVertex.GetXRes(),
147 fPrimaryVertex.GetYv(), fPrimaryVertex.GetYRes(),
148 fPrimaryVertex.GetZv(), fPrimaryVertex.GetZRes());
149 printf("Event from reconstruction version %d \n",fRecoVersion);
150 printf("Number of tracks: \n");
151 printf(" charged %d\n", GetNumberOfTracks());
152 printf(" hlt CF %d\n", GetNumberOfHLTConfMapTracks());
153 printf(" hlt HT %d\n", GetNumberOfHLTHoughTracks());
154 printf(" phos %d\n", GetNumberOfPHOSClusters());
155 printf(" emcal %d\n", GetNumberOfEMCALClusters());
156 printf(" muon %d\n", GetNumberOfMuonTracks());
157 printf(" pmd %d\n", GetNumberOfPmdTracks());
158 printf(" v0 %d\n", GetNumberOfV0s());
159 printf(" cascades %d\n)", GetNumberOfCascades());
160 printf(" kinks %d\n)", GetNumberOfKinks());
161 printf(" V0MIs %d\n)", GetNumberOfV0MIs());
162 printf(" CaloClusters %d\n)", GetNumberOfCaloClusters());
163 printf(" FMD %s\n)", (fESDFMD ? "yes" : "no"));