WireCellToolkit
Wire Cell Simulation, Signal Process and Reconstruction Toolki for Liquid Argon Detectors
WireCell::SimpleTrace Class Reference

#include <SimpleTrace.h>

Inheritance diagram for WireCell::SimpleTrace:
Collaboration diagram for WireCell::SimpleTrace:

Public Member Functions

 SimpleTrace (int chid, int tbin, const ChargeSequence &charge)
 
 SimpleTrace (int chid, int tbin, size_t ncharges)
 
ChargeSequencecharge ()
 
virtual int channel () const
 
virtual int tbin () const
 
virtual const ChargeSequencecharge () const
 
- Public Member Functions inherited from WireCell::ITrace
virtual ~ITrace ()
 
- Public Member Functions inherited from WireCell::IData< ITrace >
virtual ~IData ()
 

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 ITracepointer
 
typedef std::vector< pointervector
 
typedef std::shared_ptr< const vectorshared_vector
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SimpleTrace() [1/2]

SimpleTrace::SimpleTrace ( int  chid,
int  tbin,
const ChargeSequence charge 
)

Definition at line 5 of file SimpleTrace.cxx.

◆ SimpleTrace() [2/2]

SimpleTrace::SimpleTrace ( int  chid,
int  tbin,
size_t  ncharges 
)

Definition at line 9 of file SimpleTrace.cxx.

Member Function Documentation

◆ channel()

int SimpleTrace::channel ( ) const
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.

Here is the caller graph for this function:

◆ charge() [1/2]

ChargeSequence& WireCell::SimpleTrace::charge ( )
inline

Definition at line 26 of file SimpleTrace.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ charge() [2/2]

const ITrace::ChargeSequence & SimpleTrace::charge ( ) const
virtual

Return the contiguous adc/charge measurements on the channel starting at tbin.

Implements WireCell::ITrace.

Definition at line 24 of file SimpleTrace.cxx.

◆ tbin()

int SimpleTrace::tbin ( ) const
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.

Here is the caller graph for this function:

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