ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FW::HelloService Class Reference

A simple service that adds an event block index. More...

#include <acts/blob/master/Examples/Run/HelloWorld/HelloService.hpp>

+ Inheritance diagram for FW::HelloService:
+ Collaboration diagram for FW::HelloService:

Classes

struct  Config
 

Public Member Functions

 HelloService (const Config &cfg, Acts::Logging::Level level)
 
void startRun () finaloverride
 Default noop implementation for the start-of-run hook.
 
void prepare (AlgorithmContext &ctx) finaloverride
 Default noop implementation for the per-event prepare hook.
 
- Public Member Functions inherited from FW::BareService
 BareService (std::string name, Acts::Logging::Level level=Acts::Logging::INFO)
 
std::string name () const finaloverride
 The service name.
 
- Public Member Functions inherited from FW::IService
virtual ~IService ()=default
 

Private Attributes

Config m_cfg
 

Additional Inherited Members

- Protected Member Functions inherited from FW::BareService
const Acts::Loggerlogger () const
 

Detailed Description

A simple service that adds an event block index.

Definition at line 19 of file HelloService.hpp.

View newest version in sPHENIX GitHub at line 19 of file HelloService.hpp

Constructor & Destructor Documentation

FW::HelloService::HelloService ( const Config cfg,
Acts::Logging::Level  level 
)

Definition at line 15 of file HelloService.cpp.

View newest version in sPHENIX GitHub at line 15 of file HelloService.cpp

Member Function Documentation

void FW::HelloService::prepare ( AlgorithmContext ctx)
finaloverridevirtual

Default noop implementation for the per-event prepare hook.

Reimplemented from FW::BareService.

Definition at line 24 of file HelloService.cpp.

View newest version in sPHENIX GitHub at line 24 of file HelloService.cpp

References FW::WhiteBoard::add(), FW::HelloService::Config::blockIndexName, FW::AlgorithmContext::eventNumber, FW::HelloService::Config::eventsPerBlock, FW::AlgorithmContext::eventStore, and m_cfg.

+ Here is the call graph for this function:

void FW::HelloService::startRun ( )
finaloverridevirtual

Default noop implementation for the start-of-run hook.

Reimplemented from FW::BareService.

Definition at line 18 of file HelloService.cpp.

View newest version in sPHENIX GitHub at line 18 of file HelloService.cpp

Member Data Documentation

Config FW::HelloService::m_cfg
private

Definition at line 35 of file HelloService.hpp.

View newest version in sPHENIX GitHub at line 35 of file HelloService.hpp

Referenced by prepare().


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