CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
customiseAlCaNano.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 def outputToFlat(process, outputName):
4  """ Replace PoolOutputModule by NanoAODOutputModule to get NanoAOD-like (flat tree) output without merging step """
5  orig = getattr(process, outputName)
6  setattr(process, outputName,
7  cms.OutputModule("NanoAODOutputModule", **{
8  pn: orig.getParameter(pn) for pn in orig.parameterNames_()
9  if pn != "eventAutoFlushCompressedSize"
10  })
11  )
12  return process
13 
15  return outputToFlat(process, "ALCARECOStreamSiStripCalCosmicsNano")