Ticket #46: delphes-ptiso.patch
File delphes-ptiso.patch, 661 bytes (added by , 13 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 1437 1437 if(tracks[i].PT < pt_second_track) continue; // ptcut on tracks 1438 1438 float genDeltaR = DeltaR(part.Phi(),part.Eta(),tracks[i].Phi,tracks[i].Eta); 1439 1439 if( 1440 (genDeltaR > deltar) ||1440 //(genDeltaR > deltar) || 1441 1441 (genDeltaR==0) // rejets the track of the particle itself 1442 1442 ) continue ; 1443 1443 deltar=genDeltaR; // finds the closest track