Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Examples/Io/EDM4hep/include/ActsExamples/Io/EDM4hep/EDM4hepParticleWriter.hpp>
Classes | |
struct | Config |
Public Member Functions | |
EDM4hepParticleWriter (const Config &cfg, Acts::Logging::Level lvl) | |
ProcessCode | finalize () final |
Finalize the algorithm. | |
const Config & | config () const |
Readonly access to the config. | |
Public Member Functions inherited from ActsExamples::WriterT< SimParticleContainer > | |
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 ActsExamples::AlgorithmContext &ctx, const SimParticleContainer &particles) final |
Protected Member Functions inherited from ActsExamples::WriterT< SimParticleContainer > | |
const Acts::Logger & | logger () const |
Private Attributes | |
Config | m_cfg |
podio::ROOTFrameWriter | m_writer |
Write particles to EDM4hep
Inpersistent information:
Definition at line 25 of file EDM4hepParticleWriter.hpp.
View newest version in sPHENIX GitHub at line 25 of file EDM4hepParticleWriter.hpp
ActsExamples::EDM4hepParticleWriter::EDM4hepParticleWriter | ( | const Config & | cfg, |
Acts::Logging::Level | lvl | ||
) |
Construct the particle writer.
cfg is the configuration object lvl is the logging level
Definition at line 24 of file EDM4hepParticleWriter.cpp.
View newest version in sPHENIX GitHub at line 24 of file EDM4hepParticleWriter.cpp
References ACTS_VERBOSE, ActsExamples::EDM4hepParticleWriter::Config::inputParticles, m_cfg, and ActsExamples::EDM4hepParticleWriter::Config::outputPath.
|
inline |
Readonly access to the config.
Definition at line 45 of file EDM4hepParticleWriter.hpp.
View newest version in sPHENIX GitHub at line 45 of file EDM4hepParticleWriter.hpp
References m_cfg.
|
finalvirtual |
Finalize the algorithm.
Implements ActsExamples::SequenceElement.
Definition at line 36 of file EDM4hepParticleWriter.cpp.
View newest version in sPHENIX GitHub at line 36 of file EDM4hepParticleWriter.cpp
|
finalprotectedvirtual |
Type-specific write implementation.
[in] | ctx | is the algorithm context |
[in] | particles | are the particle to be written |
Implements ActsExamples::WriterT< SimParticleContainer >.
Definition at line 42 of file EDM4hepParticleWriter.cpp.
View newest version in sPHENIX GitHub at line 42 of file EDM4hepParticleWriter.cpp
References m_cfg, m_writer, testing::internal::move(), ActsExamples::EDM4hepParticleWriter::Config::outputParticles, merge_hashes::p, particle, SUCCESS, and ActsExamples::EDM4hepUtil::writeParticle().
|
private |
Definition at line 56 of file EDM4hepParticleWriter.hpp.
View newest version in sPHENIX GitHub at line 56 of file EDM4hepParticleWriter.hpp
Referenced by config(), EDM4hepParticleWriter(), and writeT().
|
private |
Definition at line 58 of file EDM4hepParticleWriter.hpp.
View newest version in sPHENIX GitHub at line 58 of file EDM4hepParticleWriter.hpp
Referenced by finalize(), and writeT().