]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG/FLOW/Tasks/AliAnalysisTaskFlowEvent.cxx
fix typo in partial derivative which is used to calculate correlated errors
[u/mrichter/AliRoot.git] / PWG / FLOW / Tasks / AliAnalysisTaskFlowEvent.cxx
index 3643f8ebb20f18ef960f49747f4594d3bca04a24..c9461d10ce304dfea31fa704f985f9cf42f2991e 100644 (file)
@@ -323,7 +323,8 @@ void AliAnalysisTaskFlowEvent::UserExec(Option_t *)
   if (fAnalysisType == "AUTOMATIC")
   {
     //check event cuts
-    if (InputEvent() && !fCutsEvent->IsSelected(InputEvent())) return;
+    if (InputEvent() && !fCutsEvent->IsSelected(InputEvent(),MCEvent())) 
+      return;
 
     //first attach all possible information to the cuts
     fCutsRP->SetEvent( InputEvent(), MCEvent() );  //attach event
@@ -335,6 +336,7 @@ void AliAnalysisTaskFlowEvent::UserExec(Option_t *)
 
     //    if (myESD)
     fFlowEvent->SetReferenceMultiplicity(fCutsEvent->GetReferenceMultiplicity(InputEvent(),mcEvent));
+    fFlowEvent->SetCentrality(fCutsEvent->GetCentrality(InputEvent(),mcEvent));
     if (mcEvent && mcEvent->GenEventHeader()) fFlowEvent->SetMCReactionPlaneAngle(mcEvent);
   }
 
@@ -562,6 +564,9 @@ void AliAnalysisTaskFlowEvent::UserExec(Option_t *)
   //do we want to serve shullfed tracks to everybody?
   fFlowEvent->SetShuffleTracks(fShuffleTracks);
 
+  // associate the mother particles to their daughters in the flow event (if any)
+  fFlowEvent->FindDaughters();
+
   //fListHistos->Print();
   //fOutputFile->WriteObject(fFlowEvent,"myFlowEventSimple");
   PostData(1,fFlowEvent);