12 using namespace std::chrono;
15 m_t0{high_resolution_clock::now()}{
19 const std::string&
msg){
20 const auto&
label = tool.name();
22 std::find_if(
m_msgs.begin(),
24 [&
label](
const std::pair<std::string,
25 std::vector<std::string>>& p){
26 return label == p.first;
28 auto d = high_resolution_clock::now() -
m_t0;
30 auto ss = std::stringstream();
33 if (iter ==
m_msgs.cend()){
34 m_msgs.push_back(std::pair(
label, std::vector<std::string>{
ss.str()}));
36 (iter->second).push_back(
ss.str());
42 auto result = std::string();
43 for (
const auto& p :
m_msgs){
44 result += p.first +
'\n';;
45 for (
const auto& m : p.second){
46 result +=
" " + m +
'\n';
virtual void collect(const IAlgTool &, const std::string &msg)
std::vector< std::pair< std::string, std::vector< std::string > > > m_msgs
std::chrono::high_resolution_clock::time_point m_t0
virtual std::string to_string() const
std::string label(const std::string &format, int i)
AlgTool to read in LArStripNeighborhoods, and run the BDT Algorithm.
std::ostream & operator<<(std::ostream &os, const BasicDataCollector &bdc)