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

An example algorithm that uses the random number generator to generate data. More...

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

+ Inheritance diagram for FW::HelloRandomAlgorithm:
+ Collaboration diagram for FW::HelloRandomAlgorithm:

Classes

struct  Config
 

Public Member Functions

 HelloRandomAlgorithm (const Config &cnf, Acts::Logging::Level level=Acts::Logging::INFO)
 
FW::ProcessCode execute (const AlgorithmContext &ctx) const finaloverride
 
- Public Member Functions inherited from FW::BareAlgorithm
 BareAlgorithm (std::string name, Acts::Logging::Level level=Acts::Logging::INFO)
 
std::string name () const finaloverride
 The algorithm name.
 

Private Attributes

Config m_cfg
 

Additional Inherited Members

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

Detailed Description

An example algorithm that uses the random number generator to generate data.

Definition at line 21 of file HelloRandomAlgorithm.hpp.

View newest version in sPHENIX GitHub at line 21 of file HelloRandomAlgorithm.hpp

Constructor & Destructor Documentation

FW::HelloRandomAlgorithm::HelloRandomAlgorithm ( const Config cnf,
Acts::Logging::Level  level = Acts::Logging::INFO 
)

Definition at line 17 of file HelloRandomAlgorithm.cpp.

View newest version in sPHENIX GitHub at line 17 of file HelloRandomAlgorithm.cpp

References m_cfg, FW::HelloRandomAlgorithm::Config::output, and FW::HelloRandomAlgorithm::Config::randomNumbers.

Member Function Documentation

FW::ProcessCode FW::HelloRandomAlgorithm::execute ( const AlgorithmContext context) const
finaloverridevirtual

Execute the algorithm for one event.

This function must be implemented by subclasses.

Implements FW::BareAlgorithm.

Definition at line 28 of file HelloRandomAlgorithm.cpp.

View newest version in sPHENIX GitHub at line 28 of file HelloRandomAlgorithm.cpp

References FW::HelloData::a, ACTS_INFO, ACTS_VERBOSE, FW::WhiteBoard::add(), FW::HelloData::b, FW::AlgorithmContext::eventStore, gauss, SUCCESS, FW::HelloData::t, FW::HelloData::x, and x.

+ Here is the call graph for this function:

Member Data Documentation

Config FW::HelloRandomAlgorithm::m_cfg
private

Definition at line 42 of file HelloRandomAlgorithm.hpp.

View newest version in sPHENIX GitHub at line 42 of file HelloRandomAlgorithm.hpp

Referenced by HelloRandomAlgorithm().


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