ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
An example algorithm that uses the random number generator to generate data. More...
#include <acts/blob/master/Examples/Run/HelloWorld/HelloRandomAlgorithm.hpp>
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::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
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.
|
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.
|
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().