Skip to content

Commit

Permalink
clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
PF committed Jul 5, 2024
1 parent fa77446 commit 03ed971
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,30 +102,30 @@ class SeedingAlgorithm final : public IAlgorithm {
static inline bool itkFastTrackingCuts(float bottomRadius, float cotTheta) {
float RMin = 50.;
float CotThetaMax = 1.5;

if (bottomRadius < RMin &&
(cotTheta > CotThetaMax || cotTheta < -CotThetaMax)) {
(cotTheta > CotThetaMax || cotTheta < -CotThetaMax)) {
return false;
}
return true;
}

static inline bool itkFastTrackingSPselect(const SimSpacePoint& sp) {
// At small r we remove points beyond |z| > 200.
float r = sp.r();
float zabs = std::abs(sp.z());
if (zabs > 200. && r < 50.) {
return false;
}

/// Remove space points beyond eta=4 if their z is
/// larger than the max seed z0 (150.)
float cotTheta = 27.2899; // corresponds to eta=4
if ((zabs - 150.) > cotTheta * r) {
return false;
}
return true;
}
}
};

} // namespace ActsExamples
5 changes: 3 additions & 2 deletions Examples/Algorithms/TrackFinding/src/SeedingAlgorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,11 @@ ActsExamples::SeedingAlgorithm::SeedingAlgorithm(
return sp.topStripCenterPosition();
});
}

if (m_cfg.useExtraCuts) {
// This function will be applied to select space points during grid filling
m_cfg.seedFinderConfig.spacePointSelector.connect<itkFastTrackingSPselect>();
m_cfg.seedFinderConfig.spacePointSelector
.connect<itkFastTrackingSPselect>();

// This function will be applied to the doublet compatibility selection
m_cfg.seedFinderConfig.experimentCuts.connect<itkFastTrackingCuts>();
Expand Down

0 comments on commit 03ed971

Please sign in to comment.