Skip to content

Commit

Permalink
Merge pull request #30 from gpetruc/SlimCMGTuple-CMG_PAT_V5_18_from-C…
Browse files Browse the repository at this point in the history
…MSSW_5_3_14

By default, make slim CMG Tuple
  • Loading branch information
gpetruc committed Mar 11, 2014
2 parents 8509ef6 + dada30b commit 7c5f0d6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
16 changes: 10 additions & 6 deletions CMGTools/Common/prod/PATCMG_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,16 @@
)

process.outpath += process.outcmg
# you can uncomment this below to test the 16-bit-packed cmgCandidates
# process.outcmg.outputCommands.append('keep cmgPackedCandidates_cmgCandidates_*_*')
# process.outcmg.outputCommands.append('drop cmgCandidates_cmgCandidates_*_*')



# These commands below will select the 'light' version of the CMG tuple:
# - 16bit PF Candidates
# - TriggerPrescales instead of fat single TriggerObject
# - slimmed PVs (without track references)
process.outcmg.outputCommands.append('keep cmgPackedCandidates_cmgCandidates_*_*')
process.outcmg.outputCommands.append('drop cmgCandidates_cmgCandidates_*_*')
process.outcmg.outputCommands.append('keep *_cmgTriggerPrescales_*_*')
process.outcmg.outputCommands.append('drop *_cmgTriggerObjectSel_*_*')
process.outcmg.outputCommands.append('drop *_offlinePrimaryVertices_*_*')
process.outcmg.outputCommands.append('keep *_slimmedPrimaryVertices_*_*')

########################################################
## Conditions
Expand Down
5 changes: 4 additions & 1 deletion CMGTools/TTHAnalysis/cfg/run_ttHLep8TeV_newNtpl_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
# this analyzer is just there to select a list of good primary vertices.
ttHVertexAna = cfg.Analyzer(
'VertexAnalyzer',
goodVertices = 'offlinePrimaryVertices',
#goodVertices = 'offlinePrimaryVertices',
goodVertices = 'slimmedPrimaryVertices',
allVertices = 'slimmedPrimaryVertices',
vertexWeight = None,
fixedWeight = 1,
verbose = False
Expand All @@ -45,6 +47,7 @@
"PileUpAnalyzer",
# build unweighted pu distribution using number of pile up interactions if False
# otherwise, use fill the distribution using number of true interactions
allVertices = 'slimmedPrimaryVertices',
true = True,
makeHists=False
)
Expand Down

0 comments on commit 7c5f0d6

Please sign in to comment.