Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::CsvTrackingGeometryWriter Class Reference

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

+ Inheritance diagram for ActsExamples::CsvTrackingGeometryWriter:
+ Collaboration diagram for ActsExamples::CsvTrackingGeometryWriter:

Classes

struct  Config
 

Public Member Functions

 CsvTrackingGeometryWriter (const Config &config, Acts::Logging::Level level)
 
std::string name () const override
 The algorithm name.
 
ProcessCode write (const AlgorithmContext &ctx) override
 Write geometry using the per-event context (optional).
 
ProcessCode finalize () override
 Write geometry using the default context.
 
const Configconfig () 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 Member Functions

const Acts::Loggerlogger () const
 

Private Attributes

Config m_cfg
 
const Acts::TrackingVolumem_world = nullptr
 
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 40 of file CsvTrackingGeometryWriter.hpp.

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

Constructor & Destructor Documentation

CsvTrackingGeometryWriter::CsvTrackingGeometryWriter ( const Config config,
Acts::Logging::Level  level 
)

Construct the geometry writer.

Parameters
configis the configuration object
levelis the logging level

Definition at line 47 of file CsvTrackingGeometryWriter.cpp.

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

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

Member Function Documentation

const Config& ActsExamples::CsvTrackingGeometryWriter::config ( ) const
inline

Get readonly access to the config parameters.

Definition at line 76 of file CsvTrackingGeometryWriter.hpp.

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

References m_cfg.

ProcessCode CsvTrackingGeometryWriter::finalize ( )
overridevirtual
const Acts::Logger& ActsExamples::CsvTrackingGeometryWriter::logger ( ) const
inlineprivate

Definition at line 83 of file CsvTrackingGeometryWriter.hpp.

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

References m_logger.

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

The algorithm name.

Implements ActsExamples::SequenceElement.

Definition at line 62 of file CsvTrackingGeometryWriter.cpp.

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

Member Data Documentation

Config ActsExamples::CsvTrackingGeometryWriter::m_cfg
private

Definition at line 79 of file CsvTrackingGeometryWriter.hpp.

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

Referenced by config(), CsvTrackingGeometryWriter(), finalize(), and write().

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

Definition at line 81 of file CsvTrackingGeometryWriter.hpp.

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

Referenced by logger().

const Acts::TrackingVolume* ActsExamples::CsvTrackingGeometryWriter::m_world = nullptr
private

Definition at line 80 of file CsvTrackingGeometryWriter.hpp.

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

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


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