#include <BasicOutputOptionsHandler.h>
Definition at line 12 of file BasicOutputOptionsHandler.h.
art::BasicOutputOptionsHandler::BasicOutputOptionsHandler |
( |
bpo::options_description & |
desc | ) |
|
|
explicit |
Definition at line 28 of file BasicOutputOptionsHandler.cc.
31 bpo::options_description output_options{
"Output options"};
33 output_options.add_options()
34 (
"TFileName,T", bpo::value<std::string>(),
"File name for TFileService.")
36 bpo::value<std::string>(&
tmpDir_),
37 "Temporary directory for in-progress output files (defaults to directory " 38 "of specified output file names).")
39 (
"tmpDir", bpo::value<std::string>(&
tmpDir_),
"Synonym for --tmpdir.")
41 bpo::value<stringvec>()->composing(),
42 "Event output stream file (optionally specify stream with " 43 "stream-label:fileName in which case multiples are OK).")
44 (
"no-output",
"Disable all output streams.");
46 desc.add(output_options);
int art::BasicOutputOptionsHandler::doCheckOptions |
( |
bpo::variables_map const & |
vm | ) |
|
|
overrideprivatevirtual |
int art::BasicOutputOptionsHandler::doProcessOptions |
( |
bpo::variables_map const & |
vm, |
|
|
fhicl::intermediate_table & |
raw_config |
|
) |
| |
|
overrideprivatevirtual |
Implements art::OptionsHandler.
Definition at line 226 of file BasicOutputOptionsHandler.cc.
231 if (vm.count(
"TFileName") == 1) {
232 std::string tFileName(vm[
"TFileName"].as<std::string>());
236 tFileName =
"hist.root";
238 if (!tFileName.empty()) {
239 raw_config.
put(
key +
".fileName", tFileName);
243 processFileOutputOptions(vm, raw_config);
248 auto has_tmpDir [[maybe_unused]] =
257 auto const& table = raw_config.
get<
table_t const&>(outputs_stem);
258 for (
auto const&
output : table) {
bool exists_outside_prolog(fhicl::intermediate_table const &config, std::string const &key)
bool supports_key(std::string const &suffix, std::string const &spec, std::string const &key)
ModuleType module_type(std::string const &full_key)
std::enable_if_t< std::is_convertible_v< T, std::string >, std::string > fhicl_key(T const &name)
static std::string const & service()
static std::string const & module()
decltype(auto) constexpr empty(T &&obj)
ADL-aware version of std::empty.
The documentation for this class was generated from the following files: