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

#include <ImgData.h>

Inheritance diagram for WireCell::Img::Data::Slice:
WireCell::ISlice WireCell::IData< ISlice >

Public Member Functions

 Slice (const IFrame::pointer &frame, int ident, double start, double span)
 
virtual ~Slice ()
 
IFrame::pointer frame () const
 
int ident () const
 
double start () const
 
double span () const
 
map_t activity () const
 
void sum (const IChannel::pointer &ch, value_t val)
 
- Public Member Functions inherited from WireCell::ISlice
virtual ~ISlice ()
 
- Public Member Functions inherited from WireCell::IData< ISlice >
virtual ~IData ()
 

Private Attributes

IFrame::pointer m_frame
 
map_t m_activity
 
int m_ident
 
double m_start
 
double m_span
 

Additional Inherited Members

- Public Types inherited from WireCell::ISlice
typedef float value_t
 
typedef std::pair< IChannel::pointer, value_tpair_t
 
typedef std::unordered_map< IChannel::pointer, value_tmap_t
 
- Public Types inherited from WireCell::IData< ISlice >
typedef ISlice value_type
 
typedef std::shared_ptr< const ISlicepointer
 
typedef std::vector< pointervector
 
typedef std::shared_ptr< const vectorshared_vector
 

Detailed Description

Definition at line 23 of file ImgData.h.

Constructor & Destructor Documentation

WireCell::Img::Data::Slice::Slice ( const IFrame::pointer frame,
int  ident,
double  start,
double  span 
)
inline

Definition at line 29 of file ImgData.h.

double start() const
Definition: ImgData.h:37
int ident() const
Definition: ImgData.h:36
double span() const
Definition: ImgData.h:38
IFrame::pointer m_frame
Definition: ImgData.h:24
IFrame::pointer frame() const
Definition: ImgData.h:34
Slice::~Slice ( )
virtual

Definition at line 16 of file ImgData.cxx.

17 {
18 }

Member Function Documentation

map_t WireCell::Img::Data::Slice::activity ( ) const
inlinevirtual

Implements WireCell::ISlice.

Definition at line 39 of file ImgData.h.

39 { return m_activity; }
IFrame::pointer WireCell::Img::Data::Slice::frame ( ) const
inlinevirtual

Implements WireCell::ISlice.

Definition at line 34 of file ImgData.h.

34 {return m_frame;}
IFrame::pointer m_frame
Definition: ImgData.h:24
int WireCell::Img::Data::Slice::ident ( ) const
inlinevirtual

Implements WireCell::ISlice.

Definition at line 36 of file ImgData.h.

36 { return m_ident; }
double WireCell::Img::Data::Slice::span ( ) const
inlinevirtual

Implements WireCell::ISlice.

Definition at line 38 of file ImgData.h.

38 { return m_span; }
double WireCell::Img::Data::Slice::start ( void  ) const
inlinevirtual

Implements WireCell::ISlice.

Definition at line 37 of file ImgData.h.

37 { return m_start; }
void WireCell::Img::Data::Slice::sum ( const IChannel::pointer ch,
value_t  val 
)
inline

Definition at line 44 of file ImgData.h.

44 { m_activity[ch] += val; }

Member Data Documentation

map_t WireCell::Img::Data::Slice::m_activity
private

Definition at line 25 of file ImgData.h.

IFrame::pointer WireCell::Img::Data::Slice::m_frame
private

Definition at line 24 of file ImgData.h.

int WireCell::Img::Data::Slice::m_ident
private

Definition at line 26 of file ImgData.h.

double WireCell::Img::Data::Slice::m_span
private

Definition at line 27 of file ImgData.h.

double WireCell::Img::Data::Slice::m_start
private

Definition at line 27 of file ImgData.h.


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