SimpleTrace.cxx
Go to the documentation of this file.
2 
3 using namespace WireCell;
4 
5 SimpleTrace::SimpleTrace(int chid, int tbin, const ChargeSequence& charge)
6  : m_chid(chid), m_tbin(tbin), m_charge(charge)
7 {
8 }
9 SimpleTrace::SimpleTrace(int chid, int tbin, size_t ncharges)
10  : m_chid(chid), m_tbin(tbin), m_charge(ncharges, 0.0)
11 {
12 }
13 
15 {
16  return m_chid;
17 }
18 
19 int SimpleTrace::tbin() const
20 {
21  return m_tbin;
22 }
23 
25 {
26  return m_charge;
27 }
28 
29 // Local Variables:
30 // mode: c++
31 // c-basic-offset: 4
32 // End:
SimpleTrace(int chid, int tbin, const ChargeSequence &charge)
Definition: SimpleTrace.cxx:5
virtual int channel() const
Definition: SimpleTrace.cxx:14
virtual int tbin() const
Definition: SimpleTrace.cxx:19
Definition: Main.h:22
ChargeSequence & charge()
Definition: SimpleTrace.h:26
ChargeSequence m_charge
Definition: SimpleTrace.h:20
std::vector< float > ChargeSequence
Sequential collection of charge.
Definition: ITrace.h:21