Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Examples/Io/Json/include/ActsExamples/Io/Json/JsonSurfacesWriter.hpp>
Classes | |
struct | Config |
Public Member Functions | |
JsonSurfacesWriter (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 |
Readonly access to config. | |
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 detector surfaces.
This writes a detectors.json
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.json event000000002-detectors.json ...
that uses the per-event context to determine the geometry.
Definition at line 40 of file JsonSurfacesWriter.hpp.
View newest version in sPHENIX GitHub at line 40 of file JsonSurfacesWriter.hpp
JsonSurfacesWriter::JsonSurfacesWriter | ( | const Config & | config, |
Acts::Logging::Level | level | ||
) |
Construct the geometry writer.
config | is the configuration object |
level | is the logging level |
Definition at line 40 of file JsonSurfacesWriter.cpp.
View newest version in sPHENIX GitHub at line 40 of file JsonSurfacesWriter.cpp
References m_cfg, m_world, and ActsExamples::JsonSurfacesWriter::Config::trackingGeometry.
|
inline |
Readonly access to config.
Definition at line 78 of file JsonSurfacesWriter.hpp.
View newest version in sPHENIX GitHub at line 78 of file JsonSurfacesWriter.hpp
References m_cfg.
|
overridevirtual |
Write geometry using the default context.
Implements ActsExamples::SequenceElement.
Definition at line 155 of file JsonSurfacesWriter.cpp.
View newest version in sPHENIX GitHub at line 155 of file JsonSurfacesWriter.cpp
References j, ActsExamples::joinPaths(), m_cfg, m_world, out, ActsExamples::JsonSurfacesWriter::Config::outputDir, ActsExamples::JsonSurfacesWriter::Config::outputPrecision, SUCCESS, ActsExamples::JsonSurfacesWriter::Config::writeApproach, ActsExamples::JsonSurfacesWriter::Config::writeBoundary, ActsExamples::JsonSurfacesWriter::Config::writeLayer, and ActsExamples::JsonSurfacesWriter::Config::writeSensitive.
|
inlineprivate |
Definition at line 85 of file JsonSurfacesWriter.hpp.
View newest version in sPHENIX GitHub at line 85 of file JsonSurfacesWriter.hpp
References m_logger.
|
overridevirtual |
The algorithm name.
Implements ActsExamples::SequenceElement.
Definition at line 53 of file JsonSurfacesWriter.cpp.
View newest version in sPHENIX GitHub at line 53 of file JsonSurfacesWriter.cpp
|
overridevirtual |
Write geometry using the per-event context (optional).
Implements ActsExamples::IWriter.
Definition at line 118 of file JsonSurfacesWriter.cpp.
View newest version in sPHENIX GitHub at line 118 of file JsonSurfacesWriter.cpp
References ActsExamples::AlgorithmContext::eventNumber, j, m_cfg, m_world, out, ActsExamples::JsonSurfacesWriter::Config::outputDir, ActsExamples::JsonSurfacesWriter::Config::outputPrecision, ActsExamples::perEventFilepath(), SUCCESS, ActsExamples::JsonSurfacesWriter::Config::writeApproach, ActsExamples::JsonSurfacesWriter::Config::writeBoundary, ActsExamples::JsonSurfacesWriter::Config::writeLayer, ActsExamples::JsonSurfacesWriter::Config::writeOnlyNames, ActsExamples::JsonSurfacesWriter::Config::writePerEvent, and ActsExamples::JsonSurfacesWriter::Config::writeSensitive.
|
private |
Definition at line 81 of file JsonSurfacesWriter.hpp.
View newest version in sPHENIX GitHub at line 81 of file JsonSurfacesWriter.hpp
Referenced by config(), finalize(), JsonSurfacesWriter(), and write().
|
private |
Definition at line 83 of file JsonSurfacesWriter.hpp.
View newest version in sPHENIX GitHub at line 83 of file JsonSurfacesWriter.hpp
Referenced by logger().
|
private |
Definition at line 82 of file JsonSurfacesWriter.hpp.
View newest version in sPHENIX GitHub at line 82 of file JsonSurfacesWriter.hpp
Referenced by finalize(), JsonSurfacesWriter(), and write().