-
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
[RFC] [NANO] Implement a check on the number of scale variation weights in GenWeightsTableProducer #46573
base: master
Are you sure you want to change the base?
Conversation
cms-bot internal usage |
FYI -- @cms-sw/generators-l2 @cms-sw/pdmv-l2 @cms-sw/ppd-l2 |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-46573/42462 |
A new Pull Request was created by @hqucms 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 |
please test |
-1 Failed Tests: RelVals-INPUT
RelVals-INPUT
Expand to see more relval errors ...
Comparison SummarySummary:
NANO Comparison SummarySummary:
Nano size comparison Summary:
|
the configuration is sample dependent, how often will it have to be different than 9 ? |
assign ppd |
Maybe @cms-sw/generators-l2 can comment on that. |
On the PdmV front: https://sqian.web.cern.ch/sqian/requests_list.html here is a list of request that is in “submitted” status and used MadGraph_aMCatNLO as generator and is a wmLHE request that will save those weights. if @cms-sw/generators-l2 are ok I will rewind them, revalidate and resubmit |
go ahead with resetting @DickyChant |
with regards to sample dependent configuration, we will have to look at this extremely carefully, as to avoid unmanageable overhead. |
instead of throwing an exception, we could fill the table with well identifiable values (0?) that can be skipped at analysis. |
PR description:
This PR implements a possible mitigation of the LHEScaleSumw issue, as discussed in the PPD general meeting today. Feedback is welcome!
Basically a configurable option
allowedNumScaleWeights
is introduced toGenWeightsTableProducer
, which can take a list of numbers, and the number of scale variation weights identified by parsing theinitrwgt
header ofLHERunInfoProduct
must match one of the values provided inallowedNumScaleWeights
, otherwise aLogicError
is thrown. The default value ofallowedNumScaleWeights
is set to 9 as it is the expected number of scale variations in the standard setup. An empty list forallowedNumScaleWeights
means any number of scale variation weights is allowed and no check is performed.This PR also fixes the parsing of certain MadGraph headers where it fails to pick up the central weight, as in some cases the central weight is outside any weight group. This has led to some NanoAOD samples containing only 8 (instead of 9) scale weights.
Related issue: #43784
PR validation:
Passes local tests with:
normal
MadGraph file with the expected, 9 scale weights:/store/mc/Run3Summer22EEMiniAODv4/DYGto2LG-1Jets_MLL-50_PTG-10to50_TuneCP5_13p6TeV_amcatnloFXFX-pythia8/MINIAODSIM/130X_mcRun3_2022_realistic_postEE_v6-v2/30000/0fd00136-3752-4096-8e82-4b6fcd656da4.root
initrwgt
header :/store/mc/Run3Summer22EEMiniAODv4/DYGto2LG-1Jets_MLL-50_PTG-10to50_TuneCP5_13p6TeV_amcatnloFXFX-pythia8/MINIAODSIM/130X_mcRun3_2022_realistic_postEE_v6-v2/40000/c22ada93-447e-4db9-bee9-fcb3ab3e7fa9.root
/store/mc/RunIISummer20UL16MiniAODAPVv2/TTZ-ZToBB-TTTo2L_TuneCP5_13TeV-amcatnlo-pythia8/MINIAODSIM/106X_mcRun2_asymptotic_preVFP_v11-v2/2560000/02890624-0027-E345-880C-C8372B42C942.root