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
update PUPPI based on DP note #10597
update PUPPI based on DP note #10597
Conversation
This supercedes #10404 |
A new Pull Request was created by @nhanvtran for CMSSW_7_5_X. update PUPPI based on DP note It involves the following packages: CommonTools/PileupAlgos @cmsbuild, @cvuosalo, @vadler, @monttj, @slava77 can you please review it and eventually sign? Thanks. |
@cmsbuild please test |
The tests are being triggered in jenkins. |
Comparison is ready There are some workflows for which there are errors in the baseline: |
ping |
re-indenting updated |
|
||
//std::cout << "pVtxId = " << pVtxId << ", and charge = " << itPF->charge() << ", and closestVtx = " << closestVtx << ", and id = " << pReco.id << std::endl; | ||
//std::cout << "charge = " << itPF->charge() << ", pDZ = " << pDZ << ", pVtxId = " << pVtxId << ", closestVtx = " << closestVtx << ", fromPV() = " << lPack->fromPV() << ", pReco.id = " << pReco.id << std::endl; | ||
// //std::cout << "pVtxId = " << pVtxId << ", and charge = " << itPF->charge() << ", and closestVtx = " << closestVtx << ", and id = " << pReco.id << std::endl; |
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.
are these debugs still really needed?
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.
removed
for ( size_t ipcnl = 0; ipcnl < puppiCandsNoLepPtrs.size(); ipcnl++){ | ||
if (puppiCandsNoLepPtrs[ipcnl] == pkrefPtr){ | ||
foundNoLep = true; | ||
puppiWeightNoLepVal = puppiCandsNoLepPtrs[ipcnl]->pt()/cand.pt(); // a hack for now, should use the value map |
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.
the previous code was picking pt from the puppiCandsNoLep, not from the source ptr.
If it matters functionally, you should probably have
// define outside the loop: auto const& puppiWeightNoLepV = puppiWeightNoLep.product();
puppiWeightNoLepVal = puppiWeightNoLepV[ipcnl].pt()/cand.pt();
Ok @slava77 updated |
@cmsbuild please test |
The tests are being triggered in jenkins. |
@cmsbuild please test |
The tests are being triggered in jenkins. |
+1
|
update PUPPI based on DP note
This is the companion PR to #10551