diff -urN Delphes_V_2.0.2/src/SmearUtil.cc Delphes_V_2.0.2_isolation/src/SmearUtil.cc
old
|
new
|
|
1439 | 1439 | if( |
1440 | 1440 | (genDeltaR==0) // rejets the track of the particle itself |
1441 | 1441 | ) continue ; |
1442 | | deltar=genDeltaR; // finds the closest track |
| 1442 | if (genDeltaR < deltar) deltar=genDeltaR; // finds the closest track |
1443 | 1443 | |
1444 | 1444 | // as long as (genDeltaR==0) is put above, the particle itself is not taken into account |
1445 | 1445 | if( genDeltaR < ISOL_trk_Cone && tracks[i].PT>ISOL_trk_PT) ptiso += tracks[i].PT; // dR cut on tracks |