Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Examples/Io/EDM4hep/include/ActsExamples/Io/EDM4hep/EDM4hepTrackWriter.hpp>
Classes | |
struct | Config |
Public Member Functions | |
EDM4hepTrackWriter (const Config &config, Acts::Logging::Level level=Acts::Logging::INFO) | |
ProcessCode | finalize () final |
Finalize the algorithm. | |
const Config & | config () 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::Logger & | logger () const |
Private Attributes | |
Config | m_cfg |
podio::ROOTFrameWriter | m_writer |
Definition at line 24 of file EDM4hepTrackWriter.hpp.
View newest version in sPHENIX GitHub at line 24 of file EDM4hepTrackWriter.hpp
ActsExamples::EDM4hepTrackWriter::EDM4hepTrackWriter | ( | const Config & | config, |
Acts::Logging::Level | level = Acts::Logging::INFO |
||
) |
constructor
config | is the configuration object |
level | is 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.
|
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.
|
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
|
finalprotectedvirtual |
Write method called by the base class.
[in] | context | is the algorithm context for consistency |
[in] | tracks | is 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().
|
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().
|
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().