Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::EDM4hepTrackWriter Class Reference

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

+ Inheritance diagram for ActsExamples::EDM4hepTrackWriter:
+ Collaboration diagram for ActsExamples::EDM4hepTrackWriter:

Classes

struct  Config
 

Public Member Functions

 EDM4hepTrackWriter (const Config &config, Acts::Logging::Level level=Acts::Logging::INFO)
 
ProcessCode finalize () final
 Finalize the algorithm.
 
const Configconfig () const
 Readonly access to the config.
 
- Public Member Functions inherited from ActsExamples::WriterT< ConstTrackContainer >
 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 &context, const ConstTrackContainer &tracks) final
 Write method called by the base class.
 
- Protected Member Functions inherited from ActsExamples::WriterT< ConstTrackContainer >
const Acts::Loggerlogger () const
 

Private Attributes

Config m_cfg
 
podio::ROOTFrameWriter m_writer
 

Detailed Description

Definition at line 24 of file EDM4hepTrackWriter.hpp.

View newest version in sPHENIX GitHub at line 24 of file EDM4hepTrackWriter.hpp

Constructor & Destructor Documentation

ActsExamples::EDM4hepTrackWriter::EDM4hepTrackWriter ( const Config config,
Acts::Logging::Level  level = Acts::Logging::INFO 
)

constructor

Parameters
configis the configuration object
levelis the output logging level

Definition at line 21 of file EDM4hepTrackWriter.cpp.

View newest version in sPHENIX GitHub at line 21 of file EDM4hepTrackWriter.cpp

References ActsExamples::EDM4hepTrackWriter::Config::inputTracks, and m_cfg.

Member Function Documentation

const Config& ActsExamples::EDM4hepTrackWriter::config ( ) const
inline

Readonly access to the config.

Definition at line 47 of file EDM4hepTrackWriter.hpp.

View newest version in sPHENIX GitHub at line 47 of file EDM4hepTrackWriter.hpp

References m_cfg.

ActsExamples::ProcessCode ActsExamples::EDM4hepTrackWriter::finalize ( )
finalvirtual

Finalize the algorithm.

Implements ActsExamples::SequenceElement.

Definition at line 32 of file EDM4hepTrackWriter.cpp.

View newest version in sPHENIX GitHub at line 32 of file EDM4hepTrackWriter.cpp

References m_writer, and SUCCESS.

ProcessCode ActsExamples::EDM4hepTrackWriter::writeT ( const AlgorithmContext context,
const ConstTrackContainer tracks 
)
finalprotectedvirtual

Write method called by the base class.

Parameters
[in]contextis the algorithm context for consistency
[in]tracksis the track collection

Implements ActsExamples::WriterT< ConstTrackContainer >.

Definition at line 38 of file EDM4hepTrackWriter.cpp.

View newest version in sPHENIX GitHub at line 38 of file EDM4hepTrackWriter.cpp

References ActsExamples::EDM4hepTrackWriter::Config::Bz, ActsExamples::AlgorithmContext::geoContext, m_cfg, m_writer, testing::internal::move(), ActsExamples::EDM4hepTrackWriter::Config::outputTracks, SUCCESS, and Acts::EDM4hepUtil::writeTrack().

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::EDM4hepTrackWriter::m_cfg
private

Definition at line 57 of file EDM4hepTrackWriter.hpp.

View newest version in sPHENIX GitHub at line 57 of file EDM4hepTrackWriter.hpp

Referenced by config(), EDM4hepTrackWriter(), and writeT().

podio::ROOTFrameWriter ActsExamples::EDM4hepTrackWriter::m_writer
private

Definition at line 59 of file EDM4hepTrackWriter.hpp.

View newest version in sPHENIX GitHub at line 59 of file EDM4hepTrackWriter.hpp

Referenced by finalize(), and writeT().


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