Skip to content

Commit

Permalink
Set the loaded SVParams to DCAFitter of MatchITSTPCQC
Browse files Browse the repository at this point in the history
  • Loading branch information
shahor02 committed Dec 6, 2024
1 parent 736eb5b commit ecd04ae
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Detectors/GLOQC/src/MatchITSTPCQC.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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<o2::vertexing::SVertexerParams*>("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<o2::framework::TimingInfo>().creation;
auto grplhcif = o2::base::GRPGeomHelper::instance().getGRPLHCIF();
if (grplhcif->getBeamZ(0) != 1 || grplhcif->getBeamZ(1) != 1) {
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit ecd04ae

Please sign in to comment.