Public Member Functions | Private Attributes | List of all members
WireCell::DumpDepos Class Reference

#include <DumpDepos.h>

Inheritance diagram for WireCell::DumpDepos:
WireCell::IDepoSink WireCell::ISinkNode< IDepo > WireCell::ISinkNodeBase WireCell::INode WireCell::IComponent< INode > WireCell::Interface

Public Member Functions

 DumpDepos ()
 
virtual ~DumpDepos ()
 
virtual bool operator() (const IDepo::pointer &depo)
 The calling signature: More...
 
- Public Member Functions inherited from WireCell::IDepoSink
virtual ~IDepoSink ()
 
virtual std::string signature ()
 
- Public Member Functions inherited from WireCell::ISinkNode< IDepo >
virtual ~ISinkNode ()
 
virtual bool operator() (const boost::any &anyin)
 
virtual std::vector< std::stringinput_types ()
 
- Public Member Functions inherited from WireCell::ISinkNodeBase
virtual ~ISinkNodeBase ()
 
virtual NodeCategory category ()
 Return the behavior category type. More...
 
- Public Member Functions inherited from WireCell::INode
virtual ~INode ()
 
virtual int concurrency ()
 
virtual std::vector< std::stringoutput_types ()
 
virtual void reset ()
 
- Public Member Functions inherited from WireCell::IComponent< INode >
virtual ~IComponent ()
 
- Public Member Functions inherited from WireCell::Interface
virtual ~Interface ()
 

Private Attributes

int m_nin
 

Additional Inherited Members

- Public Types inherited from WireCell::ISinkNode< IDepo >
typedef IDepo input_type
 
typedef std::shared_ptr< const IDepoinput_pointer
 
- Public Types inherited from WireCell::ISinkNodeBase
typedef std::shared_ptr< ISinkNodeBasepointer
 
- Public Types inherited from WireCell::INode
enum  NodeCategory {
  unknown, sourceNode, sinkNode, functionNode,
  queuedoutNode, joinNode, splitNode, faninNode,
  fanoutNode, multioutNode, hydraNode
}
 
- Public Types inherited from WireCell::IComponent< INode >
typedef std::shared_ptr< INodepointer
 Access subclass facet by pointer. More...
 
typedef std::vector< pointervector
 Vector of shared pointers. More...
 
- Public Types inherited from WireCell::Interface
typedef std::shared_ptr< Interfacepointer
 

Detailed Description

Definition at line 8 of file DumpDepos.h.

Constructor & Destructor Documentation

DumpDepos::DumpDepos ( )

Definition at line 12 of file DumpDepos.cxx.

12 : m_nin(0) {}
DumpDepos::~DumpDepos ( )
virtual

Definition at line 14 of file DumpDepos.cxx.

14 {}

Member Function Documentation

bool DumpDepos::operator() ( const IDepo::pointer in)
virtual

The calling signature:

Implements WireCell::ISinkNode< IDepo >.

Definition at line 16 of file DumpDepos.cxx.

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 }
void msg(const char *fmt,...)
Definition: message.cpp:107

Member Data Documentation

int WireCell::DumpDepos::m_nin
private

Definition at line 14 of file DumpDepos.h.


The documentation for this class was generated from the following files: