EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/sPHENIX/Examples/Io/Csv/include/ActsExamples/Io/Csv/CsvTrackingGeometryWriter.hpp>
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::Logger & | logger () const |
Private Attributes | |
Config | m_cfg |
const Acts::TrackingVolume * | m_world |
std::unique_ptr< const Acts::Logger > | m_logger |
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
CsvTrackingGeometryWriter::CsvTrackingGeometryWriter | ( | const Config & | cfg, |
Acts::Logging::Level | lvl | ||
) |
Construct the geometry writer.
cfg | is the configuration object |
lvl | is 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.
|
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.
|
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.
|
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__().
|
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.
|
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().
|
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().
|
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().