Skip to content

Commit 2aee2d1

Browse files
authored
Merge pull request cms-sw#31696 from gouskos/btv-sv-ntracks-master
Add ntracks associated to each SV
2 parents 7dba5b4 + 3888fe7 commit 2aee2d1

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
@@ -597,6 +597,7 @@
597597
Plot1D('x', 'x', 20, -0.5, 0.5, 'secondary vertex X position, in cm'),
598598
Plot1D('y', 'y', 20, -0.5, 0.5, 'secondary vertex Y position, in cm'),
599599
Plot1D('z', 'z', 20, -10, 10, 'secondary vertex Z position, in cm'),
600+
Plot1D('ntracks', 'ntracks', 11, -0.5, 10.5, 'number of tracks'),
600601
)
601602
),
602603
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()", "uint8", doc = "number of tracks"),
3435
),
3536
)
3637
svCandidateTable.variables.pt.precision=10

0 commit comments

Comments
 (0)