1 import FWCore.ParameterSet.Config
as cms
11 vertexTable = cms.EDProducer(
"VertexTableProducer",
12 pvSrc = cms.InputTag(
"offlineSlimmedPrimaryVertices"),
13 svSrc = cms.InputTag(
"slimmedSecondaryVertices"),
14 svCut = cms.string(
""),
15 dlenMin = cms.double(0),
16 dlenSigMin = cms.double(3),
17 pvName = cms.string(
"PV"),
18 svName = cms.string(
"SV"),
19 svDoc = cms.string(
"secondary vertices from IVF algorithm"),
22 svCandidateTable = cms.EDProducer(
"SimpleCandidateFlatTableProducer",
23 src = cms.InputTag(
"vertexTable"),
25 name = cms.string(
"SV"),
26 singleton = cms.bool(
False),
27 extension = cms.bool(
True),
28 variables = cms.PSet(P4Vars,
29 x =
Var(
"position().x()", float, doc =
"secondary vertex X position, in cm",precision=10),
30 y =
Var(
"position().y()", float, doc =
"secondary vertex Y position, in cm",precision=10),
31 z =
Var(
"position().z()", float, doc =
"secondary vertex Z position, in cm",precision=14),
32 ndof =
Var(
"vertexNdof()", float, doc =
"number of degrees of freedom",precision=8),
33 chi2 =
Var(
"vertexNormalizedChi2()", float, doc =
"reduced chi2, i.e. chi/ndof",precision=8),
36 svCandidateTable.variables.pt.precision=10
37 svCandidateTable.variables.phi.precision=12
41 vertexSequence = cms.Sequence()
43 vertexTables = cms.Sequence( vertexTable+svCandidateTable)
def Var(expr, valtype, compression=None, doc=None, mcOnly=False, precision=-1)