From ecd04ae60e2048e0e85aaf6e0cae0f154fc08f5c Mon Sep 17 00:00:00 2001 From: shahoian Date: Fri, 6 Dec 2024 16:48:41 +0100 Subject: [PATCH] Set the loaded SVParams to DCAFitter of MatchITSTPCQC --- Detectors/GLOQC/src/MatchITSTPCQC.cxx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Detectors/GLOQC/src/MatchITSTPCQC.cxx b/Detectors/GLOQC/src/MatchITSTPCQC.cxx index f0345175b9a59..6e14f9eb16c8b 100644 --- a/Detectors/GLOQC/src/MatchITSTPCQC.cxx +++ b/Detectors/GLOQC/src/MatchITSTPCQC.cxx @@ -477,6 +477,21 @@ void MatchITSTPCQC::run(o2::framework::ProcessingContext& ctx) if (mTimestamp == -1 && mDoK0QC) { // we have not yet initialized the SVertexer params; let's do it ctx.inputs().get("SVParam"); + const auto& svparam = o2::vertexing::SVertexerParams::Instance(); + mFitterV0.setUseAbsDCA(svparam.useAbsDCA); + mFitterV0.setMaxR(svparam.maxRIni); + mFitterV0.setMinParamChange(svparam.minParamChange); + mFitterV0.setMinRelChi2Change(svparam.minRelChi2Change); + mFitterV0.setMaxDZIni(svparam.maxDZIni); + mFitterV0.setMaxDXYIni(svparam.maxDXYIni); + mFitterV0.setMaxChi2(svparam.maxChi2); + mFitterV0.setMatCorrType(o2::base::Propagator::MatCorrType(svparam.matCorr)); + mFitterV0.setUsePropagator(svparam.usePropagator); + mFitterV0.setRefitWithMatCorr(svparam.refitWithMatCorr); + mFitterV0.setMaxStep(svparam.maxStep); + mFitterV0.setMaxSnp(svparam.maxSnp); + mFitterV0.setMinXSeed(svparam.minXSeed); + mTimestamp = ctx.services().get().creation; auto grplhcif = o2::base::GRPGeomHelper::instance().getGRPLHCIF(); if (grplhcif->getBeamZ(0) != 1 || grplhcif->getBeamZ(1) != 1) { @@ -962,6 +977,7 @@ void MatchITSTPCQC::run(o2::framework::ProcessingContext& ctx) if (mDoK0QC && mRecoCont.getPrimaryVertices().size() > 0) { // now doing K0S + mFitterV0.setBz(mBz); const auto pvertices = mRecoCont.getPrimaryVertices(); LOG(info) << "****** Number of PVs = " << pvertices.size();