LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
art::BasicPostProcessor Class Reference

#include "BasicPostProcessor.h"

Inheritance diagram for art::BasicPostProcessor:
art::OptionsHandler

Public Member Functions

int checkOptions (bpo::variables_map const &vm)
 
int processOptions (bpo::variables_map const &vm, fhicl::intermediate_table &raw_config)
 

Private Member Functions

int doCheckOptions (bpo::variables_map const &vm) override
 
int doProcessOptions (bpo::variables_map const &vm, fhicl::intermediate_table &raw_config) override
 

Detailed Description

Definition at line 15 of file BasicPostProcessor.h.

Member Function Documentation

int art::OptionsHandler::checkOptions ( bpo::variables_map const &  vm)
inherited

Definition at line 51 of file OptionsHandler.cc.

52 {
53  std::string const thisClass(cet::demangle_symbol(typeid(*this).name()));
54  return exceptionCatcher([&vm, this] { return doCheckOptions(vm); },
55  thisClass + "::doCheckOptions()",
56  89);
57 }
virtual int doCheckOptions(bpo::variables_map const &vm)=0
int art::BasicPostProcessor::doCheckOptions ( bpo::variables_map const &  vm)
overrideprivatevirtual

Implements art::OptionsHandler.

Definition at line 158 of file BasicPostProcessor.cc.

159 {
160  return 0; // NOP
161 }
int art::BasicPostProcessor::doProcessOptions ( bpo::variables_map const &  vm,
fhicl::intermediate_table raw_config 
)
overrideprivatevirtual

Implements art::OptionsHandler.

Definition at line 164 of file BasicPostProcessor.cc.

References art::detail::exists_outside_prolog(), fhicl::intermediate_table::find(), and fhicl::intermediate_table::update().

166 {
167  verifyProcessName(raw_config);
168  verifyInterfaces(raw_config);
169  verifySourceConfig(raw_config);
170  // trigger_paths
171  if (exists_outside_prolog(raw_config, "physics.trigger_paths")) {
172  raw_config.update("trigger_paths.trigger_paths") =
173  raw_config.find("physics.trigger_paths");
174  }
175  // module_labels and service_type.
176  addModuleLabels(raw_config);
177  addServiceType(raw_config);
178  return 0; // If anything had gone wrong, we would have thrown.
179 }
bool exists_outside_prolog(fhicl::intermediate_table const &config, std::string const &key)
extended_value const & find(std::string const &name) const
extended_value & update(std::string const &name)
int art::OptionsHandler::processOptions ( bpo::variables_map const &  vm,
fhicl::intermediate_table raw_config 
)
inherited

Definition at line 60 of file OptionsHandler.cc.

Referenced by art::run_art_string_config().

62 {
63  std::string const thisClass(cet::demangle_symbol(typeid(*this).name()));
64  return exceptionCatcher(
65  [&, this] { return doProcessOptions(vm, raw_config); },
66  thisClass + "::doProcessOptions()",
67  90);
68 }
virtual int doProcessOptions(bpo::variables_map const &vm, fhicl::intermediate_table &raw_config)=0

The documentation for this class was generated from the following files: