-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 Mother Indices to LHEPart #47075
base: master
Are you sure you want to change the base?
Add Mother Indices to LHEPart #47075
Conversation
cms-bot internal usage |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-47075/43246
|
A new Pull Request was created by @pianonick411 for master. It involves the following packages:
@cmsbuild, @ftorrresd, @hqucms can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
enable nano |
@@ -66,11 +66,21 @@ class LHETablesProducer : public edm::global::EDProducer<> { | |||
std::vector<int> vals_pid; | |||
std::vector<int> vals_status; | |||
std::vector<int> vals_spin; | |||
std::vector<Short_t> vals_firstMotherIdx; | |||
std::vector<Short_t> vals_lastMotherIdx; |
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.
Better to use int16_t
instead of Short_t
to be more explicit about the type.
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.
outPart->addColumn<Short_t>( | ||
"firstMotherIdx", vals_firstMotherIdx, "Index of this particle's first mother in the LHEPart collection"); | ||
outPart->addColumn<Short_t>( | ||
"lastMotherIdx", vals_lastMotherIdx, "Index of this particle's last mother in the LHEPart collection"); |
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.
Also here -- better to use int16_t
instead of Short_t
.
please test |
+1 Size: This PR adds an extra 40KB to repository Comparison SummarySummary:
NANO Comparison SummarySummary:
Nano size comparison Summary:
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-47075/43266
|
Pull request #47075 was updated. @cmsbuild, @ftorrresd, @hqucms can you please check and sign again. |
PR description:
The indices of a particle's mother are not currently stored in the LHEPart collection.
This PR would add two lists of indices to the LHEPart collection:
The ability to track an LHE particle's ancestry is necessary for performing matrix-element calculations as done in HIG-19-009 and HIG-21-013 for the purposes of reweighting. Future Higgs property measurements in H -> 4l and other channels will require this additional information.
I have discussed the code of this PR with the following members of the HZZ group: Nicola Amapane (@namapane), and Jeffrey Davis (@jdavis36).
PR validation:
The code was tested on a sample of ZH, (H -->ZZ-->4l) events from /ZHto2Zto4L_M125_TuneCP5_13p6TeV_powheg2-minlo-HZJ-JHUGenV752-pythia8/Run3Summer22MiniAODv4-130X_mcRun3_2022_realistic_v5-v2/MINIAODSIM in CMSSW_13_3_3.
A ZH sample was chosen so that the LHE history was sufficiently complex.
It was verified that the indices stored in the output nanoAOD file correspond to the same particle in the input miniAOD.
According to the size report, each of the 2 new variables adds 0.1 b/item; in this sample there are in average 14 items/evt, so the total size increase is be 2.8 b/evt, which is a very small addition.