- add a little faster cut execution
authorjbook <jbook@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Feb 2013 14:19:07 +0000 (14:19 +0000)
committerjbook <jbook@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Feb 2013 14:19:07 +0000 (14:19 +0000)
PWGDQ/dielectron/AliDielectronVarCuts.cxx

index 10f061f..54ff0cd 100644 (file)
@@ -109,6 +109,7 @@ Bool_t AliDielectronVarCuts::IsSelected(TObject* track)
     Int_t cut=fActiveCuts[iCut];
     SETBIT(fSelectedCutsMask,iCut);
     if ( ((values[cut]<fCutMin[iCut]) || (values[cut]>fCutMax[iCut]))^fCutExclude[iCut] ) CLRBIT(fSelectedCutsMask,iCut);
+    if ( fCutType==kAll && !TESTBIT(fSelectedCutsMask,iCut) ) return kFALSE; // option to (minor) speed improvement
   }
   
   Bool_t isSelected=(fSelectedCutsMask==fActiveCutsMask);