Skip to content

Commit 2121e45

Browse files
committed
Align: Add PV DCA to debug out
1 parent 6d7f090 commit 2121e45

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

Detectors/Align/src/Controller.cxx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,23 @@ void Controller::process()
300300
dcov[i] = trcIn.getCov()[i];
301301
}
302302
trackParam_t trcOrig(trcIn.getX(), trcIn.getAlpha(), dpar, dcov, trcIn.getCharge());
303-
if (PropagatorD::Instance()->propagateToAlphaX(trcOrig, trcAlgRef.getAlpha(), trcAlgRef.getX(), true)) {
303+
auto prop = PropagatorD::Instance();
304+
if (prop->propagateToAlphaX(trcOrig, trcAlgRef.getAlpha(), trcAlgRef.getX(), true)) {
304305
(*mDBGOut) << "trcomp"
305-
<< "orig=" << trcOrig << "fit=" << trcAlgRef << "\n";
306+
<< "orig=" << trcOrig
307+
<< "fit=" << trcAlgRef
308+
<< "\n";
309+
}
310+
o2::dataformats::DCA origDCA, fitDCA;
311+
const auto& conf = AlignConfig::Instance();
312+
if (prop->propagateToDCABxByBz(*vtx, trcOrig, conf.maxStep, MatCorrType(conf.matCorType), &origDCA) &&
313+
prop->propagateToDCABxByBz(*vtx, trcAlgRef, conf.maxStep, MatCorrType(conf.matCorType), &origDCA)) {
314+
(*mDBGOut) << "trcompatpv"
315+
<< "orig=" << trcOrig
316+
<< "origDCA=" << origDCA
317+
<< "fit=" << trcAlgRef
318+
<< "fitDCA=" << fitDCA
319+
<< "\n";
306320
}
307321
}
308322
// RS: this is to substitute the refitter track by MC truth, just for debugging

0 commit comments

Comments
 (0)