EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/sPHENIX/Examples/Framework/include/ActsExamples/Framework/BareAlgorithm.hpp>
The algorithm name | |
The logging level for this algorithm | |
std::string | m_name |
std::unique_ptr< const Acts::Logger > | m_logger |
BareAlgorithm (std::string name, Acts::Logging::Level level=Acts::Logging::INFO) | |
std::string | name () const finaloverride |
The algorithm name. | |
virtual ProcessCode | execute (const AlgorithmContext &context) const override=0 |
const Acts::Logger & | logger () const |
Additional Inherited Members | |
Public Member Functions inherited from ActsExamples::IAlgorithm | |
virtual | ~IAlgorithm ()=default |
A helper class for users to implement framework algorithms
This class provides default implementations for most interface methods and and adds a default logger that can be used directly in subclasses. Algorithm implementations only need to implement the execute
method.
Definition at line 31 of file BareAlgorithm.hpp.
View newest version in sPHENIX GitHub at line 31 of file BareAlgorithm.hpp
ActsExamples::BareAlgorithm::BareAlgorithm | ( | std::string | name, |
Acts::Logging::Level | level = Acts::Logging::INFO |
||
) |
Definition at line 11 of file BareAlgorithm.cpp.
View newest version in sPHENIX GitHub at line 11 of file BareAlgorithm.cpp
|
overridepure virtual |
Execute the algorithm for one event.
This function must be implemented by subclasses.
Implements ActsExamples::IAlgorithm.
Implemented in ActsExamples::PropagationAlgorithm< propagator_t >, ActsExamples::MaterialMapping, ActsExamples::TrackFindingAlgorithm, ActsExamples::FatrasAlgorithm< simulator_t >, ActsExamples::FittingAlgorithm, ActsExamples::ParticleSelector, ActsExamples::TruthSeedSelector, ActsExamples::ParticleSmearing, ActsExamples::TrackSelector, ActsExamples::DigitizationAlgorithm, ActsExamples::GeantinoRecording, ActsExamples::HitSmearing, ActsExamples::VertexFitterAlgorithm, ActsExamples::PrintHits, ActsExamples::HelloRandomAlgorithm, ActsExamples::AdaptiveMultiVertexFinderAlgorithm, ActsExamples::TruthTrackFinder, ActsExamples::IterativeVertexFinderAlgorithm, ActsExamples::TutorialVertexFinderAlgorithm, ActsExamples::TruthVertexFinder, ActsExamples::HelloWhiteBoardAlgorithm, ActsExamples::PrintParticles, and ActsExamples::HelloLoggerAlgorithm.
|
inlineprotected |
Definition at line 50 of file BareAlgorithm.hpp.
View newest version in sPHENIX GitHub at line 50 of file BareAlgorithm.hpp
References m_logger.
|
finaloverridevirtual |
The algorithm name.
Implements ActsExamples::IAlgorithm.
Definition at line 16 of file BareAlgorithm.cpp.
View newest version in sPHENIX GitHub at line 16 of file BareAlgorithm.cpp
References m_name().
Referenced by eicpy.verify.PythiaHistograms::__init__(), and eicpy.verify.DjangohHistograms::__init__().
|
private |
Definition at line 54 of file BareAlgorithm.hpp.
View newest version in sPHENIX GitHub at line 54 of file BareAlgorithm.hpp
Referenced by logger().
|
private |
Definition at line 53 of file BareAlgorithm.hpp.
View newest version in sPHENIX GitHub at line 53 of file BareAlgorithm.hpp