From dada30bd80a5fc33bd4a4d7b5b6e6b075def94c1 Mon Sep 17 00:00:00 2001 From: Giovanni Date: Fri, 7 Mar 2014 13:05:05 +0100 Subject: [PATCH] By default, make slim CMG Tuple --- CMGTools/Common/prod/PATCMG_cfg.py | 16 ++++++++++------ .../cfg/run_ttHLep8TeV_newNtpl_cfg.py | 5 ++++- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/CMGTools/Common/prod/PATCMG_cfg.py b/CMGTools/Common/prod/PATCMG_cfg.py index dfb618bf2e56..ae7a4f8c8b30 100644 --- a/CMGTools/Common/prod/PATCMG_cfg.py +++ b/CMGTools/Common/prod/PATCMG_cfg.py @@ -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 diff --git a/CMGTools/TTHAnalysis/cfg/run_ttHLep8TeV_newNtpl_cfg.py b/CMGTools/TTHAnalysis/cfg/run_ttHLep8TeV_newNtpl_cfg.py index 216923ef1f5c..b7c06d837513 100644 --- a/CMGTools/TTHAnalysis/cfg/run_ttHLep8TeV_newNtpl_cfg.py +++ b/CMGTools/TTHAnalysis/cfg/run_ttHLep8TeV_newNtpl_cfg.py @@ -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 @@ -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 )