CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
customiseAlCaNano Namespace Reference

Functions

def flatSiStripCalCosmicsNano
 
def outputToFlat
 

Function Documentation

def customiseAlCaNano.flatSiStripCalCosmicsNano (   process)

Definition at line 14 of file customiseAlCaNano.py.

References outputToFlat().

14 
15 def flatSiStripCalCosmicsNano(process):
16  return outputToFlat(process, "ALCARECOStreamSiStripCalCosmicsNano")
def customiseAlCaNano.outputToFlat (   process,
  outputName 
)
Replace PoolOutputModule by NanoAODOutputModule to get NanoAOD-like (flat tree) output without merging step 

Definition at line 3 of file customiseAlCaNano.py.

Referenced by flatSiStripCalCosmicsNano().

3 
4 def outputToFlat(process, outputName):
5  """ Replace PoolOutputModule by NanoAODOutputModule to get NanoAOD-like (flat tree) output without merging step """
6  orig = getattr(process, outputName)
7  setattr(process, outputName,
8  cms.OutputModule("NanoAODOutputModule", **{
9  pn: orig.getParameter(pn) for pn in orig.parameterNames_()
10  if pn != "eventAutoFlushCompressedSize"
11  })
12  )
13  return process