-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added code to set isolated Photon puppi weight to 1 for loose id photons above 10 GeV #13157
Conversation
A new Pull Request was created by @violatingcp (Philip Harris) for CMSSW_8_0_X. It involves the following packages: CommonTools/PileupAlgos @cvuosalo, @monttj, @cmsbuild, @slava77, @vadler, @davidlange6 can you please review it and eventually sign? Thanks. cms-bot commands are list here #13028 |
return false; | ||
} | ||
// ------------------------------------------------------------------------------------------ | ||
void PuppiPhoton::beginJob() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove all empty methods (from cc and from the header file).
There is more maintenance burden than benefits from potential future use of these placeholders.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure what you mean, this method is used in a number places in the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind, I understand
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@cmsbuild please test |
The tests are being triggered in jenkins. |
-1 DAS Error you can see the results of the tests here: |
if(!usePFRef_) continue; | ||
try{ | ||
const pat::Photon *pPho = dynamic_cast<const pat::Photon*>(&(*itPho)); | ||
if(pPho != 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nullptr instead of 0 is preferred (minor though)
static analysis of the previous version |
@cmsbuild please test |
The tests are being triggered in jenkins. |
+1 for #13157 759396d
|
Added code to set isolated Photon puppi weight to 1 for loose id photons above 10 GeV
Code which sets the weight of Loose id Isolated photons to weight 1. This fixes puppet behavior in gamma+jets events where isolated high pT photons get weight 0. The code works by setting the weight weight of all associated pfcandidates to the designated puppiweight (1, but its configurable). This will allow for improved electron and photon isolation since an improved footprint removal can be done.
An example of the inteded use in puppet is shown in the test config.
@nhanvtran @hsatoshi