]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
from Salvatore
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Mar 2013 11:32:50 +0000 (11:32 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Mar 2013 11:32:50 +0000 (11:32 +0000)
PWGJE/EMCALJetTasks/AliEmcalJetTask.cxx
PWGJE/EMCALJetTasks/AliEmcalJetTask.h
PWGJE/macros/CreateTrackCutsPWGJE.C

index 48c397596bd29c52e81e5ba919176251efbbd725..7924e86a6c32e8aaa026767db1e9f79ffd1403d2 100644 (file)
@@ -34,8 +34,8 @@ AliEmcalJetTask::AliEmcalJetTask() :
   fCaloName("CaloClusters"),
   fJetsName("Jets"),
   fJetType(kNone),
-  fConstSel(kAllJets),
-  fMCConstSel(kAllJets),
+  fConstSel(0),
+  fMCConstSel(0),
   fMarkConst(kFALSE),
   fRadius(0.4),
   fMinJetTrackPt(0.15),
@@ -71,8 +71,8 @@ AliEmcalJetTask::AliEmcalJetTask(const char *name) :
   fCaloName("CaloClusters"),
   fJetsName("Jets"),
   fJetType(kAKT|kFullJet|kRX1Jet),
-  fConstSel(kAllJets),
-  fMCConstSel(kAllJets),
+  fConstSel(0),
+  fMCConstSel(0),
   fMarkConst(kFALSE),
   fRadius(0.4),
   fMinJetTrackPt(0.15),
@@ -196,33 +196,21 @@ void AliEmcalJetTask::FindJets()
        }
       }
       if (fIsMcPart || TMath::Abs(t->GetLabel()) > fMinMCLabel) {
-       if (fMCConstSel == kNone) {
-         AliDebug(2,Form("Skipping track %d because bit mask is 0.", iTracks));
+       if (t->TestBits(fMCConstSel) != (Int_t)fMCConstSel) {
+         AliDebug(2,Form("Skipping track %d because it does not match the bit mask (%d, %d)", iTracks, fMCConstSel, t->TestBits(TObject::kBitMask)));
          continue;
        }
-       if (fMCConstSel != kAllJets) {
-         if (t->TestBits(fMCConstSel) != (Int_t)fMCConstSel) {
-           AliDebug(2,Form("Skipping track %d because it does not match the bit mask (%d, %d)", iTracks, fMCConstSel, t->TestBits(TObject::kBitMask)));
-           continue;
-         }
-         else {
-           AliDebug(2,Form("Track %d matches the bit mask (%d, %d)", iTracks, fMCConstSel, t->TestBits(TObject::kBitMask)));
-         }
+       else {
+         AliDebug(2,Form("Track %d matches the bit mask (%d, %d)", iTracks, fMCConstSel, t->TestBits(TObject::kBitMask)));
        }
       }
       else {
-       if (fConstSel == kNone) {
-         AliDebug(2,Form("Skipping track %d because bit mask is 0.", iTracks));
+       if (t->TestBits(fConstSel) != (Int_t)fConstSel) {
+         AliDebug(2,Form("Skipping track %d because it does not match the bit mask (%d, %d)", iTracks, fConstSel, t->TestBits(TObject::kBitMask)));
          continue;
        }
-       if (fConstSel != kAllJets) {
-         if (t->TestBits(fConstSel) != (Int_t)fConstSel) {
-           AliDebug(2,Form("Skipping track %d because it does not match the bit mask (%d, %d)", iTracks, fConstSel, t->TestBits(TObject::kBitMask)));
-           continue;
-         }
-         else {
-           AliDebug(2,Form("Track %d matches the bit mask (%d, %d)", iTracks, fConstSel, t->TestBits(TObject::kBitMask)));         
-         }
+       else {
+         AliDebug(2,Form("Track %d matches the bit mask (%d, %d)", iTracks, fConstSel, t->TestBits(TObject::kBitMask)));           
        }
       }            
       if (t->Pt() < fMinJetTrackPt) 
@@ -255,33 +243,21 @@ void AliEmcalJetTask::FindJets()
          continue;
 
        if (c->GetLabel() > fMinMCLabel) {
-         if (fMCConstSel == kNone) {
-           AliDebug(2,Form("Skipping cluster %d because bit mask is 0.", iClus));
+         if (ep->TestBits(fMCConstSel) != (Int_t)fMCConstSel) {
+           AliDebug(2,Form("Skipping cluster %d because it does not match the bit mask (%d, %d)", iClus, fMCConstSel, ep->TestBits(TObject::kBitMask)));
            continue;
          }
-         if (fMCConstSel != kAllJets) {
-           if (ep->TestBits(fMCConstSel) != (Int_t)fMCConstSel) {
-             AliDebug(2,Form("Skipping cluster %d because it does not match the bit mask (%d, %d)", iClus, fMCConstSel, ep->TestBits(TObject::kBitMask)));
-             continue;
-           }
-           else {
-             AliDebug(2,Form("Cluster %d matches the bit mask (%d, %d)", iClus, fMCConstSel, ep->TestBits(TObject::kBitMask)));
-           }
+         else {
+           AliDebug(2,Form("Cluster %d matches the bit mask (%d, %d)", iClus, fMCConstSel, ep->TestBits(TObject::kBitMask)));
          }
        }
        else {
-         if (fConstSel == kNone) {
-           AliDebug(2,Form("Skipping cluster %d because bit mask is 0.", iClus));
+         if (ep->TestBits(fConstSel) != (Int_t)fConstSel) {
+           AliDebug(2,Form("Skipping cluster %d because it does not match the bit mask (%d, %d)", iClus, fConstSel, ep->TestBits(TObject::kBitMask)));
            continue;
          }
-         if (fConstSel != kAllJets) {
-           if (ep->TestBits(fConstSel) != (Int_t)fConstSel) {
-             AliDebug(2,Form("Skipping cluster %d because it does not match the bit mask (%d, %d)", iClus, fConstSel, ep->TestBits(TObject::kBitMask)));
-             continue;
-           }
-           else {
-             AliDebug(2,Form("Cluster %d matches the bit mask (%d, %d)", iClus, fConstSel, ep->TestBits(TObject::kBitMask)));      
-           }
+         else {
+           AliDebug(2,Form("Cluster %d matches the bit mask (%d, %d)", iClus, fConstSel, ep->TestBits(TObject::kBitMask)));        
          }
        }
 
@@ -297,33 +273,21 @@ void AliEmcalJetTask::FindJets()
          continue;
 
        if (c->GetLabel() > fMinMCLabel) {
-         if (fMCConstSel == kNone) {
-           AliDebug(2,Form("Skipping cluster %d because bit mask is 0.", iClus));
+         if (c->TestBits(fMCConstSel) != (Int_t)fMCConstSel) {
+           AliDebug(2,Form("Skipping cluster %d because it does not match the bit mask (%d, %d)", iClus, fMCConstSel, c->TestBits(TObject::kBitMask)));
            continue;
          }
-         if (fMCConstSel != kAllJets) {
-           if (c->TestBits(fMCConstSel) != (Int_t)fMCConstSel) {
-             AliDebug(2,Form("Skipping cluster %d because it does not match the bit mask (%d, %d)", iClus, fMCConstSel, c->TestBits(TObject::kBitMask)));
-             continue;
-           }
-           else {
-             AliDebug(2,Form("Cluster %d matches the bit mask (%d, %d)", iClus, fMCConstSel, c->TestBits(TObject::kBitMask)));
-           }
+         else {
+           AliDebug(2,Form("Cluster %d matches the bit mask (%d, %d)", iClus, fMCConstSel, c->TestBits(TObject::kBitMask)));
          }
        }
        else {
-         if (fConstSel == kNone) {
-           AliDebug(2,Form("Skipping cluster %d because bit mask is 0.", iClus));
+         if (c->TestBits(fConstSel) != (Int_t)fConstSel) {
+           AliDebug(2,Form("Skipping cluster %d because it does not match the bit mask (%d, %d)", iClus, fConstSel, c->TestBits(TObject::kBitMask)));
            continue;
          }
-         if (fConstSel != kAllJets) {
-           if (c->TestBits(fConstSel) != (Int_t)fConstSel) {
-             AliDebug(2,Form("Skipping cluster %d because it does not match the bit mask (%d, %d)", iClus, fConstSel, c->TestBits(TObject::kBitMask)));
-             continue;
-           }
-           else {
-             AliDebug(2,Form("Cluster %d matches the bit mask (%d, %d)", iClus, fConstSel, c->TestBits(TObject::kBitMask)));       
-           }
+         else {
+           AliDebug(2,Form("Cluster %d matches the bit mask (%d, %d)", iClus, fConstSel, c->TestBits(TObject::kBitMask)));         
          }
        }
 
index ff3525821bc6630d7fefe926d1a8bb924b8650ac..d5eee5e08d599deff55a81476b388bf04bbc6325 100644 (file)
@@ -28,8 +28,7 @@ class AliEmcalJetTask : public AliAnalysisTaskSE {
     kR040Jet=1<<7,
     kRX1Jet=1<<8,  // user defined radii, use SetRadius(Double_t)
     kRX2Jet=1<<9,
-    kRX3Jet=1<<10,
-    kAllJets=kKT|kAKT|kFullJet|kChargedJet|kNeutralJet|kR020Jet|kR030Jet|kR040Jet|kRX1Jet|kRX2Jet|kRX3Jet
+    kRX3Jet=1<<10
   };
 
 
index c4d6576a58041ca9b9e3b07286dd7d797b92eb27..3addc8e98341eaa62f01ecf8a34283273d00c6d8 100644 (file)
@@ -242,9 +242,6 @@ AliESDtrackCuts *CreateTrackCutsPWGJE(Int_t cutMode) {
     trackCuts->SetClusterRequirementITS(AliESDtrackCuts::kSPD, AliESDtrackCuts::kNone);
 
     trackCuts->SetMaxFractionSharedTPCClusters(0.4);
-
-    trackCuts->SetEtaRange(-0.9,0.9);
-    trackCuts->SetPtRange(0.15, 1E+15.);
  
     tag = "Global tracks 2011 with NCrossedRows cut";