Fork me on GitHub

Ticket #46: delphes-isolation.patch

File delphes-isolation.patch, 720 bytes (added by Sourav Mandal, 12 years ago)
  • src/SmearUtil.cc

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