1 import FWCore.ParameterSet.Config
as cms
4 genVertexTable = cms.EDProducer(
"SimpleXYZPointFlatTableProducer",
5 src = cms.InputTag(
"genParticles:xyz0"),
7 name= cms.string(
"GenVtx"),
8 doc = cms.string(
"Gen vertex"),
9 singleton = cms.bool(
True),
10 extension = cms.bool(
False),
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),
18 genVertexT0Table = cms.EDProducer(
"GlobalVariablesTableProducer",
19 name = cms.string(
"GenVtx"),
20 extension = cms.bool(
True),
22 t0 =
ExtVar( cms.InputTag(
"genParticles:t0"),
"float", doc =
"gen vertex t0", precision=12),
26 genVertexTables = cms.Sequence(genVertexTable+genVertexT0Table)
def ExtVar(tag, valtype, compression=None, doc=None, mcOnly=False, precision=-1)
def Var(expr, valtype, compression=None, doc=None, mcOnly=False, precision=-1)