From f0c821b9110bb788e2dade3fa1c895a368c38079 Mon Sep 17 00:00:00 2001 From: Giulia Frau Date: Mon, 19 May 2025 15:46:16 +0200 Subject: [PATCH 1/2] Adding histo with delta left-right nTracks --- Tr/TrackMonitors/src/TrackVertexMonitor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tr/TrackMonitors/src/TrackVertexMonitor.cpp b/Tr/TrackMonitors/src/TrackVertexMonitor.cpp index b6704591c69..e66c81af9be 100644 --- a/Tr/TrackMonitors/src/TrackVertexMonitor.cpp +++ b/Tr/TrackMonitors/src/TrackVertexMonitor.cpp @@ -119,6 +119,8 @@ private: this, "PV left chisquare per dof", "PV left chisquare per dof", { 50, 0, 10 } }; mutable Gaudi::Accumulators::Histogram<1> m_pvRightChisquarePerDof{ this, "PV right chisquare per dof", "PV right chisquare per dof", { 50, 0, 10 } }; + mutable Gaudi::Accumulators::Histogram<1> m_pvLeftRightDeltaNTracks{ + this, "PV left-right nTracks", "PV left-right nTracks", { 100, -2, 2 } }; mutable Gaudi::Accumulators::Histogram<1> m_pvForwardBackwardDeltaX{ this, "PV forward-backward delta x", "PV forward-backward delta x", { 50, -0.1, 0.1 } }; mutable Gaudi::Accumulators::Histogram<1> m_pvForwardBackwardDeltaY{ @@ -422,6 +424,8 @@ void TrackVertexMonitor::operator()( LHCb::RecVertex::Range const& pvcontainer, */ } if ( leftvertex && rightvertex ) { + // draw the difference in number of tracks + ++m_pvLeftRightDeltaNTracks[(lefttracks.size() - righttracks.size())/(lefttracks.size() + righttracks.size())]; // draw the difference Gaudi::XYZVector dx = leftvertex->position() - rightvertex->position(); -- GitLab From 57e6778e6d22eb57933277e8d34958cfb109252a Mon Sep 17 00:00:00 2001 From: Gitlab CI Date: Mon, 19 May 2025 13:47:03 +0000 Subject: [PATCH 2/2] pre-commit fixes patch generated by https://gitlab.cern.ch/lhcb/Rec/-/jobs/56109788 --- Tr/TrackMonitors/src/TrackVertexMonitor.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tr/TrackMonitors/src/TrackVertexMonitor.cpp b/Tr/TrackMonitors/src/TrackVertexMonitor.cpp index e66c81af9be..985be3d208f 100644 --- a/Tr/TrackMonitors/src/TrackVertexMonitor.cpp +++ b/Tr/TrackMonitors/src/TrackVertexMonitor.cpp @@ -120,7 +120,7 @@ private: mutable Gaudi::Accumulators::Histogram<1> m_pvRightChisquarePerDof{ this, "PV right chisquare per dof", "PV right chisquare per dof", { 50, 0, 10 } }; mutable Gaudi::Accumulators::Histogram<1> m_pvLeftRightDeltaNTracks{ - this, "PV left-right nTracks", "PV left-right nTracks", { 100, -2, 2 } }; + this, "PV left-right nTracks", "PV left-right nTracks", { 100, -2, 2 } }; mutable Gaudi::Accumulators::Histogram<1> m_pvForwardBackwardDeltaX{ this, "PV forward-backward delta x", "PV forward-backward delta x", { 50, -0.1, 0.1 } }; mutable Gaudi::Accumulators::Histogram<1> m_pvForwardBackwardDeltaY{ @@ -425,7 +425,8 @@ void TrackVertexMonitor::operator()( LHCb::RecVertex::Range const& pvcontainer, } if ( leftvertex && rightvertex ) { // draw the difference in number of tracks - ++m_pvLeftRightDeltaNTracks[(lefttracks.size() - righttracks.size())/(lefttracks.size() + righttracks.size())]; + ++m_pvLeftRightDeltaNTracks[( lefttracks.size() - righttracks.size() ) / + ( lefttracks.size() + righttracks.size() )]; // draw the difference Gaudi::XYZVector dx = leftvertex->position() - rightvertex->position(); -- GitLab