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

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

+ Inheritance diagram for ActsExamples::BareService:
+ Collaboration diagram for ActsExamples::BareService:

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

Private Attributes

std::string m_name
 
std::unique_ptr< const
Acts::Logger
m_logger
 

Detailed Description

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

Constructor & Destructor Documentation

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

Member Function Documentation

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

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

+ Here is the caller graph for this function:

void ActsExamples::BareService::prepare ( AlgorithmContext ctx)
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

void ActsExamples::BareService::startRun ( )
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

Member Data Documentation

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

std::string ActsExamples::BareService::m_name
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().


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