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

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

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

+ Inheritance diagram for ActsExamples::HelloRandomAlgorithm:
+ Collaboration diagram for ActsExamples::HelloRandomAlgorithm:

Classes

struct  Config
 

Public Member Functions

 HelloRandomAlgorithm (const Config &cnf, Acts::Logging::Level level=Acts::Logging::INFO)
 
ActsExamples::ProcessCode execute (const AlgorithmContext &ctx) const finaloverride
 
- Public Member Functions inherited from ActsExamples::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 ActsExamples::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

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

Member Function Documentation

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

Execute the algorithm for one event.

This function must be implemented by subclasses.

Implements ActsExamples::BareAlgorithm.

Definition at line 29 of file HelloRandomAlgorithm.cpp.

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

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

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::HelloRandomAlgorithm::m_cfg
private

Definition at line 43 of file HelloRandomAlgorithm.hpp.

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

Referenced by HelloRandomAlgorithm().


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