Analysis Software
Documentation for sPHENIX simulation software
|
Classes | |
struct | Config |
class | TrackFinderFunction |
Public Types | |
using | TrackFinderOptions = Acts::CombinatorialKalmanFilterOptions< IndexSourceLinkAccessor::Iterator, Acts::VectorMultiTrajectory > |
using | TrackFinderResult = Acts::Result< std::vector< TrackContainer::TrackProxy >> |
Public Member Functions | |
TrackFindingAlgorithm (Config config, Acts::Logging::Level level) | |
ActsExamples::ProcessCode | execute (const ActsExamples::AlgorithmContext &ctx) const final |
const Config & | config () const |
Get readonly access to the config parameters. | |
Public Member Functions inherited from ActsExamples::IAlgorithm | |
IAlgorithm (std::string name, Acts::Logging::Level level=Acts::Logging::INFO) | |
std::string | name () const override |
The algorithm name. | |
ProcessCode | internalExecute (const AlgorithmContext &context) final |
ProcessCode | initialize () override |
Initialize the algorithm. | |
ProcessCode | finalize () override |
Finalize the algorithm. | |
Static Public Member Functions | |
static std::shared_ptr < TrackFinderFunction > | makeTrackFinderFunction (std::shared_ptr< const Acts::TrackingGeometry > trackingGeometry, std::shared_ptr< const Acts::MagneticFieldProvider > magneticField, const Acts::Logger &logger) |
Private Member Functions | |
template<typename source_link_accessor_container_t > | |
void | computeSharedHits (const source_link_accessor_container_t &sourcelinks, TrackContainer &tracks) const |
ActsExamples::ProcessCode | finalize () override |
Finalize the algorithm. | |
Private Attributes | |
Config | m_cfg |
std::optional < Acts::TrackSelector > | m_trackSelector |
ReadDataHandle < MeasurementContainer > | m_inputMeasurements |
ReadDataHandle < IndexSourceLinkContainer > | m_inputSourceLinks |
ReadDataHandle < TrackParametersContainer > | m_inputInitialTrackParameters |
WriteDataHandle < ConstTrackContainer > | m_outputTracks {this, "OutputTracks"} |
std::atomic< size_t > | m_nTotalSeeds {0} |
std::atomic< size_t > | m_nFailedSeeds {0} |
tbb::combinable < Acts::VectorMultiTrajectory::Statistics > | m_memoryStatistics |
Additional Inherited Members | |
Protected Member Functions inherited from ActsExamples::IAlgorithm | |
const Acts::Logger & | logger () const |
Definition at line 50 of file TrackFindingAlgorithm.hpp.
View newest version in sPHENIX GitHub at line 50 of file TrackFindingAlgorithm.hpp
using ActsExamples::TrackFindingAlgorithm::TrackFinderOptions = Acts::CombinatorialKalmanFilterOptions<IndexSourceLinkAccessor::Iterator, Acts::VectorMultiTrajectory> |
Track finder function that takes input measurements, initial trackstate and track finder options and returns some track-finder-specific result.
Definition at line 56 of file TrackFindingAlgorithm.hpp.
View newest version in sPHENIX GitHub at line 56 of file TrackFindingAlgorithm.hpp
using ActsExamples::TrackFindingAlgorithm::TrackFinderResult = Acts::Result<std::vector<TrackContainer::TrackProxy>> |
Definition at line 58 of file TrackFindingAlgorithm.hpp.
View newest version in sPHENIX GitHub at line 58 of file TrackFindingAlgorithm.hpp
ActsExamples::TrackFindingAlgorithm::TrackFindingAlgorithm | ( | Config | config, |
Acts::Logging::Level | level | ||
) |
Constructor of the track finding algorithm
config | is the config struct to configure the algorithm |
level | is the logging level |
Definition at line 42 of file TrackFindingAlgorithm.cpp.
View newest version in sPHENIX GitHub at line 42 of file TrackFindingAlgorithm.cpp
References m_cfg, and ActsExamples::TrackFindingAlgorithm::Config::trackSelectorCfg.
|
private |
Definition at line 154 of file TrackFindingAlgorithm.hpp.
View newest version in sPHENIX GitHub at line 154 of file TrackFindingAlgorithm.hpp
References index, Acts::MeasurementFlag, Acts::SharedHitFlag, and filter::state.
|
inline |
Get readonly access to the config parameters.
Definition at line 118 of file TrackFindingAlgorithm.hpp.
View newest version in sPHENIX GitHub at line 118 of file TrackFindingAlgorithm.hpp
References m_cfg.
|
finalvirtual |
Framework execute method of the track finding algorithm
ctx | is the algorithm context that holds event-wise information |
Implements ActsExamples::IAlgorithm.
Definition at line 73 of file TrackFindingAlgorithm.cpp.
View newest version in sPHENIX GitHub at line 73 of file TrackFindingAlgorithm.cpp
References ACTS_DEBUG, ACTS_WARNING, Acts::Direction::Backward, ActsExamples::AlgorithmContext::calibContext, ActsExamples::MeasurementCalibratorAdapter::calibrate(), Acts::CombinatorialKalmanFilterExtensions< traj_t >::calibrator, ActsExamples::GeometryIdMultisetAccessor< T >::container, conf::extensions, Acts::Direction::Forward, ActsExamples::AlgorithmContext::geoContext, m_cfg(), ActsExamples::AlgorithmContext::magFieldContext, Acts::PropagatorPlainOptions::maxSteps, Acts::CombinatorialKalmanFilterExtensions< traj_t >::measurementSelector, testing::internal::move(), ckf::options, pSurface, ActsExamples::IndexSourceLinkAccessor::range(), Acts::CombinatorialKalmanFilterExtensions< traj_t >::smoother, SUCCESS, tracks(), and Acts::CombinatorialKalmanFilterExtensions< traj_t >::updater.
|
overrideprivatevirtual |
Finalize the algorithm.
Implements ActsExamples::SequenceElement.
Definition at line 194 of file TrackFindingAlgorithm.cpp.
View newest version in sPHENIX GitHub at line 194 of file TrackFindingAlgorithm.cpp
References KFPMath::a, ACTS_DEBUG, ACTS_INFO, KFPMath::b, Acts::PhysicalConstants::c, Acts::detail_vmt::VectorMultiTrajectoryBase::Statistics::hist, and SUCCESS.
|
static |
Create the track finder function implementation.
The magnetic field is intentionally given by-value since the variant contains shared_ptr anyway.
Definition at line 68 of file TrackFindingAlgorithmFunction.cpp.
View newest version in sPHENIX GitHub at line 68 of file TrackFindingAlgorithmFunction.cpp
References cfg, Acts::Logger::cloneWithSuffix(), filter::Config, testing::internal::move(), Acts::Test::navigator, and propagation_timing::stepper.
|
private |
Definition at line 128 of file TrackFindingAlgorithm.hpp.
View newest version in sPHENIX GitHub at line 128 of file TrackFindingAlgorithm.hpp
Referenced by config(), and TrackFindingAlgorithm().
|
private |
Definition at line 136 of file TrackFindingAlgorithm.hpp.
View newest version in sPHENIX GitHub at line 136 of file TrackFindingAlgorithm.hpp
|
private |
Definition at line 131 of file TrackFindingAlgorithm.hpp.
View newest version in sPHENIX GitHub at line 131 of file TrackFindingAlgorithm.hpp
|
private |
Definition at line 133 of file TrackFindingAlgorithm.hpp.
View newest version in sPHENIX GitHub at line 133 of file TrackFindingAlgorithm.hpp
|
mutableprivate |
Definition at line 145 of file TrackFindingAlgorithm.hpp.
View newest version in sPHENIX GitHub at line 145 of file TrackFindingAlgorithm.hpp
|
mutableprivate |
Definition at line 142 of file TrackFindingAlgorithm.hpp.
View newest version in sPHENIX GitHub at line 142 of file TrackFindingAlgorithm.hpp
|
mutableprivate |
Definition at line 141 of file TrackFindingAlgorithm.hpp.
View newest version in sPHENIX GitHub at line 141 of file TrackFindingAlgorithm.hpp
|
private |
Definition at line 139 of file TrackFindingAlgorithm.hpp.
View newest version in sPHENIX GitHub at line 139 of file TrackFindingAlgorithm.hpp
|
private |
Definition at line 129 of file TrackFindingAlgorithm.hpp.
View newest version in sPHENIX GitHub at line 129 of file TrackFindingAlgorithm.hpp