Skip to content

Commit f4ce583

Browse files
committed
add ntracks to each sv
1 parent c51856d commit f4ce583

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

PhysicsTools/NanoAOD/python/nanoDQM_cfi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,7 @@
589589
Plot1D('x', 'x', 20, -0.5, 0.5, 'secondary vertex X position, in cm'),
590590
Plot1D('y', 'y', 20, -0.5, 0.5, 'secondary vertex Y position, in cm'),
591591
Plot1D('z', 'z', 20, -10, 10, 'secondary vertex Z position, in cm'),
592+
Plot1D('ntracks', 'ntracks', 11, -0.5, 10.5, 'number of tracks'),
592593
)
593594
),
594595
SoftActivityJet = cms.PSet(

PhysicsTools/NanoAOD/python/vertices_cff.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@
2929
x = Var("position().x()", float, doc = "secondary vertex X position, in cm",precision=10),
3030
y = Var("position().y()", float, doc = "secondary vertex Y position, in cm",precision=10),
3131
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),
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),
34+
ntracks = Var("numberOfDaughters()", int, doc = "number of tracks"),
3435
),
3536
)
3637
svCandidateTable.variables.pt.precision=10

0 commit comments

Comments
 (0)