]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
bug fix
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Oct 2012 04:47:51 +0000 (04:47 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Oct 2012 04:47:51 +0000 (04:47 +0000)
PWGJE/EMCALJetTasks/AliEmcalJetTask.cxx

index 212af95fbca1f677cb4eba6671dd8cbe589072ed..e774cc90dbc8da64082c401590433ac1950d1ff8 100644 (file)
@@ -160,8 +160,8 @@ void AliEmcalJetTask::FindJets()
         continue;
       Double_t eta = t->Eta();
       Double_t phi = t->Phi();
-      if ((eta<fEtaMin) && (eta>fEtaMax) &&
-          (phi<fPhiMin) && (phi<fPhiMax))
+      if ((eta<fEtaMin) || (eta>fEtaMax) ||
+          (phi<fPhiMin) || (phi>fPhiMax))
         continue;
 
       // offset of 100 for consistency with cluster ids
@@ -205,8 +205,8 @@ void AliEmcalJetTask::FindJets()
        continue;
       if (cPt < fMinJetClusPt) 
        continue;
-      if ((cEta<fEtaMin) && (cEta>fEtaMax) &&
-         (cPhi<fPhiMin) && (cPhi<fPhiMax))
+      if ((cEta<fEtaMin) || (cEta>fEtaMax) ||
+         (cPhi<fPhiMin) || (cPhi>fPhiMax))
        continue;
       // offset of 100 to skip ghost particles uid = -1
       fjw.AddInputVector(cPx, cPy, cPz, TMath::Sqrt(cPx*cPx+cPy*cPy+cPz*cPz), -iClus - 100);