Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Detectors/Vertexing/include/DetectorsVertexing/PVertexer.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "ReconstructionDataFormats/PrimaryVertex.h"
#include "DetectorsVertexing/PVertexerHelpers.h"
#include "DetectorsVertexing/PVertexerParams.h"
#include "DetectorsBase/Propagator.h"
#include "ReconstructionDataFormats/GlobalTrackID.h"
#include "DataFormatsCalibration/MeanVertexObject.h"
#include "DataFormatsITSMFT/DPLAlpideParam.h"
Expand Down Expand Up @@ -85,6 +86,7 @@ class PVertexer
void setBunchFilling(const o2::BunchFilling& bf);

void setBz(float bz) { mBz = bz; }
void setMatCorrType(o2::base::Propagator::MatCorrType type) { mMatCorr = type; }
void setValidateWithIR(bool v) { mValidateWithIR = v; }
bool getValidateWithIR() const { return mValidateWithIR; }
void setTrackSources(GTrackID::mask_t s);
Expand Down Expand Up @@ -187,6 +189,7 @@ class PVertexer
std::vector<TimeZCluster> mTimeZClusters; ///< set of time clusters
float mITSROFrameLengthMUS = 0; ///< ITS readout time span in \mus
float mBz = 0.; ///< mag.field at beam line
o2::base::Propagator::MatCorrType mMatCorr = o2::base::Propagator::MatCorrType::USEMatCorrLUT; ///< material correction for propagation
float mDBScanDeltaT = 0.; ///< deltaT cut for DBScan check
float mDBSMaxZ2InvCorePoint = 0; ///< inverse of max sigZ^2 of the track which can be core point in the DBScan
bool mValidateWithIR = false; ///< require vertex validation with InteractionCandidates (if available)
Expand Down
4 changes: 2 additions & 2 deletions Detectors/Vertexing/src/PVertexer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ bool PVertexer::relateTrackToMeanVertex(o2::track::TrackParCov& trc, float vtxEr
z = mMeanVertex.getZ();
}
mMeanVertex.setMeanXYVertexAtZ(mMeanVertexSeed, z);
if (!o2::base::Propagator::Instance()->propagateToDCA(mMeanVertex, trc, mBz, 2.0f, o2::base::Propagator::MatCorrType::USEMatCorrLUT, &dca, nullptr, 0, mPVParams->dcaTolerance)) {
if (!o2::base::Propagator::Instance()->propagateToDCA(mMeanVertex, trc, mBz, 2.0f, mMatCorr, &dca, nullptr, 0, mPVParams->dcaTolerance)) {
return false;
}
return dca.getY() * dca.getY() / (dca.getSigmaY2() + vtxErr2) < mPVParams->pullIniCut;
Expand All @@ -1227,7 +1227,7 @@ bool PVertexer::relateTrackToMeanVertex(o2::track::TrackParCov& trc, float vtxEr
//______________________________________________
bool PVertexer::relateTrackToVertex(o2::track::TrackParCov& trc, const o2d::VertexBase& vtxSeed) const
{
return o2::base::Propagator::Instance()->propagateToDCA(vtxSeed, trc, mBz, 2.0f, o2::base::Propagator::MatCorrType::USEMatCorrLUT);
return o2::base::Propagator::Instance()->propagateToDCA(vtxSeed, trc, mBz, 2.0f, mMatCorr);
}

//______________________________________________
Expand Down
Loading