#include <Stub.h>
Definition at line 16 of file Stub.h.
float sbn::Stub::CoreCharge |
( |
unsigned |
plane_index = 0 | ) |
const |
Helper functions.
Returns the charge along the core of the stub on the given plane index
Definition at line 25 of file Stub.cxx.
26 if (plane_index >=
plane.size())
return -1;
29 int stubdir =
vtx_w[plane_index] <=
hit_w[plane_index] ? 1 : -1;
31 bool before_vtx = ((
h.wire -
vtx_w[plane_index]) * stubdir) < 0;
32 bool after_hit = ((
h.wire -
hit_w[plane_index]) * stubdir) > 0;
33 if (!before_vtx && !after_hit) {
std::vector< geo::PlaneID > plane
The plane ID.
std::vector< std::vector< StubHit > > hits
Hits on each plane. Ordered vtx->end.
std::vector< float > vtx_w
Wire coordinate of the vertex on this plane.
std::vector< short > hit_w
Wire of the end point hit on this plane.
Definition at line 11 of file Stub.cxx.
13 if (plane_index < 0)
return 0.;
float CoreCharge(unsigned plane_index=0) const
Helper functions.
int PlaneIndex(const geo::PlaneID &p) const
int sbn::Stub::CoreNHit |
( |
unsigned |
plane_index = 0 | ) |
const |
Returns the number of hits along the core of the stub on the given plane index.
Definition at line 41 of file Stub.cxx.
42 if (plane_index >=
plane.size())
return -1;
45 int stubdir =
vtx_w[plane_index] <=
hit_w[plane_index] ? 1 : -1;
47 bool before_vtx = ((
h.wire -
vtx_w[plane_index]) * stubdir) < 0;
48 bool after_hit = ((
h.wire -
hit_w[plane_index]) * stubdir) > 0;
49 if (!before_vtx && !after_hit) {
std::vector< geo::PlaneID > plane
The plane ID.
std::vector< std::vector< StubHit > > hits
Hits on each plane. Ordered vtx->end.
std::vector< float > vtx_w
Wire coordinate of the vertex on this plane.
std::vector< short > hit_w
Wire of the end point hit on this plane.
Definition at line 18 of file Stub.cxx.
20 if (plane_index < 0)
return 0;
int PlaneIndex(const geo::PlaneID &p) const
int CoreNHit(unsigned plane_index=0) const
Returns the number of hits along the core of the stub on the given plane index.
Returns whether the input wire-ID is on the core of the stub.
Definition at line 57 of file Stub.cxx.
59 if (plane_index < 0)
return -1;
61 int stubdir =
vtx_w[plane_index] <=
hit_w[plane_index] ? 1 : -1;
62 bool before_vtx = (((int)w.
Wire -
vtx_w[plane_index]) * stubdir) < 0;
63 bool after_hit = (((int)w.
Wire -
hit_w[plane_index]) * stubdir) > 0;
65 return !before_vtx && !after_hit;
WireID_t Wire
Index of the wire within its plane.
std::vector< float > vtx_w
Wire coordinate of the vertex on this plane.
std::vector< short > hit_w
Wire of the end point hit on this plane.
int PlaneIndex(const geo::PlaneID &p) const
Definition at line 3 of file Stub.cxx.
4 for (
unsigned i_p = 0; i_p <
plane.size(); i_p++) {
5 if (
plane[i_p] == p)
return i_p;
std::vector< geo::PlaneID > plane
The plane ID.
float sbn::Stub::efield_end |
The E-Field at the stub end point.
Definition at line 21 of file Stub.h.
float sbn::Stub::efield_vtx |
The E-Field at the reconstructed vertex.
Definition at line 22 of file Stub.h.
End of Stub. Space charge corrected. [cm].
Definition at line 19 of file Stub.h.
std::vector<short> sbn::Stub::hit_w |
Wire of the end point hit on this plane.
Definition at line 30 of file Stub.h.
std::vector<std::vector<StubHit> > sbn::Stub::hits |
Hits on each plane. Ordered vtx->end.
Definition at line 32 of file Stub.h.
std::vector<float> sbn::Stub::pitch |
Pitch of stub on each wire [cm].
Definition at line 27 of file Stub.h.
The plane ID.
Definition at line 25 of file Stub.h.
std::vector<float> sbn::Stub::trkpitch |
Pitch of the matched track on each wire [cm].
Definition at line 28 of file Stub.h.
Interaction Vertex / Start of Stub. Space charge corrected. [cm].
Definition at line 18 of file Stub.h.
std::vector<float> sbn::Stub::vtx_w |
Wire coordinate of the vertex on this plane.
Definition at line 29 of file Stub.h.
The documentation for this class was generated from the following files: