Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Examples/Io/Csv/include/ActsExamples/Io/Csv/CsvTrackingGeometryWriter.hpp>
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 Config & | config () 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::Logger & | logger () const |
Private Attributes | |
Config | m_cfg |
const Acts::TrackingVolume * | m_world = nullptr |
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 40 of file CsvTrackingGeometryWriter.hpp.
View newest version in sPHENIX GitHub at line 40 of file CsvTrackingGeometryWriter.hpp
CsvTrackingGeometryWriter::CsvTrackingGeometryWriter | ( | const Config & | config, |
Acts::Logging::Level | level | ||
) |
Construct the geometry writer.
config | is the configuration object |
level | is 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.
|
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.
|
overridevirtual |
Write geometry using the default context.
Implements ActsExamples::SequenceElement.
Definition at line 410 of file CsvTrackingGeometryWriter.cpp.
View newest version in sPHENIX GitHub at line 410 of file CsvTrackingGeometryWriter.cpp
References ActsExamples::joinPaths(), m_cfg, m_world, ActsExamples::CsvTrackingGeometryWriter::Config::outputDir, ActsExamples::CsvTrackingGeometryWriter::Config::outputPrecision, SUCCESS, ActsExamples::CsvTrackingGeometryWriter::Config::writeBoundary, ActsExamples::CsvTrackingGeometryWriter::Config::writeLayerVolume, ActsExamples::CsvTrackingGeometryWriter::Config::writeSensitive, and ActsExamples::CsvTrackingGeometryWriter::Config::writeSurfaceGrid.
|
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.
|
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
|
overridevirtual |
Write geometry using the per-event context (optional).
Implements ActsExamples::IWriter.
Definition at line 387 of file CsvTrackingGeometryWriter.cpp.
View newest version in sPHENIX GitHub at line 387 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, ActsExamples::CsvTrackingGeometryWriter::Config::writeBoundary, ActsExamples::CsvTrackingGeometryWriter::Config::writeLayerVolume, ActsExamples::CsvTrackingGeometryWriter::Config::writePerEvent, ActsExamples::CsvTrackingGeometryWriter::Config::writeSensitive, and ActsExamples::CsvTrackingGeometryWriter::Config::writeSurfaceGrid.
|
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().
|
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().
|
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().