Fix for centrality selection (Davide)
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Apr 2011 15:00:12 +0000 (15:00 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Apr 2011 15:00:12 +0000 (15:00 +0000)
PWG3/vertexingHF/AliCFTaskVertexingHF.cxx

index d8947a5..4d836ae 100644 (file)
@@ -483,15 +483,16 @@ void AliCFTaskVertexingHF::UserExec(Option_t *)
        fCuts->SetTriggerClass("");
 
 
-       if (fCentralitySelection){ // consider only events in the class requested
+       if (fCentralitySelection){ // keep only the requested centrality
          if(fCuts->IsEventSelectedInCentrality(aodEvent)!=0) {
            delete[] containerInput;
            delete[] containerInputMC;
             delete [] trackCuts;
             return;
           }    
-       } else { // disable the centrality sel in IsEventSelected
-         fCuts->SetUseCentrality(0);
+       }  else { // keep all centralities
+         fCuts->SetMinCentrality(0.);
+         fCuts->SetMaxCentrality(100.);
        }