Set values in fIsSelectedCuts and fIsSelectedPID members (Alessandro)
authorprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 8 Oct 2012 08:59:43 +0000 (08:59 +0000)
committerprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 8 Oct 2012 08:59:43 +0000 (08:59 +0000)
PWGHF/vertexingHF/AliRDHFCutsDStartoKpipi.cxx

index ef6e9ba..26f1fb8 100644 (file)
@@ -261,6 +261,10 @@ Int_t AliRDHFCutsDStartoKpipi::IsSelected(TObject* obj,Int_t selectionLevel) {
   //
   // Apply selection for D*.
   //
+
+  fIsSelectedCuts=0;
+  fIsSelectedPID=0;
+
   if(!fCutsRD){
     cout<<"Cut matrice not inizialized. Exit..."<<endl;
     return 0;
@@ -324,11 +328,14 @@ Int_t AliRDHFCutsDStartoKpipi::IsSelected(TObject* obj,Int_t selectionLevel) {
     
   }
 
+  fIsSelectedCuts = returnvalue;
+
   // selection on PID 
   if(selectionLevel==AliRDHFCuts::kAll || 
      selectionLevel==AliRDHFCuts::kCandidate ||
      selectionLevel==AliRDHFCuts::kPID) {
     returnvaluePID = IsSelectedPID(d);
+    fIsSelectedPID = returnvaluePID;
   }
   if(returnvaluePID!=3) returnvalue =0;