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

#include <SlicesSink.h>

Inheritance diagram for WireCell::Img::SlicesSink:
WireCell::ISliceFrameSink WireCell::IConfigurable WireCell::ISinkNode< ISliceFrame > WireCell::IComponent< IConfigurable > WireCell::ISinkNodeBase WireCell::Interface WireCell::INode WireCell::IComponent< INode > WireCell::Interface

Public Member Functions

 SlicesSink ()
 
virtual ~SlicesSink ()
 
virtual void configure (const WireCell::Configuration &cfg)
 Accept a configuration. More...
 
virtual WireCell::Configuration default_configuration () const
 Optional, override to return a hard-coded default configuration. More...
 
bool operator() (const ISliceFrame::pointer &sf)
 The calling signature: More...
 
- Public Member Functions inherited from WireCell::ISliceFrameSink
virtual ~ISliceFrameSink ()
 
virtual std::string signature ()
 
- Public Member Functions inherited from WireCell::ISinkNode< ISliceFrame >
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 ()
 
- Public Member Functions inherited from WireCell::IConfigurable
virtual ~IConfigurable ()
 
- Public Member Functions inherited from WireCell::IComponent< IConfigurable >
virtual ~IComponent ()
 

Private Attributes

Configuration m_cfg
 

Additional Inherited Members

- Public Types inherited from WireCell::ISliceFrameSink
typedef std::shared_ptr< ISliceFrameSinkpointer
 
- Public Types inherited from WireCell::ISinkNode< ISliceFrame >
typedef ISliceFrame input_type
 
typedef std::shared_ptr< const ISliceFrameinput_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
 
- Public Types inherited from WireCell::IComponent< IConfigurable >
typedef std::shared_ptr< IConfigurablepointer
 Access subclass facet by pointer. More...
 
typedef std::vector< pointervector
 Vector of shared pointers. More...
 

Detailed Description

Definition at line 10 of file SlicesSink.h.

Constructor & Destructor Documentation

Img::SlicesSink::SlicesSink ( )

Definition at line 13 of file SlicesSink.cxx.

14 {
15 }
Img::SlicesSink::~SlicesSink ( )
virtual

Definition at line 17 of file SlicesSink.cxx.

18 {
19 }

Member Function Documentation

void Img::SlicesSink::configure ( const WireCell::Configuration config)
virtual

Accept a configuration.

Implements WireCell::IConfigurable.

Definition at line 28 of file SlicesSink.cxx.

29 {
30  m_cfg = cfg;
31 }
cfg
Definition: dbjson.py:29
WireCell::Configuration Img::SlicesSink::default_configuration ( ) const
virtual

Optional, override to return a hard-coded default configuration.

Reimplemented from WireCell::IConfigurable.

Definition at line 21 of file SlicesSink.cxx.

22 {
24 
25  return cfg;
26 }
cfg
Definition: dbjson.py:29
Json::Value Configuration
Definition: Configuration.h:50
bool Img::SlicesSink::operator() ( const ISliceFrame::pointer in)
virtual

The calling signature:

Implements WireCell::ISinkNode< ISliceFrame >.

Definition at line 33 of file SlicesSink.cxx.

34 {
35  if (!sf) {
36  return true;
37  }
38 
39  auto slices = sf->slices();
40 
41  for (auto slice : slices) {
42  auto cvmap = slice->activity();
43  double qtot = 0;
44  for (const auto &cv : cvmap) {
45  qtot += cv.second;
46  }
47  }
48  return true;
49 }
std::vector< TCSlice > slices
Definition: DataStructs.cxx:12

Member Data Documentation

Configuration WireCell::Img::SlicesSink::m_cfg
private

Definition at line 23 of file SlicesSink.h.


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