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

#include <acts/blob/sPHENIX/Examples/Io/Csv/include/ActsExamples/Io/Csv/CsvSimHitWriter.hpp>

+ Inheritance diagram for ActsExamples::CsvSimHitWriter:
+ Collaboration diagram for ActsExamples::CsvSimHitWriter:

Classes

struct  Config
 

Public Member Functions

 CsvSimHitWriter (const Config &config, Acts::Logging::Level level)
 
const Configconfig () 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::Loggerlogger () const
 

Private Attributes

Config m_cfg
 

Detailed Description

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

Constructor & Destructor Documentation

ActsExamples::CsvSimHitWriter::CsvSimHitWriter ( const Config config,
Acts::Logging::Level  level 
)

Construct the cluster writer.

Parameters
configis the configuration object
levelis 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.

Member Function Documentation

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

Member Data Documentation

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


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