|
ACTS
Experiment-independent tracking
|
config struct for detector writing. More...
#include <detray/io/frontend/detector_writer_config.hpp>
Public Member Functions | |
| const std::string & | path () const |
| GettersReturn the output directory used for detector files. | |
| detray::io::format | format () const |
| Return the selected output format. | |
| bool | replace_files () const |
| Return whether existing output files are replaced. | |
| bool | compactify_json () const |
| Return whether JSON output is compacted. | |
| bool | write_material () const |
| Return whether material data is written. | |
| bool | write_grids () const |
| Return whether accelerator grids are written. | |
| detector_writer_config & | path (std::string p) |
| SettersSet the output directory. | |
| detector_writer_config & | format (detray::io::format f) |
| Select the serialization format. | |
| detector_writer_config & | replace_files (bool flag) |
| Configure whether to replace existing files. | |
| detector_writer_config & | compactify_json (bool flag) |
| Configure whether to compactify JSON output. | |
| detector_writer_config & | write_material (bool flag) |
| Configure whether to include material data. | |
| detector_writer_config & | write_grids (bool flag) |
| Configure whether to include accelerator-grid data. | |
Public Attributes | |
| bool | m_compact_io = false |
| Compactify json output, if not json format this flag does nothing. | |
| detray::io::format | m_format = detray::io::format::json |
| The output file format. | |
| std::string | m_path {"./"} |
| The path to the output files. | |
| bool | m_replace = false |
| Replace files in case they already exists. | |
| bool | m_write_grids = true |
| Whether to write the accelerator grids to file. | |
| bool | m_write_material = true |
| Whether to write the material to file. | |
config struct for detector writing.
| bool detray::io::detector_writer_config::compactify_json | ( | ) | const |
Return whether JSON output is compacted.
| detector_writer_config & detray::io::detector_writer_config::compactify_json | ( | bool | flag | ) |
Configure whether to compactify JSON output.
| flag | whether the option is enabled |
| detray::io::format detray::io::detector_writer_config::format | ( | ) | const |
Return the selected output format.
| detector_writer_config & detray::io::detector_writer_config::format | ( | detray::io::format | f | ) |
Select the serialization format.
| f | requested output format |
| const std::string & detray::io::detector_writer_config::path | ( | ) | const |
GettersReturn the output directory used for detector files.
| detector_writer_config & detray::io::detector_writer_config::path | ( | std::string | p | ) |
SettersSet the output directory.
| p | destination directory |
| bool detray::io::detector_writer_config::replace_files | ( | ) | const |
Return whether existing output files are replaced.
| detector_writer_config & detray::io::detector_writer_config::replace_files | ( | bool | flag | ) |
Configure whether to replace existing files.
| flag | whether the option is enabled |
| bool detray::io::detector_writer_config::write_grids | ( | ) | const |
Return whether accelerator grids are written.
| detector_writer_config & detray::io::detector_writer_config::write_grids | ( | bool | flag | ) |
Configure whether to include accelerator-grid data.
| flag | whether the option is enabled |
| bool detray::io::detector_writer_config::write_material | ( | ) | const |
Return whether material data is written.
| detector_writer_config & detray::io::detector_writer_config::write_material | ( | bool | flag | ) |
Configure whether to include material data.
| flag | whether the option is enabled |