Skip to content

Commit 06fd992

Browse files
committed
Misc. fixes for the pvertexer.
1 parent 64a56fe commit 06fd992

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

Detectors/Vertexing/include/DetectorsVertexing/PVertexer.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#include <TFile.h>
3838
#include <TStopwatch.h>
3939

40-
// #define _PV_DEBUG_TREE_ // if enabled, produce dbscan and vertex comparison dump
40+
#define _PV_DEBUG_TREE_ // if enabled, produce dbscan and vertex comparison dump
4141

4242
namespace o2
4343
{
@@ -263,7 +263,6 @@ void PVertexer::createTracksPool(const TR& tracks, gsl::span<const o2d::GlobalTr
263263

264264
// check all containers
265265
float vtxErr2 = 0.5 * (mMeanVertex.getSigmaX2() + mMeanVertex.getSigmaY2()) + mPVParams->meanVertexExtraErrSelection * mPVParams->meanVertexExtraErrSelection;
266-
o2d::DCA dca;
267266

268267
for (uint32_t i = 0; i < ntGlo; i++) {
269268
int id = sortedTrackID[i];

Detectors/Vertexing/include/DetectorsVertexing/PVertexerParams.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ struct PVertexerParams : public o2::conf::ConfigurableParamHelper<PVertexerParam
4040
long maxTimeMSPerCluster = 10000; ///< max allowed time per TZCluster processing, ms
4141

4242
// track selection
43-
float meanVertexExtraErrSelection = 0.01; ///< extra error to meanvertex sigma used when selecting tracks
43+
float meanVertexExtraErrSelection = 0.02; ///< extra error to meanvertex sigma used when selecting tracks
4444
float dcaTolerance = 1.3; ///< consider tracks within this abs DCA to mean vertex
4545
float pullIniCut = 9; ///< cut on pull (n^2 sigma) on dca to mean vertex
4646
float maxTimeErrorMUS = 10.0; ///< max time error in ms of the track to account

Detectors/Vertexing/src/PVertexer.cxx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,13 +1051,14 @@ bool PVertexer::relateTrackToMeanVertex(o2::track::TrackParCov& trc, float vtxEr
10511051
{
10521052
o2d::DCA dca;
10531053
auto z = trc.getZAt(0., mBz);
1054-
if (z < -999.) {
1054+
if (z < -998.) {
10551055
z = mMeanVertex.getZ();
10561056
}
10571057
mMeanVertex.setMeanXYVertexAtZ(mMeanVertexSeed, z);
1058-
return o2::base::Propagator::Instance()->propagateToDCA(mMeanVertex, trc, mBz, 2.0f,
1059-
o2::base::Propagator::MatCorrType::USEMatCorrLUT, &dca, nullptr, 0, mPVParams->dcaTolerance) &&
1060-
(dca.getY() * dca.getY() / (dca.getSigmaY2() + vtxErr2) < mPVParams->pullIniCut);
1058+
if (!o2::base::Propagator::Instance()->propagateToDCA(mMeanVertex, trc, mBz, 2.0f, o2::base::Propagator::MatCorrType::USEMatCorrLUT, &dca, nullptr, 0, mPVParams->dcaTolerance)) {
1059+
return false;
1060+
}
1061+
return dca.getY() * dca.getY() / (dca.getSigmaY2() + vtxErr2) < mPVParams->pullIniCut;
10611062
}
10621063

10631064
//______________________________________________

0 commit comments

Comments
 (0)