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
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. ;
// 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
// 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