Analysis Software
Documentation for sPHENIX simulation software
|
Classes | |
struct | Config |
Public Member Functions | |
RootNuclearInteractionParametersWriter (const Config &config, Acts::Logging::Level level) | |
~RootNuclearInteractionParametersWriter () override | |
ProcessCode | finalize () override |
End-of-run hook. | |
const Config & | config () const |
Get readonly access to the config parameters. | |
Public Member Functions inherited from ActsExamples::WriterT< ExtractedSimulationProcessContainer > | |
WriterT (std::string objectName, std::string writerName, Acts::Logging::Level level) | |
std::string | name () const override |
Provide the name of the writer. | |
ProcessCode | write (const AlgorithmContext &context) override |
Read the object and call the type-specific member function. | |
ProcessCode | finalize () override |
No-op default implementation. | |
Public Member Functions inherited from ActsExamples::IWriter | |
ProcessCode | internalExecute (const AlgorithmContext &context) final |
ProcessCode | initialize () override |
Fulfil the algorithm interface. | |
Public Member Functions inherited from ActsExamples::SequenceElement | |
virtual | ~SequenceElement ()=default |
const std::vector< const DataHandleBase * > & | writeHandles () const |
const std::vector< const DataHandleBase * > & | readHandles () const |
Protected Member Functions | |
ProcessCode | writeT (const AlgorithmContext &, const ExtractedSimulationProcessContainer &event) override |
Write method called by the base class. | |
Protected Member Functions inherited from ActsExamples::WriterT< ExtractedSimulationProcessContainer > | |
const Acts::Logger & | logger () const |
Private Attributes | |
Config | m_cfg |
The config class. | |
std::mutex | m_writeMutex |
Mutex used to protect multi-threaded writes. | |
std::vector < detail::NuclearInteractionParametrisation::EventFraction > | m_eventFractionCollection |
The recorded fractions of events. | |
This class takes fractions of recorded events that represent the effect of a nuclear interaction and produces histograms and parameters which can be used for a parametrisation based simultion of nuclear interaction. Since the parameters are based on the set of all provided events, during the event loop newly provided events are stored until the end of the run. Then all parts are calculated and written to file.
Definition at line 30 of file RootNuclearInteractionParametersWriter.hpp.
View newest version in sPHENIX GitHub at line 30 of file RootNuclearInteractionParametersWriter.hpp
ActsExamples::RootNuclearInteractionParametersWriter::RootNuclearInteractionParametersWriter | ( | const Config & | config, |
Acts::Logging::Level | level | ||
) |
Constructor
config | Configuration struct |
level | Message level declaration |
Definition at line 350 of file RootNuclearInteractionParametersWriter.cpp.
View newest version in sPHENIX GitHub at line 350 of file RootNuclearInteractionParametersWriter.cpp
References ActsExamples::RootNuclearInteractionParametersWriter::Config::filePath, ActsExamples::RootNuclearInteractionParametersWriter::Config::inputSimulationProcesses, and m_cfg.
|
overridedefault |
|
inline |
Get readonly access to the config parameters.
Definition at line 67 of file RootNuclearInteractionParametersWriter.hpp.
View newest version in sPHENIX GitHub at line 67 of file RootNuclearInteractionParametersWriter.hpp
References m_cfg.
|
overridevirtual |
End-of-run hook.
Implements ActsExamples::SequenceElement.
Definition at line 369 of file RootNuclearInteractionParametersWriter.cpp.
View newest version in sPHENIX GitHub at line 369 of file RootNuclearInteractionParametersWriter.cpp
References ACTS_DEBUG, ActsExamples::detail::NuclearInteractionParametrisation::cumulativeMultiplicityProbability(), ActsExamples::detail::NuclearInteractionParametrisation::cumulativeNuclearInteractionProbability(), ActsExamples::detail::NuclearInteractionParametrisation::cumulativePDGprobability(), m_cfg(), ActsExamples::detail::NuclearInteractionParametrisation::softProbability(), SUCCESS, and to_string().
|
overrideprotectedvirtual |
Write method called by the base class.
[in] | ctx | is the algorithm context for event information |
[in] | event | Fraction of an event that will be stored in m_eventFractionCollection |
Implements ActsExamples::WriterT< ExtractedSimulationProcessContainer >.
Definition at line 482 of file RootNuclearInteractionParametersWriter.cpp.
View newest version in sPHENIX GitHub at line 482 of file RootNuclearInteractionParametersWriter.cpp
References Acts::UnitConstants::e, and SUCCESS.
|
private |
The config class.
Definition at line 78 of file RootNuclearInteractionParametersWriter.hpp.
View newest version in sPHENIX GitHub at line 78 of file RootNuclearInteractionParametersWriter.hpp
Referenced by config(), and RootNuclearInteractionParametersWriter().
|
private |
The recorded fractions of events.
Definition at line 81 of file RootNuclearInteractionParametersWriter.hpp.
View newest version in sPHENIX GitHub at line 81 of file RootNuclearInteractionParametersWriter.hpp
|
private |
Mutex used to protect multi-threaded writes.
Definition at line 79 of file RootNuclearInteractionParametersWriter.hpp.
View newest version in sPHENIX GitHub at line 79 of file RootNuclearInteractionParametersWriter.hpp