Skip to content
Snippets Groups Projects
Commit 4dd3e5ea authored by Tobias Bockh's avatar Tobias Bockh
Browse files

fix transverse momentum

parent cf92528a
No related branches found
No related tags found
1 merge request!225Re-Fit Tracks
#include "FaserActsKalmanFilter/ResPlotTool.h" #include "Acts/Utilities/Helpers.hpp" #include "FaserActsKalmanFilter/ResPlotTool.h"
#include "Acts/Utilities/Helpers.hpp"
#include "HepMC/GenVertex.h" #include "HepMC/GenVertex.h"
void ResPlotTool::book(ResPlotTool::ResPlotCache& resPlotCache) const { void ResPlotTool::book(ResPlotTool::ResPlotCache& resPlotCache) const {
...@@ -135,7 +136,7 @@ void ResPlotTool::fill( ...@@ -135,7 +136,7 @@ void ResPlotTool::fill(
// get the truth eta and pT // get the truth eta and pT
const auto truthEta = eta(truthParameters->momentum().normalized()); 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 // fill the histograms for residual and pull
for (unsigned int parID = 0; parID < Acts::eBoundSize; parID++) { for (unsigned int parID = 0; parID < Acts::eBoundSize; parID++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment