Skip to content

Commit

Permalink
Align: Add PV DCA to debug out
Browse files Browse the repository at this point in the history
  • Loading branch information
f3sch committed Nov 13, 2024
1 parent 6d7f090 commit 2121e45
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions Detectors/Align/src/Controller.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2121e45

Please sign in to comment.