![]() |
EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
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::Logger & | logger () const |
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
| ActsExamples::HelloRandomAlgorithm::HelloRandomAlgorithm | ( | const Config & | cnf, |
| Acts::Logging::Level | level = Acts::Logging::INFO |
||
| ) |
Definition at line 18 of file HelloRandomAlgorithm.cpp.
View newest version in sPHENIX GitHub at line 18 of file HelloRandomAlgorithm.cpp
References m_cfg, ActsExamples::HelloRandomAlgorithm::Config::output, and ActsExamples::HelloRandomAlgorithm::Config::randomNumbers.
|
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:
|
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().