-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #977 from vadler/62X-metUncertaintiesIntegrationTest
62 x met uncertainties integration test
- Loading branch information
Showing
3 changed files
with
159 additions
and
115 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
PhysicsTools/PatAlgos/test/patTuple_metUncertainties_cfg.py
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,42 @@ | ||
## import skeleton process | ||
from PhysicsTools.PatAlgos.patTemplate_cfg import * | ||
## switch to uncheduled mode | ||
process.options.allowUnscheduled = cms.untracked.bool(True) | ||
|
||
process.load("PhysicsTools.PatAlgos.producersLayer1.patCandidates_cff") | ||
process.load("PhysicsTools.PatAlgos.selectionLayer1.selectedPatCandidates_cff") | ||
process.load("PhysicsTools.PatUtils.patPFMETCorrections_cff") | ||
|
||
from PhysicsTools.PatAlgos.tools.jetTools import switchJetCollection | ||
switchJetCollection(process,cms.InputTag('ak5PFJets'), | ||
jetCorrections = ('AK5PF', ['L1FastJet', 'L2Relative', 'L3Absolute'], '') | ||
) | ||
|
||
## let it run | ||
process.p = cms.Path( | ||
process.selectedPatCandidates | ||
) | ||
|
||
# apply type I/type I + II PFMEt corrections to pat::MET object | ||
# and estimate systematic uncertainties on MET | ||
from PhysicsTools.PatUtils.tools.metUncertaintyTools import runMEtUncertainties | ||
runMEtUncertainties(process) | ||
|
||
## ------------------------------------------------------ | ||
# In addition you usually want to change the following | ||
# parameters: | ||
## ------------------------------------------------------ | ||
# | ||
# process.GlobalTag.globaltag = ... ## (according to https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions) | ||
# ## | ||
## switch to RECO input | ||
from PhysicsTools.PatAlgos.patInputFiles_cff import filesRelValProdTTbarAODSIM | ||
process.source.fileNames = filesRelValProdTTbarAODSIM | ||
# ## | ||
process.maxEvents.input = 10 | ||
# ## | ||
# process.out.outputCommands = [ ... ] ## (e.g. taken from PhysicsTools/PatAlgos/python/patEventContent_cff.py) | ||
# ## | ||
process.out.fileName = 'patTuple_metUncertainties.root' | ||
# ## | ||
# process.options.wantSummary = False ## (to suppress the long output at the end of the job) |
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
Oops, something went wrong.