From 2121e451053663bc2d2075b777235caccf6d9c9f Mon Sep 17 00:00:00 2001 From: Felix Schlepper Date: Wed, 13 Nov 2024 20:28:31 +0100 Subject: [PATCH] Align: Add PV DCA to debug out --- Detectors/Align/src/Controller.cxx | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Detectors/Align/src/Controller.cxx b/Detectors/Align/src/Controller.cxx index 007808a70a1d2..b3b22cbcf33df 100644 --- a/Detectors/Align/src/Controller.cxx +++ b/Detectors/Align/src/Controller.cxx @@ -300,9 +300,23 @@ void Controller::process() dcov[i] = trcIn.getCov()[i]; } trackParam_t trcOrig(trcIn.getX(), trcIn.getAlpha(), dpar, dcov, trcIn.getCharge()); - if (PropagatorD::Instance()->propagateToAlphaX(trcOrig, trcAlgRef.getAlpha(), trcAlgRef.getX(), true)) { + auto prop = PropagatorD::Instance(); + if (prop->propagateToAlphaX(trcOrig, trcAlgRef.getAlpha(), trcAlgRef.getX(), true)) { (*mDBGOut) << "trcomp" - << "orig=" << trcOrig << "fit=" << trcAlgRef << "\n"; + << "orig=" << trcOrig + << "fit=" << trcAlgRef + << "\n"; + } + o2::dataformats::DCA origDCA, fitDCA; + const auto& conf = AlignConfig::Instance(); + if (prop->propagateToDCABxByBz(*vtx, trcOrig, conf.maxStep, MatCorrType(conf.matCorType), &origDCA) && + prop->propagateToDCABxByBz(*vtx, trcAlgRef, conf.maxStep, MatCorrType(conf.matCorType), &origDCA)) { + (*mDBGOut) << "trcompatpv" + << "orig=" << trcOrig + << "origDCA=" << origDCA + << "fit=" << trcAlgRef + << "fitDCA=" << fitDCA + << "\n"; } } // RS: this is to substitute the refitter track by MC truth, just for debugging