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
Add isolated charged hadron flag to RECO+AOD #18324
Conversation
A new Pull Request was created by @ahinzmann for master. It involves the following packages: RecoParticleFlow/Configuration @perrotta, @cmsbuild, @slava77, @davidlange6 can you please review it and eventually sign? Thanks. cms-bot commands are listed here #13028 |
@ahinzmann : is this supposed to replace #18308 ? |
please test |
The tests are being triggered in jenkins. |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
Pull request #18324 was updated. @perrotta, @cmsbuild, @slava77, @davidlange6 can you please check and sign again. |
@cmsbuild please test |
// get a view of our Candidates via the base candidates | ||
typedef edm::View<reco::PFCandidate> PFCandidateView; | ||
edm::Handle<PFCandidateView> Candidates; | ||
evt.getByToken(Candidates_token, Candidates); |
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.
start local variables and data members with lower case letter. Capitalization is reserved for class names.
|
||
std::vector<bool> values; | ||
|
||
for( PFCandidateView::const_iterator c = Candidates->begin(); c!=Candidates->end(); ++c) { |
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.
for range loop seems more appropriate for (auto cons& c : *candidates) {
if( theElements.empty() ) continue; | ||
const reco::PFBlockRef blockRef = theElements[0].first; | ||
const edm::OwnVector<reco::PFBlockElement>& elements = blockRef->elements(); | ||
for(unsigned int iEle=0; iEle<elements.size(); iEle++) { // Find the tracks in the block |
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.
similarly
for (auto const& ele : elements){
...
Pull request #18324 was updated. @perrotta, @cmsbuild, @slava77, @davidlange6 can you please check and sign again. |
please test |
The tests are being triggered in jenkins. |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
+1
|
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @Muzaffar, @davidlange6, @smuzaffar |
+1 |
Followup of #18308
This PR adds a valueMap "chargedHadronPFTrackIsolation" for the PFCandisdates to RECO+AOD.
Charged hadrons with track pT > 1 GeV and rawCaloEnergy > 0.5 GeV are tagged on RECO.
With isolated charged hadrons, calorimeter response can be measured in data and simulation with fine granularity, enabling PF hadron calibration at AOD level.
runTheMatrix -l limited works.
It was checked that the variables in RECO+AOD are filled correctly with reasonable values.
Size with/without this change based on workflow 10024.0_TTbar_13+TTbar_13TeV_TuneCUETP8M1_2017_GenSimFull+DigiFull_2017+RecoFull_2017+ALCAFull_2017+HARVESTFull_2017 is summarized below:
New collection in RECO+AOD:
booledmValueMap_chargedHadronPFTrackIsolation__RECO. 677.8 278.7