EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
print_info.h
Go to the documentation of this file.
1//
2// Created by xmei on 9/8/22.
3//
4
5#pragma once
6
7#include <iostream>
8#include <iomanip>
9#include <JANA/Utils/JTablePrinter.h>
10
11void printFactoryTable(JComponentSummary const& cs) {
12 JTablePrinter factory_table;
13 factory_table.AddColumn("Plugin");
14 factory_table.AddColumn("Object name");
15 factory_table.AddColumn("Tag");
16 for (const auto& factory : cs.factories) {
17 factory_table | factory.plugin_name | factory.object_name | factory.factory_tag;
18 }
19
20 std::ostringstream ss;
21 factory_table.Render(ss);
22 std::cout << ss.str() << std::endl;
23}
24
25void printPluginNames(std::vector<std::string> const& plugin_names) {
26 JTablePrinter plugin_table;
27 plugin_table.AddColumn("Plugin name");
28 for (const auto& plugin_name : plugin_names) {
29 plugin_table | plugin_name;
30 }
31
32 std::ostringstream ss;
33 plugin_table.Render(ss);
34 std::cout << ss.str() << std::endl;
35}
void printFactoryTable(JComponentSummary const &cs)
Definition print_info.h:11
void printPluginNames(std::vector< std::string > const &plugin_names)
Definition print_info.h:25