From 4dd3e5ea38240e43dc70f93b9132c9b1d61ffffc Mon Sep 17 00:00:00 2001 From: Tobias Boeckh <tobias.boeckh@cern.ch> Date: Mon, 14 Mar 2022 17:03:23 +0100 Subject: [PATCH] fix transverse momentum --- Tracking/Acts/FaserActsKalmanFilter/src/ResPlotTool.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tracking/Acts/FaserActsKalmanFilter/src/ResPlotTool.cxx b/Tracking/Acts/FaserActsKalmanFilter/src/ResPlotTool.cxx index fb38d44d0..11c1483a7 100644 --- a/Tracking/Acts/FaserActsKalmanFilter/src/ResPlotTool.cxx +++ b/Tracking/Acts/FaserActsKalmanFilter/src/ResPlotTool.cxx @@ -1,4 +1,5 @@ -#include "FaserActsKalmanFilter/ResPlotTool.h" #include "Acts/Utilities/Helpers.hpp" +#include "FaserActsKalmanFilter/ResPlotTool.h" +#include "Acts/Utilities/Helpers.hpp" #include "HepMC/GenVertex.h" void ResPlotTool::book(ResPlotTool::ResPlotCache& resPlotCache) const { @@ -135,7 +136,7 @@ void ResPlotTool::fill( // get the truth eta and pT const auto truthEta = eta(truthParameters->momentum().normalized()); - const auto truthPt = perp(truthParameters->momentum().normalized()); + const auto truthPt = truthParameters->absoluteMomentum() * perp(truthParameters->momentum().normalized()); // fill the histograms for residual and pull for (unsigned int parID = 0; parID < Acts::eBoundSize; parID++) { -- GitLab