EIC 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 &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 ActsExamples::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 29 of file CsvTrackingGeometryWriter.cpp.

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

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

Member Function Documentation

ProcessCode CsvTrackingGeometryWriter::endRun ( )
finaloverridevirtual

Write geometry using the default context.

Implements ActsExamples::IWriter.

Definition at line 165 of file CsvTrackingGeometryWriter.cpp.

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

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

+ Here is the call graph for this function:

const Acts::Logger& ActsExamples::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 ActsExamples::IWriter.

Definition at line 45 of file CsvTrackingGeometryWriter.cpp.

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

Referenced by eicpy.verify.PythiaHistograms::__init__(), and eicpy.verify.DjangohHistograms::__init__().

+ Here is the caller graph for this function:

ProcessCode CsvTrackingGeometryWriter::write ( const AlgorithmContext context)
finaloverridevirtual

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

Implements ActsExamples::IWriter.

Definition at line 154 of file CsvTrackingGeometryWriter.cpp.

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

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

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::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> ActsExamples::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* ActsExamples::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: