]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix pile up event studies method
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 28 Oct 2012 17:37:44 +0000 (17:37 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 28 Oct 2012 17:37:44 +0000 (17:37 +0000)
PWGGA/CaloTrackCorrelations/AliAnaPhoton.cxx

index 83b31be06a3a944ce1923472fe963ebcb2a29108..c07da427f50cf44fc155e08eb5b040f25ac303fe 100755 (executable)
@@ -591,6 +591,8 @@ void AliAnaPhoton::FillAcceptanceHistograms()
 void AliAnaPhoton::FillPileUpHistogramsPerEvent(TObjArray * clusters) 
 {
   // Fill some histograms per event to understand pile-up
+  // Open the time cut in the reader to be more meaningful
+  
   if(!fFillPileUpHistograms) return;
     
   // Loop on clusters, get the maximum energy cluster as reference
@@ -601,7 +603,7 @@ void AliAnaPhoton::FillPileUpHistogramsPerEvent(TObjArray * clusters)
   for(Int_t iclus = 0; iclus < nclusters ; iclus++)
   {
          AliVCluster * clus =  (AliVCluster*) (clusters->At(iclus));   
-    if(clus->E() > eMax)
+    if(clus->E() > eMax && TMath::Abs(clus->GetTOF()*1e9) < 20)
     {
       eMax  = clus->E();
       tMax  = clus->GetTOF()*1e9;
@@ -609,7 +611,7 @@ void AliAnaPhoton::FillPileUpHistogramsPerEvent(TObjArray * clusters)
     }
   }
 
-  if(eMax < 3) return;
+  if(eMax < 5) return;
   
   // Loop again on clusters to compare this max cluster t and the rest of the clusters, if E > 0.3
   Int_t n20  = 0;