1 #ifndef sbncode_Stub_HH
2 #define sbncode_Stub_HH
25 std::vector<geo::PlaneID>
plane;
32 std::vector<std::vector<StubHit>>
hits;
35 float CoreCharge(
unsigned plane_index=0)
const;
36 int CoreNHit(
unsigned plane_index=0)
const;
std::vector< geo::PlaneID > plane
The plane ID.
float charge
Calibrated and corrected for electron lifetime [#elec].
std::vector< std::vector< StubHit > > hits
Hits on each plane. Ordered vtx->end.
The data type to uniquely identify a Plane.
geo::Point_t end
End of Stub. Space charge corrected. [cm].
bool OnCore(const geo::WireID &w) const
Returns whether the input wire-ID is on the core of the stub.
float CoreCharge(unsigned plane_index=0) const
Helper functions.
geo::Point_t vtx
Interaction Vertex / Start of Stub. Space charge corrected. [cm].
std::vector< float > vtx_w
Wire coordinate of the vertex on this plane.
short wire
The wire this hit is on.
Definitions of geometry vector data types.
std::vector< short > hit_w
Wire of the end point hit on this plane.
Definition of data types for geometry description.
float efield_end
The E-Field at the stub end point.
float efield_vtx
The E-Field at the reconstructed vertex.
int PlaneIndex(const geo::PlaneID &p) const
std::vector< float > trkpitch
Pitch of the matched track on each wire [cm].
int CoreNHit(unsigned plane_index=0) const
Returns the number of hits along the core of the stub on the given plane index.
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.
std::vector< float > pitch
Pitch of stub on each wire [cm].
bool ontrack
Whether the hit is also on a track.