DumpDepos.cxx
Go to the documentation of this file.
3 
4 #include <iostream>
5 #include <sstream>
6 
8 
9 using namespace WireCell;
10 using namespace std;
11 
12 DumpDepos::DumpDepos() : m_nin(0) {}
13 
14 DumpDepos::~DumpDepos() {}
15 
17 {
18  if (!depo) {
19  cerr << "DumpDepos see EOS after " << m_nin << " depos\n";
20  return true;
21  }
22 
23  stringstream msg; // reduce footprint for having stream split between different threads
24  msg << "Depo: (" << (void*)depo.get() << ")"
25  << " t=" << depo->time()
26  << "\tq=" << depo->charge()
27  << "\tr=" << depo->pos()
28  << "\tn=" << m_nin
29  << "\n";
30  ++m_nin;
31 
32  cerr << msg.str();
33  return true;
34 }
std::shared_ptr< const IDepo > pointer
Definition: IData.h:19
void msg(const char *fmt,...)
Definition: message.cpp:107
virtual bool operator()(const IDepo::pointer &depo)
The calling signature:
Definition: DumpDepos.cxx:16
STL namespace.
Definition: Main.h:22
#define WIRECELL_FACTORY(NAME, CONCRETE,...)
Definition: NamedFactory.h:332