]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
discard assert
authorpavlinov <pavlinov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Feb 2007 18:49:19 +0000 (18:49 +0000)
committerpavlinov <pavlinov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Feb 2007 18:49:19 +0000 (18:49 +0000)
EMCAL/AliEMCALReconstructor.cxx

index ecc6ae311ae020efe5224ba975a093121c72ca8e..117b4a015f33acfa9f457491a8c36e4f3224a5e6 100644 (file)
@@ -121,14 +121,13 @@ void AliEMCALReconstructor::FillESD(AliRunLoader* runLoader, AliESD* esd) const
   rl->GetEvent(eventNumber);
   TObjArray *clusters = emcalLoader->RecPoints();
   Int_t nClusters = clusters->GetEntries(), nClustersNew=0;
+  Int_t nRP=0, nPC=0; // in input
   esd->SetFirstEMCALCluster(esd->GetNumberOfCaloClusters()); // Put after Phos clusters 
   //  esd->SetNumberOfEMCALClusters(nClusters); // have to be change - Feb 25, 2007; some cluster may be discard
 
-  printf(" %i : nClusters %i \n", eventNumber, nClusters);
-  assert(0);
   for (Int_t iClust = 0 ; iClust < nClusters ; iClust++) {
     const AliEMCALRecPoint * clust = emcalLoader->RecPoint(iClust);
-
+    if(clust->GetClusterType()== AliESDCaloCluster::kClusterv1) nRP++; else nPC++;
     if (Debug()) clust->Print();
     // Get information from EMCAL reconstruction points
     Float_t xyz[3];
@@ -208,6 +207,7 @@ void AliEMCALReconstructor::FillESD(AliRunLoader* runLoader, AliESD* esd) const
         delete [] digiList;
     }
   } // cycle on clusters
+  //  printf(" %i : nClusters %i : RP %i PC %i \n", eventNumber, nClusters, nRP, nPC);
   esd->SetNumberOfEMCALClusters(nClustersNew);
   if(nClustersNew != nClusters) 
   printf(" ##### nClusters %i -> new %i ##### \n", nClusters, nClustersNew );