fix bookkeeping bug
authorsnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Jun 2010 09:14:49 +0000 (09:14 +0000)
committersnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Jun 2010 09:14:49 +0000 (09:14 +0000)
PWG2/FLOW/AliFlowCommon/AliFlowEventSimple.cxx

index e38687e..3d57e3f 100644 (file)
@@ -413,7 +413,7 @@ void AliFlowEventSimple::Print(Option_t *option) const
   //   -*-*-*-*-*Print some global quantities for this histogram collection class *-*-*-*-*-*-*-*
   //             ===============================================
   //   printf( "TH1.Print Name  = %s, Entries= %d, Total sum= %g\n",GetName(),Int_t(fEntries),GetSumOfWeights());
-  printf( "Class.Print Name = %s, Total number of tracks= %d, Number of selected tracks= %d, MC EventPlaneAngle= %f\n",
+  printf( "Class.Print Name = %s, #tracks= %d, Number of RPs= %d, MC EventPlaneAngle= %f\n",
           GetName(),fNumberOfTracks, fNumberOfRPs, fMCReactionPlaneAngle );
 
   if (fTrackCollection)
@@ -604,8 +604,11 @@ void AliFlowEventSimple::TagRP( AliFlowTrackSimpleCuts* cuts )
   {
     AliFlowTrackSimple* track = static_cast<AliFlowTrackSimple*>(fTrackCollection->At(i));
     if (!track) continue;
-    if (cuts->PassesCuts(track)) track->SetForRPSelection();
-    fNumberOfRPs++;
+    if (cuts->PassesCuts(track)) 
+    {
+      track->SetForRPSelection();
+      fNumberOfRPs++;
+    }
   }
 }