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
Added updateJetCollection() function to jetTools.py and related changes to the PATJetUpdater and the pat::Jet class (76X) #12890
Changes from all commits
02a81ad
672af81
b8e8934
e3b98e2
2e95cd6
5f36e28
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
patJetsUpdated = cms.EDProducer("PATJetUpdater", | ||
updatedPatJets = cms.EDProducer("PATJetUpdater", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this change of name without changing of content, is also not necessary... and introduce troubles to physics analysis using this module. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In #12863 (diff) it was mentioned that this is a transient collection, supposedly not visible to typical analysis use cases. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @slava77 well, the patJetsUpdated module was actually the standard recipe in JEC twiki page for 763: |
||
# input | ||
jetSource = cms.InputTag("slimmedJets"), | ||
# add user data | ||
|
@@ -27,7 +27,16 @@ | |
), | ||
# jet energy corrections | ||
addJetCorrFactors = cms.bool(True), | ||
jetCorrFactorsSource = cms.VInputTag(cms.InputTag("patJetCorrFactorsUpdated") ), | ||
jetCorrFactorsSource = cms.VInputTag(cms.InputTag("updatedPatJetCorrFactors") ), | ||
# btag information | ||
addBTagInfo = cms.bool(True), ## master switch | ||
addDiscriminators = cms.bool(True), ## addition of btag discriminators | ||
discriminatorSources = cms.VInputTag(), | ||
# clone tag infos ATTENTION: these take lots of space! | ||
# usually the discriminators from the default algos | ||
# are sufficient | ||
addTagInfos = cms.bool(False), | ||
tagInfoSources = cms.VInputTag() | ||
) | ||
|
||
|
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.
why this name is changed? which doesn't seem to be necessary since the contents of this module is not changed.. This change of module name will require all physics analyses that need to re-applying the new 76x JEC using this module to do some unnecessary change of their analysis codes.
For example, for our H->ZZ->4l analysis framework, the following line need to be changed if we want to change from 763patch2 to 764:
https://github.com/CJLST/ZZAnalysis/blob/miniAOD_76X/AnalysisStep/test/MasterPy/ZZ4lAnalysis.py#L1007
but this doesn't seem to be necessary...