EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::BareAlgorithm Class Referenceabstract

#include <acts/blob/sPHENIX/Examples/Framework/include/ActsExamples/Framework/BareAlgorithm.hpp>

+ Inheritance diagram for ActsExamples::BareAlgorithm:
+ Collaboration diagram for ActsExamples::BareAlgorithm:

The algorithm name

Constructor

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::Loggerlogger () const
 

Additional Inherited Members

- Public Member Functions inherited from ActsExamples::IAlgorithm
virtual ~IAlgorithm ()=default
 

Detailed Description

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

Constructor & Destructor Documentation

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

Member Function Documentation

const Acts::Logger& ActsExamples::BareAlgorithm::logger ( ) const
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.

std::string ActsExamples::BareAlgorithm::name ( ) const
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__().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

std::unique_ptr<const Acts::Logger> ActsExamples::BareAlgorithm::m_logger
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().

std::string ActsExamples::BareAlgorithm::m_name
private

Definition at line 53 of file BareAlgorithm.hpp.

View newest version in sPHENIX GitHub at line 53 of file BareAlgorithm.hpp


The documentation for this class was generated from the following files: