Skip to content

Commit

Permalink
refactor!: AMVF do3dSplitting -> doFullSplitting (acts-project#3004)
Browse files Browse the repository at this point in the history
Pulled this out of acts-project#2828 to encapsulate the breaking change

credits @felix-russo
  • Loading branch information
andiwand authored and EleniXoch committed May 6, 2024
1 parent fcb8d80 commit 648a688
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
10 changes: 7 additions & 3 deletions Core/include/Acts/Vertexing/AdaptiveMultiVertexFinder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,13 @@ class AdaptiveMultiVertexFinder final : public IVertexFinder {
// Include also single track vertices
bool addSingleTrackVertices = false;

// Use 3d information for evaluating the vertex distance significance
// for vertex merging/splitting
bool do3dSplitting = false;
// If doFullSplitting == true, we check the 3D distance (if useTime ==
// false) or the 4D distance (if useTime == true) of the vertices to
// determine whether they are merged.
// If doFullSplitting == false, we check the z distance (if useTime ==
// false) or the z-t distance (if useTime == true) of the vertices to
// determine whether they are merged.
bool doFullSplitting = false;

// Maximum vertex contamination value
double maximumVertexContamination = 0.5;
Expand Down
2 changes: 1 addition & 1 deletion Core/src/Vertexing/AdaptiveMultiVertexFinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ bool AdaptiveMultiVertexFinder::isMergedVertex(
const SquareMatrix4& otherCov = otherVtx->fullCovariance();

double significance = 0;
if (!m_cfg.do3dSplitting) {
if (!m_cfg.doFullSplitting) {
const double deltaZPos = otherPos[eZ] - candidatePos[eZ];
const double sumVarZ = otherCov(eZ, eZ) + candidateCov(eZ, eZ);
if (sumVarZ <= 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ auto ActsExamples::AdaptiveMultiVertexFinderAlgorithm::makeVertexFinder() const
// maximum chi2 that a track can have to be associated with a vertex).
finderConfig.tracksMaxSignificance = 7.5;
// Check if vertices are merged in space and time
// TODO rename do3dSplitting -> doFullSplitting
finderConfig.do3dSplitting = true;
finderConfig.doFullSplitting = true;
// Reset the maximum significance that two vertices can have before they
// are considered as merged. The default value 3 is tuned for comparing
// the vertices' z-coordinates. Since we consider 4 dimensions here, we
Expand Down

0 comments on commit 648a688

Please sign in to comment.