EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/sPHENIX/Examples/Framework/include/ActsExamples/Framework/BareService.hpp>
Public Member Functions | |
BareService (std::string name, Acts::Logging::Level level=Acts::Logging::INFO) | |
std::string | name () const finaloverride |
The service name. | |
void | startRun () override |
Default noop implementation for the start-of-run hook. | |
void | prepare (AlgorithmContext &ctx) override |
Default noop implementation for the per-event prepare hook. | |
Public Member Functions inherited from ActsExamples::IService | |
virtual | ~IService ()=default |
Protected Member Functions | |
const Acts::Logger & | logger () const |
Private Attributes | |
std::string | m_name |
std::unique_ptr< const Acts::Logger > | m_logger |
A helper class for users to implement framework services.
This class provides default implementations for all interface methods and and adds a default logger that can be used directly in subclasses. Service implementations only need to implement the method that are actually doing something.
Definition at line 29 of file BareService.hpp.
View newest version in sPHENIX GitHub at line 29 of file BareService.hpp
ActsExamples::BareService::BareService | ( | std::string | name, |
Acts::Logging::Level | level = Acts::Logging::INFO |
||
) |
Definition at line 13 of file BareService.cpp.
View newest version in sPHENIX GitHub at line 13 of file BareService.cpp
|
inlineprotected |
Definition at line 44 of file BareService.hpp.
View newest version in sPHENIX GitHub at line 44 of file BareService.hpp
References m_logger.
|
finaloverridevirtual |
The service name.
Implements ActsExamples::IService.
Definition at line 17 of file BareService.cpp.
View newest version in sPHENIX GitHub at line 17 of file BareService.cpp
References m_name.
Referenced by eicpy.verify.PythiaHistograms::__init__(), and eicpy.verify.DjangohHistograms::__init__().
|
overridevirtual |
Default noop implementation for the per-event prepare hook.
Implements ActsExamples::IService.
Reimplemented in ActsExamples::HelloService.
Definition at line 25 of file BareService.cpp.
View newest version in sPHENIX GitHub at line 25 of file BareService.cpp
|
overridevirtual |
Default noop implementation for the start-of-run hook.
Implements ActsExamples::IService.
Reimplemented in ActsExamples::HelloService.
Definition at line 21 of file BareService.cpp.
View newest version in sPHENIX GitHub at line 21 of file BareService.cpp
|
private |
Definition at line 48 of file BareService.hpp.
View newest version in sPHENIX GitHub at line 48 of file BareService.hpp
Referenced by logger().
|
private |
Definition at line 47 of file BareService.hpp.
View newest version in sPHENIX GitHub at line 47 of file BareService.hpp
Referenced by name().