Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Examples/Io/Csv/include/ActsExamples/Io/Csv/CsvSimHitWriter.hpp>
Classes | |
struct | Config |
Public Member Functions | |
CsvSimHitWriter (const Config &config, Acts::Logging::Level level) | |
const Config & | config () const |
Readonly access to the config. | |
Public Member Functions inherited from ActsExamples::WriterT< SimHitContainer > | |
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 &ctx, const SimHitContainer &simHits) override |
Protected Member Functions inherited from ActsExamples::WriterT< SimHitContainer > | |
const Acts::Logger & | logger () const |
Private Attributes | |
Config | m_cfg |
Write out a simhit collection before detector digitization in comma- separated-value format.
This writes one file per event containing information about the global space points, momenta (before and after interaction) and hit index into the configured output directory. By default it writes to the current working directory. Files are named using the following schema
event000000001-<stem>.csv event000000002-<stem>.csv ...
and each line in the file corresponds to one simhit.
Definition at line 37 of file CsvSimHitWriter.hpp.
View newest version in sPHENIX GitHub at line 37 of file CsvSimHitWriter.hpp
ActsExamples::CsvSimHitWriter::CsvSimHitWriter | ( | const Config & | config, |
Acts::Logging::Level | level | ||
) |
Construct the cluster writer.
config | is the configuration object |
level | is the logging level |
Definition at line 28 of file CsvSimHitWriter.cpp.
View newest version in sPHENIX GitHub at line 28 of file CsvSimHitWriter.cpp
References m_cfg, and ActsExamples::CsvSimHitWriter::Config::outputStem.
|
inline |
Readonly access to the config.
Definition at line 57 of file CsvSimHitWriter.hpp.
View newest version in sPHENIX GitHub at line 57 of file CsvSimHitWriter.hpp
References m_cfg.
|
overrideprotectedvirtual |
Type-specific write implementation.
[in] | ctx | is the algorithm context |
[in] | simHits | are the simhits to be written |
Implements ActsExamples::WriterT< SimHitContainer >.
Definition at line 38 of file CsvSimHitWriter.cpp.
View newest version in sPHENIX GitHub at line 38 of file CsvSimHitWriter.cpp
References ActsExamples::SimHitData::deltae, ActsExamples::SimHitData::deltapx, ActsExamples::SimHitData::deltapy, ActsExamples::SimHitData::deltapz, Acts::eEnergy, Acts::eMom0, Acts::eMom1, Acts::eMom2, Acts::ePos0, Acts::ePos1, Acts::ePos2, Acts::eTime, ActsExamples::AlgorithmContext::eventNumber, ActsExamples::SimHitData::geometry_id, Acts::UnitConstants::GeV, ActsExamples::SimHitData::index, m_cfg(), Acts::UnitConstants::mm, Acts::UnitConstants::ns, ActsExamples::SimHitData::particle_id, ActsExamples::perEventFilepath(), SUCCESS, ActsExamples::SimHitData::te, ActsExamples::SimHitData::tpx, ActsExamples::SimHitData::tpy, ActsExamples::SimHitData::tpz, ActsExamples::SimHitData::tt, ActsExamples::SimHitData::tx, ActsExamples::SimHitData::ty, and ActsExamples::SimHitData::tz.
|
private |
Definition at line 68 of file CsvSimHitWriter.hpp.
View newest version in sPHENIX GitHub at line 68 of file CsvSimHitWriter.hpp
Referenced by config(), and CsvSimHitWriter().