]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
change bit checking const logic
authormverweij <marta.verweij@cern.ch>
Mon, 8 Dec 2014 14:34:34 +0000 (15:34 +0100)
committermverweij <marta.verweij@cern.ch>
Mon, 8 Dec 2014 14:34:42 +0000 (15:34 +0100)
PWGJE/EMCALJetTasks/UserTasks/AliAnalysisTaskEmcalHJetMass.cxx

index 3a9e3fe1167ab9119323c7597e0800cd16504de4..bd5dfd70ac312784d44f86e43040bcdaee2b1961 100644 (file)
@@ -356,7 +356,9 @@ namespace EmcalHJetMassAnalysis {
     }
   
     if(fMinFractionShared>0. && fraction>fMinFractionShared) {
-      if(vp->TestBits(fEmbConstSel) == (Int_t)fEmbConstSel) {
+      if(vp->TestBits(fEmbConstSel) != (Int_t)fEmbConstSel) 
+        AliDebug(11,Form("Skipping track with pT=%f because it does not match the bit mask (%d, %d)", vp->Pt(), fEmbConstSel, vp->TestBits(fEmbConstSel)));
+      else {
         fh3PtJet1VsMassVsHPtAllSelMatch[fCentBin]->Fill(ptJet,mJet,pt);
         fh3PtJet1VsRatVsHPtAllSelMatch[fCentBin]->Fill(ptJet,rat,pt);
       }
@@ -369,7 +371,9 @@ namespace EmcalHJetMassAnalysis {
     fh3PtJet1VsRatVsHPtTagged[fCentBin]->Fill(ptJet,rat,pt);
 
     if(fMinFractionShared>0. && fraction>fMinFractionShared) {
-      if(vp->TestBits(fEmbConstSel) == (Int_t)fEmbConstSel) {
+      if(vp->TestBits(fEmbConstSel) != (Int_t)fEmbConstSel) 
+        AliDebug(11,Form("Skipping track with pT=%f because it does not match the bit mask (%d, %d)", vp->Pt(), fEmbConstSel, vp->TestBits(fEmbConstSel)));
+      else {
         fh3PtJet1VsMassVsHPtTaggedMatch[fCentBin]->Fill(ptJet,mJet,pt);
         fh3PtJet1VsRatVsHPtTaggedMatch[fCentBin]->Fill(ptJet,rat,pt);
       }