Skip to content

Commit

Permalink
Merge pull request #19680 from arizzi/overrideSplitMiniAOD
Browse files Browse the repository at this point in the history
Override split level in miniaod
  • Loading branch information
cmsbuild committed Aug 9, 2017
2 parents cd6df5e + 2312220 commit 5d342d6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Configuration/Applications/python/ConfigBuilder.py
Expand Up @@ -642,9 +642,8 @@ def doNotInlineEventContent(instance,label = "cms.untracked.vstring(process."+th
output.dataset.filterName = cms.untracked.string('StreamALCACombined')

if "MINIAOD" in streamType:
output.dropMetaData = cms.untracked.string('ALL')
output.fastCloning= cms.untracked.bool(False)
output.overrideInputFileSplitLevels = cms.untracked.bool(True)
from PhysicsTools.PatAlgos.slimming.miniAOD_tools import miniAOD_customizeOutput
miniAOD_customizeOutput(output)

outputModuleName=streamType+'output'
setattr(self.process,outputModuleName,output)
Expand Down
15 changes: 15 additions & 0 deletions PhysicsTools/PatAlgos/python/slimming/MicroEventContent_cff.py
Expand Up @@ -96,3 +96,18 @@
'keep GenRunInfoProduct_*_*_*',
'keep L1GtTriggerMenuLite_l1GtTriggerMenuLite__*',
]

MiniAODOverrideBranchesSplitLevel = cms.untracked.VPSet( [
cms.untracked.PSet(branch = cms.untracked.string("patPackedCandidates_packedPFCandidates__*"),splitLevel=cms.untracked.int32(99)),
cms.untracked.PSet(branch = cms.untracked.string("recoGenParticles_prunedGenParticles__*"),splitLevel=cms.untracked.int32(99)),
cms.untracked.PSet(branch = cms.untracked.string("patTriggerObjectStandAlones_slimmedPatTrigger__*"),splitLevel=cms.untracked.int32(99)),
cms.untracked.PSet(branch = cms.untracked.string("patPackedGenParticles_packedGenParticles__*"),splitLevel=cms.untracked.int32(99)),
cms.untracked.PSet(branch = cms.untracked.string("patJets_slimmedJets__*"),splitLevel=cms.untracked.int32(99)),
cms.untracked.PSet(branch = cms.untracked.string("recoVertexs_offlineSlimmedPrimaryVertices__*"),splitLevel=cms.untracked.int32(99)),
cms.untracked.PSet(branch = cms.untracked.string("recoCaloClusters_reducedEgamma_reducedESClusters_*"),splitLevel=cms.untracked.int32(99)),
cms.untracked.PSet(branch = cms.untracked.string("EcalRecHitsSorted_reducedEgamma_reducedEBRecHits_*"),splitLevel=cms.untracked.int32(99)),
cms.untracked.PSet(branch = cms.untracked.string("EcalRecHitsSorted_reducedEgamma_reducedEERecHits_*"),splitLevel=cms.untracked.int32(99)),
cms.untracked.PSet(branch = cms.untracked.string("recoGenJets_slimmedGenJets__*"),splitLevel=cms.untracked.int32(99)),
cms.untracked.PSet(branch = cms.untracked.string("patJets_slimmedJetsPuppi__*"),splitLevel=cms.untracked.int32(99)),
cms.untracked.PSet(branch = cms.untracked.string("EcalRecHitsSorted_reducedEgamma_reducedESRecHits_*"),splitLevel=cms.untracked.int32(99)),
])
3 changes: 3 additions & 0 deletions PhysicsTools/PatAlgos/python/slimming/miniAOD_tools.py
Expand Up @@ -366,6 +366,9 @@ def miniAOD_customizeMC(process):
process.patJetFlavourAssociation.rParam = 0.4

def miniAOD_customizeOutput(out):
from PhysicsTools.PatAlgos.slimming.MicroEventContent_cff import MiniAODOverrideBranchesSplitLevel
out.overrideBranchesSplitLevel = MiniAODOverrideBranchesSplitLevel
out.splitLevel = cms.untracked.int32(0)
out.dropMetaData = cms.untracked.string('ALL')
out.fastCloning= cms.untracked.bool(False)
out.overrideInputFileSplitLevels = cms.untracked.bool(True)
Expand Down

0 comments on commit 5d342d6

Please sign in to comment.