![]() |
Analysis Software
Documentation for sPHENIX simulation software
|
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 &cfg, Acts::Logging::Level level=Acts::Logging::INFO) | |
| ActsExamples::ProcessCode | execute (const AlgorithmContext &ctx) const override |
Public Member Functions inherited from ActsExamples::IAlgorithm | |
| IAlgorithm (std::string name, Acts::Logging::Level level=Acts::Logging::INFO) | |
| std::string | name () const override |
| The algorithm name. | |
| ProcessCode | internalExecute (const AlgorithmContext &context) final |
| ProcessCode | initialize () override |
| Initialize the algorithm. | |
| ProcessCode | finalize () override |
| Finalize the algorithm. | |
Public Attributes | |
| WriteDataHandle < HelloDataCollection > | m_writeHandle {this, "Output"} |
Private Attributes | |
| Config | m_cfg |
Additional Inherited Members | |
Protected Member Functions inherited from ActsExamples::IAlgorithm | |
| const Acts::Logger & | logger () const |
An example algorithm that uses the random number generator to generate data.
Definition at line 24 of file HelloRandomAlgorithm.hpp.
View newest version in sPHENIX GitHub at line 24 of file HelloRandomAlgorithm.hpp
| ActsExamples::HelloRandomAlgorithm::HelloRandomAlgorithm | ( | const Config & | cfg, |
| 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 ActsExamples::WriteDataHandle< T >::initialize(), m_cfg, m_writeHandle, ActsExamples::HelloRandomAlgorithm::Config::output, and ActsExamples::HelloRandomAlgorithm::Config::randomNumbers.
Here is the call graph for this function:
|
overridevirtual |
Execute the algorithm for one event.
This function must be implemented by subclasses.
Implements ActsExamples::IAlgorithm.
Definition at line 30 of file HelloRandomAlgorithm.cpp.
View newest version in sPHENIX GitHub at line 30 of file HelloRandomAlgorithm.cpp
References ACTS_INFO, ACTS_VERBOSE, Acts::EventDataView3DTest::gauss(), m_cfg(), testing::internal::move(), conftest::rng(), SUCCESS, and ambiguity_solver_full_chain::x.
Here is the call graph for this function:
|
private |
Definition at line 47 of file HelloRandomAlgorithm.hpp.
View newest version in sPHENIX GitHub at line 47 of file HelloRandomAlgorithm.hpp
Referenced by HelloRandomAlgorithm().
| WriteDataHandle<HelloDataCollection> ActsExamples::HelloRandomAlgorithm::m_writeHandle {this, "Output"} |
Definition at line 44 of file HelloRandomAlgorithm.hpp.
View newest version in sPHENIX GitHub at line 44 of file HelloRandomAlgorithm.hpp
Referenced by HelloRandomAlgorithm().