20 std::cout << header <<
": " <<
size(
names) <<
'\n';
29 " -> 'trigger_paths' specified\n" :
33 " -> 'end_paths' specified\n" :
43 << header_rule(
'=') <<
'\n' 44 <<
"Trigger paths: " <<
size(trigger_paths) <<
"\n" 46 " -> 'trigger_paths' specified\n\n" :
48 if (
empty(trigger_paths)) {
56 auto column_1_width =
size(column_1);
57 for (
auto const& pr : trigger_paths) {
58 column_1_width =
std::max(column_1_width,
size(pr.first.name));
62 << column_1 <<
" " << column_2 <<
'\n' 75 auto const& end_paths = enabled_modules.
end_paths();
78 << header_rule(
'=') <<
'\n' 79 <<
"End paths: " <<
size(end_paths) <<
'\n' 81 " -> 'end_paths' specified\n\n" :
84 if (
empty(end_paths)) {
90 auto column_1_width =
size(column_1);
91 for (
auto const& pr : end_paths) {
92 column_1_width =
std::max(column_1_width,
size(pr.first.name));
99 for (
auto const& [
path_spec, entries] : end_paths) {
101 <<
" " <<
size(entries) <<
'\n';
109 std::cout <<
'\n' << header_rule(
'=') <<
'\n';
116 auto column_1_width =
size(column_1);
117 auto column_2_width = std::string::size_type{};
119 auto const service_provider =
122 column_2_width =
std::max(column_2_width,
size(service_provider));
126 if (column_2_width == 0ull) {
127 std::cout << column_1 <<
'\n' << rule_1(
'-') <<
'\n';
128 for (
auto const&
name : names) {
136 << rule_1(
'-') <<
" " << rule_2(
'-') <<
'\n';
137 for (
auto const&
name : names) {
138 auto const service_provider =
141 << service_provider <<
'\n';
150 std::cout <<
'\n' << header_rule(
'=') <<
"\n";
161 auto column_1_width =
size(column_1);
162 auto column_2_width =
size(column_2);
174 << rule_1(
'-') <<
" " << rule_2(
'-') <<
'\n';
175 for (
auto const&
name : names) {
197 std::cout <<
"Process name: " << process_name <<
'\n' 198 <<
"Source module: " << source <<
'\n';
199 if (verbosity ==
"brief") {
207 }
else if (verbosity ==
"detailed") {
209 std::cout <<
'\n' << header_rule(
'=') <<
'\n' <<
"Physics modules\n\n";
216 }
else if (verbosity ==
"full") {
226 <<
"Unrecognized configuration-summary verbosity level: '" << verbosity
void print_config_summary(fhicl::ParameterSet const &pset, std::string const &verbosity, EnabledModules const &enabled_modules)
void print_service_types(fhicl::ParameterSet const &pset)
void print_module_types(fhicl::ParameterSet const &pset, std::string const &header)
ModuleType module_type(std::string const &full_key)
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
void print_table_numbers(fhicl::ParameterSet const &pset, std::string const &header)
module_entries_for_ordered_path_t end_paths() const noexcept
T get(std::string const &key) const
std::enable_if_t< std::is_convertible_v< T, std::string >, std::string > fhicl_key(T const &name)
module_entries_for_ordered_path_t const & trigger_path_specs() const noexcept
static int max(int a, int b)
bool end_paths_override() const noexcept
Q_EXPORT QTSManip setw(int w)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
bool trigger_paths_override() const noexcept
std::vector< std::string > get_names() const
void print_path_numbers(EnabledModules const &enabled_modules)
PathSpec path_spec(std::string const &path_spec)
static std::vector< std::string > const names
def filters(nticks=9600, tick=0.5 *units.us, npitches=3000, pitch=1.0)
std::string to_string(ModuleType const mt)
decltype(auto) constexpr empty(T &&obj)
ADL-aware version of std::empty.
void print_path_names(EnabledModules const &enabled_modules)