Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-01 22:40:17

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def outputToFlat(process, outputName):
0004     """ Replace PoolOutputModule by NanoAODOutputModule to get NanoAOD-like (flat tree) output without merging step """
0005     orig = getattr(process, outputName)
0006     setattr(process, outputName,
0007             cms.OutputModule("NanoAODOutputModule", **{
0008                 pn: orig.getParameter(pn) for pn in orig.parameterNames_()
0009                 if pn != "eventAutoFlushCompressedSize"
0010                 })
0011             )
0012     return process
0013 
0014 def flatSiStripCalCosmicsNano(process):
0015     return outputToFlat(process, "ALCARECOStreamSiStripCalCosmicsNano")