Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::EDM4hepParticleWriter Exception Referencefinal

#include <acts/blob/sPHENIX/Examples/Io/EDM4hep/include/ActsExamples/Io/EDM4hep/EDM4hepParticleWriter.hpp>

+ Inheritance diagram for ActsExamples::EDM4hepParticleWriter:
+ Collaboration diagram for ActsExamples::EDM4hepParticleWriter:

Classes

struct  Config
 

Public Member Functions

 EDM4hepParticleWriter (const Config &cfg, Acts::Logging::Level lvl)
 
ProcessCode finalize () final
 Finalize the algorithm.
 
const Configconfig () 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::Loggerlogger () const
 

Private Attributes

Config m_cfg
 
podio::ROOTFrameWriter m_writer
 

Detailed Description

Write particles to EDM4hep

Inpersistent information:

  • particle ID
  • process

Definition at line 25 of file EDM4hepParticleWriter.hpp.

View newest version in sPHENIX GitHub at line 25 of file EDM4hepParticleWriter.hpp

Constructor & Destructor Documentation

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.

Member Function Documentation

const Config& ActsExamples::EDM4hepParticleWriter::config ( ) const
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.

ActsExamples::ProcessCode ActsExamples::EDM4hepParticleWriter::finalize ( )
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

References m_writer, and SUCCESS.

ProcessCode ActsExamples::EDM4hepParticleWriter::writeT ( const ActsExamples::AlgorithmContext ctx,
const SimParticleContainer particles 
)
finalprotectedvirtual

Type-specific write implementation.

Parameters
[in]ctxis the algorithm context
[in]particlesare 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().

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::EDM4hepParticleWriter::m_cfg
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().

podio::ROOTFrameWriter ActsExamples::EDM4hepParticleWriter::m_writer
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().


The documentation for this exception was generated from the following files: