12#include "detray/builders/volume_builder_interface.hpp"
92 out <<
"\nDetector reader\n"
93 <<
"----------------------------\n"
94 <<
" Detector files : \n";
95 for (
const auto& file_name : cfg.
files()) {
96 out <<
" -> " << file_name <<
"\n";
98 out <<
" Deduplicate data : " << std::boolalpha << cfg.
deduplicate()
99 << std::noboolalpha <<
"\n";
The following enums are global for all detectors.
Definition concepts.hpp:18
config struct for detector reading.
Definition detector_reader_config.hpp:22
detector_reader_config & verbose_check(const bool verbose)
Enable detailed output from the consistency check.
Definition detector_reader_config.hpp:80
bool do_check() const
Return whether detector consistency checks are enabled.
Definition detector_reader_config.hpp:47
detector_reader_config & do_check(const bool check)
Enable or disable the post-read detector consistency check.
Definition detector_reader_config.hpp:72
friend std::ostream & operator<<(std::ostream &out, const detector_reader_config &cfg)
Print the detector reader configuration.
Definition detector_reader_config.hpp:90
detray::volume_builder_options m_builder_opts
Volume builder options.
Definition detector_reader_config.hpp:26
bool m_verbose
Verbosity of the detector consistency check.
Definition detector_reader_config.hpp:30
const std::vector< std::string > & files() const
GettersReturn the list of configured detector input files.
Definition detector_reader_config.hpp:36
bool verbose_check() const
Return whether consistency checks print detailed output.
Definition detector_reader_config.hpp:50
detector_reader_config & deduplicate(bool toggle)
Enable or disable deduplication in the volume builder.
Definition detector_reader_config.hpp:65
const detray::volume_builder_options & builder_options() const
Return the volume-builder options used during reconstruction.
Definition detector_reader_config.hpp:39
std::vector< std::string > m_files
Input files.
Definition detector_reader_config.hpp:24
detector_reader_config & add_file(const std::string &file_name)
SettersAdd a detector component file to the input list.
Definition detector_reader_config.hpp:58
bool m_do_check
Run detector consistency check after reading.
Definition detector_reader_config.hpp:28
bool deduplicate() const
Return whether duplicate detector components are removed.
Definition detector_reader_config.hpp:44
Options for the volume builder classes.
Definition volume_builder_interface.hpp:29