Initialize correctly FirstPHOSCluster
authorkharlov <kharlov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 15 May 2006 08:26:24 +0000 (08:26 +0000)
committerkharlov <kharlov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 15 May 2006 08:26:24 +0000 (08:26 +0000)
PHOS/AliPHOSReconstructor.cxx

index 4b0d64a547e9b70b65b899f60c6bd2e2427b2ff8..726aa99000cc66b1b2c26aa6d19264742f2a3a29 100644 (file)
@@ -110,7 +110,7 @@ void AliPHOSReconstructor::FillESD(AliRunLoader* runLoader, AliESD* esd) const
   TClonesArray *recParticles = AliPHOSGetter::Instance()->RecParticles();
   Int_t nOfRecParticles = recParticles->GetEntries();
   esd->SetNumberOfPHOSClusters(nOfRecParticles) ; 
-  esd->SetFirstPHOSCluster(esd->GetNumberOfTracks()) ; 
+  esd->SetFirstPHOSCluster(esd->GetNumberOfCaloClusters()) ; 
 
   for (Int_t recpart = 0 ; recpart < nOfRecParticles ; recpart++) {
     AliPHOSRecParticle * rp = dynamic_cast<AliPHOSRecParticle*>(recParticles->At(recpart));