Protection against events out of 0-100 centrality (Giacomo)
authorprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Dec 2011 15:12:27 +0000 (15:12 +0000)
committerprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Dec 2011 15:12:27 +0000 (15:12 +0000)
PWG3/vertexingHF/AliAnalysisTaskSEHFQA.cxx

index 745d022..6c5645f 100644 (file)
@@ -845,6 +845,7 @@ void AliAnalysisTaskSEHFQA::UserExec(Option_t */*option*/)
        mincent=-10; 
        stdCent=-1;
       }
+      if(mincent==100)mincent--;
       ((AliCounterCollection*)fOutputCounters->FindObject("stdEstimator"))->Count(Form("centralityclass:%d_%d/Run:%d",mincent,mincent+10,runNumber));
 
       mincent=secondCent-secondCent%10;
@@ -852,6 +853,7 @@ void AliAnalysisTaskSEHFQA::UserExec(Option_t */*option*/)
        mincent=-10;
        secondCent=-1;
       }
+      if(mincent==100)mincent--;
       ((AliCounterCollection*)fOutputCounters->FindObject("secondEstimator"))->Count(Form("centralityclass:%d_%d/Run:%d",mincent,mincent+10,runNumber));
 
       if(stdCent<fCuts->GetMinCentrality() || stdCent>fCuts->GetMaxCentrality()){