Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
wire-cell-build
gen
inc
WireCellGen
DepoPlane.h
Go to the documentation of this file.
1
namespace
WireCell
{
2
3
/** Spread deposits on a plane.
4
*
5
* Maintain a buffer in time (longitudinal to drift direction) and
6
* space (transverse to drift direction, parallel to wire pitch
7
* direction) of energy depositions.
8
*
9
* The change is spread in both directions according to given
10
* sigma and according to the longitudinal drift distance that the
11
* deposition has or must travel (prior deposition is checked of
12
* originating point).
13
*/
14
class
DepoPlane
{
15
Ray
m_pitch
;
16
double
m_now
,
m_tick
,
m_sigmaT
,
m_sigmaL
,
m_drift_velocity
;
17
18
19
public
:
20
DepoPlane
(
Ray
wire_pitch
,
// point from center of wire zero to wire one along pitch direction
21
double
start_time,
double
tick
,
22
double
sigmaT,
double
sigmaL,
double
drift_velocity);
23
24
/// Add a deposition to the buffer. Return true if we have enough to pop.
25
bool
add
(
IDepo::pointer
depo);
26
27
/// Return next tick worth of charge. Vector is indexed by
28
/// wire index starting from wire zero as determined by pitch
29
/// ray. An empty vector indicates underflow and more
30
/// depositions should be add()'ed.
31
std::vector<double>
pop
();
32
33
};
34
35
36
}
WireCell::Ray
std::pair< Point, Point > Ray
A line segment running from a first (tail) to a second (head) point.
Definition:
Point.h:21
WireCell::IData< IDepo >::pointer
std::shared_ptr< const IDepo > pointer
Definition:
IData.h:19
WireCell::DepoPlane::m_sigmaL
double m_sigmaL
Definition:
DepoPlane.h:16
WireCell::DepoPlane::m_pitch
Ray m_pitch
Definition:
DepoPlane.h:15
WireCell::DepoPlane::m_tick
double m_tick
Definition:
DepoPlane.h:16
tick
const double tick
Definition:
test_binneddiffusion.cxx:51
WireCell::DepoPlane::pop
std::vector< double > pop()
WireCell::DepoPlane::m_drift_velocity
double m_drift_velocity
Definition:
DepoPlane.h:16
WireCell
Definition:
Main.h:22
WireCell::DepoPlane::add
bool add(IDepo::pointer depo)
Add a deposition to the buffer. Return true if we have enough to pop.
wire_pitch
const double wire_pitch
Definition:
test_binneddiffusion.cxx:56
WireCell::DepoPlane::m_sigmaT
double m_sigmaT
Definition:
DepoPlane.h:16
WireCell::DepoPlane
Definition:
DepoPlane.h:14
WireCell::DepoPlane::DepoPlane
DepoPlane(Ray wire_pitch, double start_time, double tick, double sigmaT, double sigmaL, double drift_velocity)
WireCell::DepoPlane::m_now
double m_now
Definition:
DepoPlane.h:16
Generated by
1.8.11