-
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
Backport of #30306, #31591, and #31973: NanoGen support in 10_6_X #31909
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
79c92f1
Add NanoGen configs
kdlong 6a9fd08
Fix issue with cmsDriver from cherry-pick
kdlong b11d496
Add genWeights table, fix dqm
kdlong bfbc678
Fixes to make backport fully consistent with master
kdlong 5627eb6
Fix bug in NanoGEN precision setting
kdlong ee389cc
Fix bug in NanoGEN precision setting
kdlong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
genWeightsTable = cms.EDProducer("GenWeightsTableProducer", | ||
genEvent = cms.InputTag("generator"), | ||
genLumiInfoHeader = cms.InputTag("generator"), | ||
lheInfo = cms.VInputTag(cms.InputTag("externalLHEProducer"), cms.InputTag("source")), | ||
preferredPDFs = cms.VPSet( # see https://lhapdf.hepforge.org/pdfsets.html | ||
cms.PSet( name = cms.string("PDF4LHC15_nnlo_30_pdfas"), lhaid = cms.uint32(91400) ), | ||
cms.PSet( name = cms.string("NNPDF31_nnlo_hessian_pdfas"), lhaid = cms.uint32(306000) ), | ||
cms.PSet( name = cms.string("NNPDF30_nlo_as_0118"), lhaid = cms.uint32(260000) ), # for some 92X samples. Note that the nominal weight, 260000, is not included in the LHE ... | ||
cms.PSet( name = cms.string("NNPDF30_lo_as_0130"), lhaid = cms.uint32(262000) ), # some MLM 80X samples have only this (e.g. /store/mc/RunIISummer16MiniAODv2/DYJetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/MINIAODSIM/PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6_ext1-v2/120000/02A210D6-F5C3-E611-B570-008CFA197BD4.root ) | ||
cms.PSet( name = cms.string("NNPDF30_nlo_nf_4_pdfas"), lhaid = cms.uint32(292000) ), # some FXFX 80X samples have only this (e.g. WWTo1L1Nu2Q, WWTo4Q) | ||
cms.PSet( name = cms.string("NNPDF30_nlo_nf_5_pdfas"), lhaid = cms.uint32(292200) ), # some FXFX 80X samples have only this (e.g. DYJetsToLL_Pt, WJetsToLNu_Pt, DYJetsToNuNu_Pt) | ||
), | ||
namedWeightIDs = cms.vstring(), | ||
namedWeightLabels = cms.vstring(), | ||
lheWeightPrecision = cms.int32(14), | ||
maxPdfWeights = cms.uint32(150), | ||
keepAllPSWeights = cms.bool(False), | ||
debug = cms.untracked.bool(False), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
import copy | ||
|
||
from PhysicsTools.NanoAOD.nanoDQM_cfi import nanoDQM | ||
from PhysicsTools.NanoAOD.nanoDQM_tools_cff import * | ||
from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer | ||
|
||
nanogenDQM = DQMEDAnalyzer("NanoAODDQM", | ||
vplots = cms.PSet(GenDressedLepton = nanoDQM.vplots.GenDressedLepton, | ||
GenIsolatedPhoton = nanoDQM.vplots.GenIsolatedPhoton, | ||
GenJet = nanoDQM.vplots.GenJet, | ||
GenJetAK8 = nanoDQM.vplots.GenJetAK8, | ||
GenMET = nanoDQM.vplots.GenMET, | ||
GenPart = nanoDQM.vplots.GenPart, | ||
GenVisTau = nanoDQM.vplots.GenVisTau, | ||
LHEPart = nanoDQM.vplots.LHEPart, | ||
LHEScaleWeight = nanoDQM.vplots.LHEScaleWeight, | ||
LHEPdfWeight = nanoDQM.vplots.LHEPdfWeight, | ||
PSWeight = nanoDQM.vplots.PSWeight, | ||
) | ||
) | ||
|
||
nanoDQMQTester = cms.EDAnalyzer("QualityTester", | ||
qtList = cms.untracked.FileInPath('PhysicsTools/NanoAOD/test/dqmQualityTests.xml'), | ||
prescaleFactor = cms.untracked.int32(1), | ||
testInEventloop = cms.untracked.bool(False), | ||
qtestOnEndLumi = cms.untracked.bool(False), | ||
verboseQT = cms.untracked.bool(True) | ||
) | ||
|
||
nanogenHarvest = cms.Sequence( nanoDQMQTester ) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
in master you were importing
from DQMServices.Core.DQMQualityTester import DQMQualityTester
any reason why not doing this here ?
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.
Seems that this refactor happened after 10_6_X, so I reverted back to the older setup here. Note that this follows nanoDQM.py in 10_6_X.