trackmultiplicity based on RP cuts
authorsnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 9 Nov 2010 16:46:44 +0000 (16:46 +0000)
committersnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 9 Nov 2010 16:46:44 +0000 (16:46 +0000)
PWG2/FLOW/AliFlowTasks/AliAnalysisTaskQAflow.cxx

index ab2d543..2894906 100644 (file)
@@ -169,7 +169,10 @@ void AliAnalysisTaskQAflow::UserExec(Option_t *)
     }
     
   }
-  Int_t trackmult = AliESDtrackCuts::GetReferenceMultiplicity(event,kTRUE);
+  //Int_t trackmult = AliESDtrackCuts::GetReferenceMultiplicity(event,kTRUE);
+  AliFlowEventCuts newcuts;
+  newcuts.SetRefMultCuts(fTrackCuts);
+  Int_t trackmult = newcuts.RefMult(event);
   Int_t refmult = fEventCuts->RefMult(event);
   Bool_t passevent = fEventCuts->IsSelected(event);
   htrackletmultB->Fill(ntracklets); if (passevent) htrackletmultA->Fill(ntracklets);