]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG/CaloTrackCorrBase/AliIsolationCut.cxx
bug-fix: rotation of sub-leading jet in di-jet
[u/mrichter/AliRoot.git] / PWG / CaloTrackCorrBase / AliIsolationCut.cxx
index 403e64d81fdcc05d9414ab8cd80842c5bdf92860..c4dc8182cdf1f67811107be9a1e11177cfd798f4 100755 (executable)
@@ -410,7 +410,7 @@ void  AliIsolationCut::MakeIsolationCut(TObjArray * plCTS,
                                         TString aodArrayRefName,
                                         Int_t   & n, 
                                         Int_t   & nfrac, 
-                                        Float_t & coneptsum,  
+                                        Float_t & coneptsum, Float_t & ptLead,
                                         Bool_t  & isolated) const
 {
   //Search in cone around a candidate particle if it is isolated 
@@ -419,7 +419,6 @@ void  AliIsolationCut::MakeIsolationCut(TObjArray * plCTS,
   if(phiC<0) phiC+=TMath::TwoPi();
   Float_t etaC  = pCandidate->Eta() ;
   
-  Float_t ptLead = -100. ;
   Float_t pt     = -100. ;
   Float_t eta    = -100. ;
   Float_t phi    = -100. ;
@@ -504,25 +503,25 @@ void  AliIsolationCut::MakeIsolationCut(TObjArray * plCTS,
       // Only loop the particle at the same side of candidate
       if(TMath::Abs(phi-phiC) > TMath::PiOver2()) continue ;
       
-      // If at the same side has particle larger than candidate, 
-      // then candidate can not be the leading, skip such events
-      if(pt > ptC)
-      {
-        n         = -1;
-        nfrac     = -1;
-        coneptsumTrack = -1;
-        isolated  = kFALSE;
-        
-        pCandidate->SetLeadingParticle(kFALSE);
-        
-        if(bFillAOD && reftracks) 
-        {
-          reftracks->Clear(); 
-          delete reftracks;
-        }
-        
-        return ;
-      }
+//      // If at the same side has particle larger than candidate, 
+//      // then candidate can not be the leading, skip such events
+//      if(pt > ptC)
+//      {
+//        n         = -1;
+//        nfrac     = -1;
+//        coneptsumTrack = -1;
+//        isolated  = kFALSE;
+//        
+//        pCandidate->SetLeadingParticle(kFALSE);
+//        
+//        if(bFillAOD && reftracks) 
+//        {
+//          reftracks->Clear(); 
+//          delete reftracks;
+//        }
+//        
+//        return ;
+//      }
       
       // // Check if there is any particle inside cone with pt larger than  fPtThreshold
       // Check if the leading particule inside the cone has a ptLead larger than fPtThreshold
@@ -646,33 +645,33 @@ void  AliIsolationCut::MakeIsolationCut(TObjArray * plCTS,
       // Only loop the particle at the same side of candidate
       if(TMath::Abs(phi-phiC)>TMath::PiOver2()) continue ;
       
-      // If at the same side has particle larger than candidate, 
-      // then candidate can not be the leading, skip such events
-      if(pt > ptC)
-      {
-        n         = -1;
-        nfrac     = -1;
-        coneptsumCluster = -1;
-        isolated  = kFALSE;
-        
-        pCandidate->SetLeadingParticle(kFALSE);
-        
-        if(bFillAOD)
-        {
-          if(reftracks)
-          {  
-            reftracks  ->Clear();
-            delete reftracks;
-          }
-          
-          if(refclusters)
-          {
-            refclusters->Clear(); 
-            delete refclusters;
-          }
-        }
-        return ;
-      }
+//      // If at the same side has particle larger than candidate,
+//      // then candidate can not be the leading, skip such events
+//      if(pt > ptC)
+//      {
+//        n         = -1;
+//        nfrac     = -1;
+//        coneptsumCluster = -1;
+//        isolated  = kFALSE;
+//        
+//        pCandidate->SetLeadingParticle(kFALSE);
+//        
+//        if(bFillAOD)
+//        {
+//          if(reftracks)
+//          {  
+//            reftracks  ->Clear();
+//            delete reftracks;
+//          }
+//          
+//          if(refclusters)
+//          {
+//            refclusters->Clear(); 
+//            delete refclusters;
+//          }
+//        }
+//        return ;
+//      }
       
       //Check if there is any particle inside cone with pt larger than  fPtThreshold