106 const auto& wclscfg =
params();
109 if (wclscfg.logsinks(slist)) {
110 for (
auto logsink : slist) {
113 if (ls.size() == 2) {
122 if (wclscfg.loglevels(slist)) {
123 for (
auto loglevel : slist) {
126 if (ll.size() == 2) {
127 m_wcmain.set_loglevel(ll[0], ll[1]);
135 WireCell::Log::set_pattern(
"[%H:%M:%S.%03e] %L [%^%=8n%$] %v");
141 for (
auto cfg : wclscfg.configs()) {
145 for (
auto app : wclscfg.apps()) {
149 for (
auto plugin : wclscfg.plugins()) {
155 if (wclscfg.paths(slist)) {
156 for (
auto path : slist) {
165 if (wclscfg.params.get_if_present(wcps)) {
174 if (wclscfg.structs.get_if_present(wcps)) {
187 std::cerr <<
"Wire Cell Toolkit threw an exception\n";
188 auto msg = errstr(e);
195 if (wclscfg.inputers(slist)) {
196 for (
auto inputer : slist) {
197 auto iaev = WireCell::Factory::find_tn<IArtEventVisitor>(inputer);
199 std::cerr <<
"Inputer: \"" << inputer <<
"\"\n";
203 if (wclscfg.outputers(slist)) {
204 for (
auto outputer : slist) {
205 auto iaev = WireCell::Factory::find_tn<IArtEventVisitor>(outputer);
207 std::cerr <<
"Outputer: \"" << outputer <<
"\"\n";
wcls::IArtEventVisitor::vector m_outputers
void msg(const char *fmt,...)
std::array< tt::return_type< std::string >,-1ull > value_type
T get(std::string const &key) const
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
wcls::IArtEventVisitor::vector m_inputers
std::vector< std::string > get_names() const
void split(std::string const &s, char c, OutIter dest)
cet::coded_exception< error, detail::translate > exception
QTextStream & endl(QTextStream &s)