1021 |
|
// |
1022 |
|
else if (abs(pf->PFType()) == PFCandidate::eGamma) { |
1023 |
|
// KH, add to sync |
1024 |
< |
if( pf->Pt() > 0.5 ) |
1024 |
> |
if( pf->Pt() > 0.5 && dr > 0.01) |
1025 |
|
fGammaIso += pf->Pt(); |
1026 |
|
} |
1027 |
|
|
1029 |
|
// Other Neutrals |
1030 |
|
// |
1031 |
|
else { |
1032 |
< |
if( pf->Pt() > 0.5 ) |
1032 |
> |
|
1033 |
> |
if( pf->Pt() > 0.5 && dr > 0.01) |
1034 |
|
fNeutralHadronIso += pf->Pt(); |
1035 |
|
} |
1036 |
|
} |
1066 |
|
|
1067 |
|
double pfIso = fChargedIso + fmax(0.0,(fGammaIso + fNeutralHadronIso |
1068 |
|
-rho*muT.MuonEffectiveArea(muT.kMuGammaAndNeutralHadronIso04, |
1069 |
< |
tmpvec.Eta(),EffectiveAreaVersion))); |
1070 |
< |
//mu->Eta(),EffectiveAreaVersion))); |
1069 |
> |
//tmpvec.Eta(),EffectiveAreaVersion))); |
1070 |
> |
mu->Eta(),EffectiveAreaVersion))); |
1071 |
|
gChargedIso = fChargedIso; |
1072 |
|
gGammaIso = fGammaIso; |
1073 |
|
gNeutralIso = fNeutralHadronIso; |
1286 |
|
|
1287 |
|
bool pass = false; |
1288 |
|
if( (pfIso/mu->Pt()) < MUON_REFERENCE_PFISO_CUT ) pass = true; |
1289 |
< |
|
1289 |
> |
|
1290 |
|
if( pass ) { |
1291 |
|
status.orStatus(SelectionStatus::LOOSEISO); |
1292 |
|
status.orStatus(SelectionStatus::TIGHTISO); |
2298 |
|
if (fabs(ele->SCluster()->Eta()) > 1.479) { |
2299 |
|
if (mithep::MathUtils::DeltaR(ele->Phi(),ele->Eta(), pf->Phi(), pf->Eta()) < 0.08) continue; |
2300 |
|
} |
2301 |
+ |
|
2302 |
+ |
assert(ele->HasSuperCluster()); |
2303 |
+ |
if(ele->GsfTrk()->NExpectedHitsInner()>0 && pf->MvaGamma() > 0.99 && pf->HasSCluster() && ele->SCluster() == pf->SCluster()) continue; |
2304 |
+ |
|
2305 |
+ |
|
2306 |
|
if( ctrl.debug) cout << "gamma:: " << pf->Pt() << " " |
2307 |
|
<< dr << endl; |
2308 |
|
// KH, add to sync |
2897 |
|
<< "\tfNeutralHadronIso: " << fNeutralHadronIso |
2898 |
|
<< "\tfpfPU: " << fpfPU |
2899 |
|
<< endl; |
2900 |
< |
} |
2900 |
> |
} |
2901 |
> |
|
2902 |
|
double pfIso = fChargedIso + fGammaIso + fNeutralHadronIso + fpfPU; |
2903 |
|
return pfIso/photon->Pt(); |
2904 |
|
} |