Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
wire-cell-build
iface
src
SimpleTrace.cxx
Go to the documentation of this file.
1
#include "
WireCellIface/SimpleTrace.h
"
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
14
int
SimpleTrace::channel
()
const
15
{
16
return
m_chid
;
17
}
18
19
int
SimpleTrace::tbin
()
const
20
{
21
return
m_tbin
;
22
}
23
24
const
ITrace::ChargeSequence
&
SimpleTrace::charge
()
const
25
{
26
return
m_charge
;
27
}
28
29
// Local Variables:
30
// mode: c++
31
// c-basic-offset: 4
32
// End:
WireCell::SimpleTrace::SimpleTrace
SimpleTrace(int chid, int tbin, const ChargeSequence &charge)
Definition:
SimpleTrace.cxx:5
WireCell::SimpleTrace::channel
virtual int channel() const
Definition:
SimpleTrace.cxx:14
WireCell::SimpleTrace::m_tbin
int m_tbin
Definition:
SimpleTrace.h:19
WireCell::SimpleTrace::tbin
virtual int tbin() const
Definition:
SimpleTrace.cxx:19
WireCell
Definition:
Main.h:22
WireCell::SimpleTrace::m_chid
int m_chid
Definition:
SimpleTrace.h:18
SimpleTrace.h
WireCell::SimpleTrace::charge
ChargeSequence & charge()
Definition:
SimpleTrace.h:26
WireCell::SimpleTrace::m_charge
ChargeSequence m_charge
Definition:
SimpleTrace.h:20
WireCell::ITrace::ChargeSequence
std::vector< float > ChargeSequence
Sequential collection of charge.
Definition:
ITrace.h:21
Generated by
1.8.11