#include <ZSEndedTrace.h>
Public Member Functions | |
ZSEndedTrace (int chid, int nbins=0) | |
void | operator() (int tbin, float charge) |
used to fill. More... | |
virtual int | channel () const |
virtual int | tbin () const |
virtual const ChargeSequence & | charge () const |
Public Member Functions inherited from WireCell::ITrace | |
virtual | ~ITrace () |
Public Member Functions inherited from WireCell::IData< ITrace > | |
virtual | ~IData () |
Private Attributes | |
int | m_chid |
int | m_nbins |
std::map< int, float > | m_chqmap |
ChargeSequence | m_charge |
Additional Inherited Members | |
Public Types inherited from WireCell::ITrace | |
typedef std::vector< float > | ChargeSequence |
Sequential collection of charge. More... | |
Public Types inherited from WireCell::IData< ITrace > | |
typedef ITrace | value_type |
typedef std::shared_ptr< const ITrace > | pointer |
typedef std::vector< pointer > | vector |
typedef std::shared_ptr< const vector > | shared_vector |
This concrete trace is filled by time bin and charge.
It provides the results of the filling such that the ChargeSequence is trivially (exactly) zero suppressed but only at the ends. Any zeros bounded by non-zero charge are kept.
Definition at line 17 of file ZSEndedTrace.h.
ZSEndedTrace::ZSEndedTrace | ( | int | chid, |
int | nbins = 0 |
||
) |
Definition at line 6 of file ZSEndedTrace.cxx.
|
virtual |
Return the identifier number for the channel on which this trace was recorded.
Implements WireCell::ITrace.
Definition at line 19 of file ZSEndedTrace.cxx.
|
virtual |
Return the contiguous adc/charge measurements on the channel starting at tbin.
Implements WireCell::ITrace.
Definition at line 29 of file ZSEndedTrace.cxx.
void ZSEndedTrace::operator() | ( | int | tbin, |
float | charge | ||
) |
used to fill.
Definition at line 12 of file ZSEndedTrace.cxx.
|
virtual |
Return the time bin relative to some absolute time (typically the start of the frame) at which the first ADC/charge in the trace was digitized (leading bin edge).
Implements WireCell::ITrace.
Definition at line 24 of file ZSEndedTrace.cxx.
|
mutableprivate |
Definition at line 20 of file ZSEndedTrace.h.
|
private |
Definition at line 18 of file ZSEndedTrace.h.
|
private |
Definition at line 19 of file ZSEndedTrace.h.
|
private |
Definition at line 18 of file ZSEndedTrace.h.