#include <SimpleFrame.h>
Classes | |
struct | SimpleTraceInfo |
Public Member Functions | |
SimpleFrame (int ident, double time, const ITrace::vector &traces, double tick=0.5 *units::microsecond, const Waveform::ChannelMaskMap &cmm=Waveform::ChannelMaskMap()) | |
SimpleFrame (int ident, double time, ITrace::shared_vector traces, double tick=0.5 *units::microsecond, const Waveform::ChannelMaskMap &cmm=Waveform::ChannelMaskMap()) | |
~SimpleFrame () | |
virtual int | ident () const |
Return an identifying number of this frame. More... | |
virtual double | time () const |
virtual double | tick () const |
Return the digitization sample period. More... | |
virtual ITrace::shared_vector | traces () const |
Return a vector of all traces ignoring any potential tag. More... | |
virtual Waveform::ChannelMaskMap | masks () const |
Return all masks associated with this frame. More... | |
virtual const tag_list_t & | frame_tags () const |
virtual const tag_list_t & | trace_tags () const |
virtual const trace_list_t & | tagged_traces (const tag_t &tag) const |
virtual const trace_summary_t & | trace_summary (const tag_t &tag) const |
void | tag_frame (const tag_t &tag) |
void | tag_traces (const tag_t &tag, const IFrame::trace_list_t &indices, const IFrame::trace_summary_t &summary=IFrame::trace_summary_t(0)) |
Public Member Functions inherited from WireCell::IFrame | |
virtual | ~IFrame () |
Public Member Functions inherited from WireCell::IData< IFrame > | |
virtual | ~IData () |
Private Member Functions | |
const SimpleTraceInfo & | get_trace_info (const IFrame::tag_t &tag) const |
Private Attributes | |
int | m_ident |
double | m_time |
double | m_tick |
ITrace::shared_vector | m_traces |
Waveform::ChannelMaskMap | m_cmm |
IFrame::tag_list_t | m_frame_tags |
IFrame::tag_list_t | m_trace_tags |
std::map< IFrame::tag_t, SimpleTraceInfo > | m_trace_info |
Additional Inherited Members | |
Public Types inherited from WireCell::IFrame | |
typedef std::string | tag_t |
typedef std::vector< tag_t > | tag_list_t |
typedef std::vector< size_t > | trace_list_t |
typedef std::vector< double > | trace_summary_t |
Public Types inherited from WireCell::IData< IFrame > | |
typedef IFrame | value_type |
typedef std::shared_ptr< const IFrame > | pointer |
typedef std::vector< pointer > | vector |
typedef std::shared_ptr< const vector > | shared_vector |
A simple frame.
This is is nothing more than a bag of data.
Definition at line 15 of file SimpleFrame.h.
SimpleFrame::SimpleFrame | ( | int | ident, |
double | time, | ||
const ITrace::vector & | traces, | ||
double | tick = 0.5*units::microsecond , |
||
const Waveform::ChannelMaskMap & | cmm = Waveform::ChannelMaskMap() |
||
) |
Definition at line 6 of file SimpleFrame.cxx.
SimpleFrame::SimpleFrame | ( | int | ident, |
double | time, | ||
ITrace::shared_vector | traces, | ||
double | tick = 0.5*units::microsecond , |
||
const Waveform::ChannelMaskMap & | cmm = Waveform::ChannelMaskMap() |
||
) |
Definition at line 13 of file SimpleFrame.cxx.
SimpleFrame::~SimpleFrame | ( | ) |
Definition at line 20 of file SimpleFrame.cxx.
|
virtual |
|
private |
Definition at line 42 of file SimpleFrame.cxx.
|
virtual |
Return an identifying number of this frame.
Implements WireCell::IFrame.
Definition at line 24 of file SimpleFrame.cxx.
|
virtual |
Return all masks associated with this frame.
Reimplemented from WireCell::IFrame.
Definition at line 31 of file SimpleFrame.cxx.
void SimpleFrame::tag_frame | ( | const tag_t & | tag | ) |
Definition at line 71 of file SimpleFrame.cxx.
void SimpleFrame::tag_traces | ( | const tag_t & | tag, |
const IFrame::trace_list_t & | indices, | ||
const IFrame::trace_summary_t & | summary = IFrame::trace_summary_t(0) |
||
) |
Definition at line 76 of file SimpleFrame.cxx.
|
virtual |
Implements WireCell::IFrame.
Definition at line 61 of file SimpleFrame.cxx.
|
virtual |
Return the digitization sample period.
Implements WireCell::IFrame.
Definition at line 26 of file SimpleFrame.cxx.
|
virtual |
Return the reference time of the frame w.r.t. some global time. Note, each trace has a "tbin" counting number of ticks w.r.t. to this time where the trace starts. In general, tbin is not zero.
Implements WireCell::IFrame.
Definition at line 25 of file SimpleFrame.cxx.
|
virtual |
Implements WireCell::IFrame.
Definition at line 66 of file SimpleFrame.cxx.
|
virtual |
|
virtual |
Return a vector of all traces ignoring any potential tag.
Implements WireCell::IFrame.
Definition at line 28 of file SimpleFrame.cxx.
|
private |
Definition at line 54 of file SimpleFrame.h.
|
private |
Definition at line 56 of file SimpleFrame.h.
|
private |
Definition at line 51 of file SimpleFrame.h.
|
private |
Definition at line 52 of file SimpleFrame.h.
|
private |
Definition at line 52 of file SimpleFrame.h.
|
private |
Definition at line 63 of file SimpleFrame.h.
|
private |
Definition at line 56 of file SimpleFrame.h.
|
private |
Definition at line 53 of file SimpleFrame.h.