Move the filling of the Ecross per cell histogram before the cut on Ecross is applied
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 27 Oct 2011 08:44:48 +0000 (08:44 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 27 Oct 2011 08:44:48 +0000 (08:44 +0000)
PWG4/PartCorrDep/AliAnaCalorimeterQA.cxx

index 6eba081..7cc20f4 100755 (executable)
@@ -377,22 +377,23 @@ void AliAnaCalorimeterQA::CellHistograms(AliVCaloCells *cells)
       //Transform time to ns
       time *= 1.0e9;
       
-      // Remove exotic cells
-      if(fCalorimeter=="EMCAL" && GetCaloUtils()->GetEMCALRecoUtils()->IsExoticCell(id, cells, bc)) continue;
-      
       // Remove noisy channels, only possible in ESDs
       if(GetReader()->GetDataType() == AliCaloTrackReader::kESD){
         if(time < fTimeCutMin || time > fTimeCutMax){
           if(GetDebug() > 0 )printf("AliAnaCalorimeterQA - Remove cell with Time %f\n",time);
           continue;
         }
-      }
+      }      
+      
+      // Remove exotic cells
+      fhCellECross->Fill(amp,1-GetECross(id,cells)/amp);
+      
+      if(fCalorimeter=="EMCAL" && GetCaloUtils()->GetEMCALRecoUtils()->IsExoticCell(id, cells, bc)) continue;
       
       fhAmplitude->Fill(amp);
       fhAmpId    ->Fill(amp,id);
       fhAmpMod   ->Fill(amp,nModule);
       
-      fhCellECross->Fill(amp,1-GetECross(id,cells)/amp);
       
       if ((fCalorimeter=="EMCAL" && amp > fEMCALCellAmpMin) ||
           (fCalorimeter=="PHOS"  && amp > fPHOSCellAmpMin))   {