#include <SimpleTrace.h>
Public Member Functions | |
SimpleTrace (int chid, int tbin, const ChargeSequence &charge) | |
SimpleTrace (int chid, int tbin, size_t ncharges) | |
ChargeSequence & | charge () |
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_tbin |
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 SimpleTrace.h.
SimpleTrace::SimpleTrace | ( | int | chid, |
int | tbin, | ||
const ChargeSequence & | charge | ||
) |
Definition at line 5 of file SimpleTrace.cxx.
SimpleTrace::SimpleTrace | ( | int | chid, |
int | tbin, | ||
size_t | ncharges | ||
) |
Definition at line 9 of file SimpleTrace.cxx.
|
virtual |
Return the identifier number for the channel on which this trace was recorded.
Implements WireCell::ITrace.
Definition at line 14 of file SimpleTrace.cxx.
|
inline |
Definition at line 26 of file SimpleTrace.h.
|
virtual |
Return the contiguous adc/charge measurements on the channel starting at tbin.
Implements WireCell::ITrace.
Definition at line 24 of file SimpleTrace.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 19 of file SimpleTrace.cxx.
|
private |
Definition at line 20 of file SimpleTrace.h.
|
private |
Definition at line 18 of file SimpleTrace.h.
|
private |
Definition at line 19 of file SimpleTrace.h.