Fork me on GitHub

Ticket #46: delphes-ptiso.patch

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

    diff -urN Delphes_V_2.0.0/src/SmearUtil.cc Delphes_V_2.0.0_ptiso/src/SmearUtil.cc
    old new  
    14371437       if(tracks[i].PT < pt_second_track) continue; // ptcut on tracks
    14381438       float genDeltaR = DeltaR(part.Phi(),part.Eta(),tracks[i].Phi,tracks[i].Eta);
    14391439         if(
    1440              (genDeltaR > deltar) ||
     1440             //(genDeltaR > deltar) ||
    14411441             (genDeltaR==0)  // rejets the track of the particle itself
    14421442           ) continue ;
    14431443           deltar=genDeltaR;    // finds the closest track