CMS 3D CMS Logo

genVertex_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from PhysicsTools.NanoAOD.common_cff import Var,ExtVar
3 
4 genVertexTable = cms.EDProducer("SimpleXYZPointFlatTableProducer",
5  src = cms.InputTag("genParticles:xyz0"),
6  cut = cms.string(""),
7  name= cms.string("GenVtx"),
8  doc = cms.string("Gen vertex"),
9  singleton = cms.bool(True),
10  extension = cms.bool(False),
11  variables = cms.PSet(
12  x = Var("X", float, doc="gen vertex x", precision=10),
13  y = Var("Y", float, doc="gen vertex y", precision=10),
14  z = Var("Z", float, doc="gen vertex z", precision=16),
15  )
16 )
17 
18 genVertexT0Table = cms.EDProducer("GlobalVariablesTableProducer",
19  name = cms.string("GenVtx"),
20  extension = cms.bool(True),
21  variables = cms.PSet(
22  t0 = ExtVar( cms.InputTag("genParticles:t0"), "float", doc = "gen vertex t0", precision=12),
23  )
24 )
25 
26 genVertexTables = cms.Sequence(genVertexTable+genVertexT0Table)
def ExtVar(tag, valtype, compression=None, doc=None, mcOnly=False, precision=-1)
Definition: common_cff.py:31
def Var(expr, valtype, compression=None, doc=None, mcOnly=False, precision=-1)
Definition: common_cff.py:20