Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Examples/Io/Csv/include/ActsExamples/Io/Csv/CsvTrackParameterWriter.hpp>
Classes | |
struct | Config |
Public Member Functions | |
CsvTrackParameterWriter (const Config &config, Acts::Logging::Level level) | |
~CsvTrackParameterWriter () override | |
Virtual destructor. | |
std::string | name () const override |
Provide the name of the writer. | |
ProcessCode | write (const AlgorithmContext &ctx) override |
Read the object and call the type-specific member function. | |
ProcessCode | finalize () override |
No-op default implementation. | |
const Config & | config () const |
Get readonly access to the config parameters. | |
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 |
Private Attributes | |
Config | m_cfg |
std::unique_ptr< const Acts::Logger > | m_logger |
ReadDataHandle< std::vector < Acts::BoundTrackParameters > > | m_inputTrackParameters {this, "InputTrackParameters"} |
ReadDataHandle < TrajectoriesContainer > | m_inputTrajectories |
Write track parameters in comma-separated-value format.
This writes one file per event in the configured input directory and filename. Files are assumed to be named using the following schema
event000000001-<stem>.csv event000000002-<stem>.csv
and each line in the file corresponds to one track parameter.
Definition at line 36 of file CsvTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 36 of file CsvTrackParameterWriter.hpp
ActsExamples::CsvTrackParameterWriter::CsvTrackParameterWriter | ( | const Config & | config, |
Acts::Logging::Level | level | ||
) |
Constructor with
config | configuration struct |
level | logging level |
Definition at line 24 of file CsvTrackParameterWriter.cpp.
View newest version in sPHENIX GitHub at line 24 of file CsvTrackParameterWriter.cpp
References ActsExamples::CsvTrackParameterWriter::Config::inputTrackParameters, ActsExamples::CsvTrackParameterWriter::Config::inputTrajectories, m_cfg, m_inputTrackParameters, m_inputTrajectories, and ActsExamples::DataHandleBase::maybeInitialize().
|
overridedefault |
Virtual destructor.
|
inline |
Get readonly access to the config parameters.
Definition at line 69 of file CsvTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 69 of file CsvTrackParameterWriter.hpp
References m_cfg.
|
overridevirtual |
No-op default implementation.
Implements ActsExamples::SequenceElement.
Definition at line 44 of file CsvTrackParameterWriter.cpp.
View newest version in sPHENIX GitHub at line 44 of file CsvTrackParameterWriter.cpp
References SUCCESS.
|
overridevirtual |
Provide the name of the writer.
Implements ActsExamples::SequenceElement.
Definition at line 40 of file CsvTrackParameterWriter.cpp.
View newest version in sPHENIX GitHub at line 40 of file CsvTrackParameterWriter.cpp
|
overridevirtual |
Read the object and call the type-specific member function.
Implements ActsExamples::IWriter.
Definition at line 49 of file CsvTrackParameterWriter.cpp.
View newest version in sPHENIX GitHub at line 49 of file CsvTrackParameterWriter.cpp
References Acts::Test::cov, configureMap::data, Acts::eBoundLoc0, Acts::eBoundLoc1, Acts::eBoundPhi, Acts::eBoundQOverP, Acts::eBoundTheta, ActsExamples::AlgorithmContext::eventNumber, truth_tracking_gsf_refitting::inputTrajectories, m_cfg(), path, ActsExamples::perEventFilepath(), SUCCESS, Acts::Test::tmp(), physmon_simulation::tp, and writer.
|
private |
Definition at line 72 of file CsvTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 72 of file CsvTrackParameterWriter.hpp
Referenced by config(), and CsvTrackParameterWriter().
|
private |
Definition at line 76 of file CsvTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 76 of file CsvTrackParameterWriter.hpp
Referenced by CsvTrackParameterWriter().
|
private |
Definition at line 77 of file CsvTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 77 of file CsvTrackParameterWriter.hpp
Referenced by CsvTrackParameterWriter().
|
private |
Definition at line 73 of file CsvTrackParameterWriter.hpp.
View newest version in sPHENIX GitHub at line 73 of file CsvTrackParameterWriter.hpp