ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FW::CsvTrackingGeometryWriter Class Reference

#include <acts/blob/master/Examples/Io/Csv/include/ACTFW/Io/Csv/CsvTrackingGeometryWriter.hpp>

+ Inheritance diagram for FW::CsvTrackingGeometryWriter:
+ Collaboration diagram for FW::CsvTrackingGeometryWriter:

Classes

struct  Config
 

Public Member Functions

 CsvTrackingGeometryWriter (const Config &cfg, Acts::Logging::Level lvl)
 
std::string name () const finaloverride
 The writer name.
 
ProcessCode write (const AlgorithmContext &context) finaloverride
 Write geometry using the per-event context (optional).
 
ProcessCode endRun () finaloverride
 Write geometry using the default context.
 
- Public Member Functions inherited from FW::IWriter
virtual ~IWriter ()=default
 

Private Member Functions

const Acts::Loggerlogger () const
 

Private Attributes

Config m_cfg
 
const Acts::TrackingVolumem_world
 
std::unique_ptr< const
Acts::Logger
m_logger
 

Detailed Description

Write out the geometry for all sensitive detector surfaces.

This writes a detectors.csv file at the end of the run using the default context to determine the geometry. If configured, it also writes an additional file for each event using the following schema

event000000001-detectors.csv
event000000002-detectors.csv
...

that uses the per-event context to determine the geometry.

Definition at line 34 of file CsvTrackingGeometryWriter.hpp.

View newest version in sPHENIX GitHub at line 34 of file CsvTrackingGeometryWriter.hpp

Constructor & Destructor Documentation

CsvTrackingGeometryWriter::CsvTrackingGeometryWriter ( const Config cfg,
Acts::Logging::Level  lvl 
)

Construct the geometry writer.

Parameters
cfgis the configuration object
lvlis the logging level

Definition at line 27 of file CsvTrackingGeometryWriter.cpp.

View newest version in sPHENIX GitHub at line 27 of file CsvTrackingGeometryWriter.cpp

References m_cfg, m_world, and FW::CsvTrackingGeometryWriter::Config::trackingGeometry.

Member Function Documentation

ProcessCode CsvTrackingGeometryWriter::endRun ( )
finaloverridevirtual

Write geometry using the default context.

Implements FW::IWriter.

Definition at line 163 of file CsvTrackingGeometryWriter.cpp.

View newest version in sPHENIX GitHub at line 163 of file CsvTrackingGeometryWriter.cpp

References FW::joinPaths(), m_cfg, m_world, FW::CsvTrackingGeometryWriter::Config::outputDir, FW::CsvTrackingGeometryWriter::Config::outputPrecision, and SUCCESS.

+ Here is the call graph for this function:

const Acts::Logger& FW::CsvTrackingGeometryWriter::logger ( ) const
inlineprivate

Definition at line 66 of file CsvTrackingGeometryWriter.hpp.

View newest version in sPHENIX GitHub at line 66 of file CsvTrackingGeometryWriter.hpp

References m_logger.

std::string CsvTrackingGeometryWriter::name ( ) const
finaloverridevirtual

The writer name.

Implements FW::IWriter.

Definition at line 43 of file CsvTrackingGeometryWriter.cpp.

View newest version in sPHENIX GitHub at line 43 of file CsvTrackingGeometryWriter.cpp

ProcessCode CsvTrackingGeometryWriter::write ( const AlgorithmContext context)
finaloverridevirtual

Write geometry using the per-event context (optional).

Implements FW::IWriter.

Definition at line 152 of file CsvTrackingGeometryWriter.cpp.

View newest version in sPHENIX GitHub at line 152 of file CsvTrackingGeometryWriter.cpp

References FW::AlgorithmContext::eventNumber, FW::AlgorithmContext::geoContext, m_cfg, m_world, FW::CsvTrackingGeometryWriter::Config::outputDir, FW::CsvTrackingGeometryWriter::Config::outputPrecision, FW::perEventFilepath(), SUCCESS, and FW::CsvTrackingGeometryWriter::Config::writePerEvent.

+ Here is the call graph for this function:

Member Data Documentation

Config FW::CsvTrackingGeometryWriter::m_cfg
private

Definition at line 62 of file CsvTrackingGeometryWriter.hpp.

View newest version in sPHENIX GitHub at line 62 of file CsvTrackingGeometryWriter.hpp

Referenced by CsvTrackingGeometryWriter(), endRun(), and write().

std::unique_ptr<const Acts::Logger> FW::CsvTrackingGeometryWriter::m_logger
private

Definition at line 64 of file CsvTrackingGeometryWriter.hpp.

View newest version in sPHENIX GitHub at line 64 of file CsvTrackingGeometryWriter.hpp

Referenced by logger().

const Acts::TrackingVolume* FW::CsvTrackingGeometryWriter::m_world
private

Definition at line 63 of file CsvTrackingGeometryWriter.hpp.

View newest version in sPHENIX GitHub at line 63 of file CsvTrackingGeometryWriter.hpp

Referenced by CsvTrackingGeometryWriter(), endRun(), and write().


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