All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
trkf::HitState Class Reference

Class for a measurement on a recob::tracking::Plane (plane defined by a wire and the drift direction). More...

#include <TrackState.h>

Public Member Functions

 HitState (double hitMeas, double hitMeasErr2, geo::WireID &wireId, const geo::WireGeo &wgeom)
 
 HitState (double hitMeas, double hitMeasErr2, geo::WireID &&wireId, const geo::WireGeo &wgeom)
 
double hitMeas () const
 
double hitMeasErr2 () const
 
const Planeplane () const
 
const geo::WireIDwireId () const
 
std::ostream & dump (std::ostream &out=std::cout) const
 

Private Attributes

double fHitMeas
 
double fHitMeasErr2
 
const geo::WireID fWireId
 
Plane fPlane
 

Detailed Description

Class for a measurement on a recob::tracking::Plane (plane defined by a wire and the drift direction).

Author
G. Cerati (FNAL, MicroBooNE)
Date
2017
Version
1.0

This class collects the measurement information from a Hit on wire. The information are the measured (1D) position, its error, and the measurement plane (defined by the wire and the drift direction)

Definition at line 42 of file TrackState.h.

Constructor & Destructor Documentation

trkf::HitState::HitState ( double  hitMeas,
double  hitMeasErr2,
geo::WireID wireId,
const geo::WireGeo wgeom 
)
inline

Definition at line 44 of file TrackState.h.

double fHitMeas
Definition: TrackState.h:59
double hitMeas() const
Definition: TrackState.h:48
double hitMeasErr2() const
Definition: TrackState.h:49
double fHitMeasErr2
Definition: TrackState.h:60
Plane makePlane(recob::tracking::Point_t const &pos, recob::tracking::Vector_t const &dir)
helper function to construct a recob::tracking::Plane from a Point_t and a Vector_t; the point is on ...
const geo::WireID fWireId
Definition: TrackState.h:61
trkf::HitState::HitState ( double  hitMeas,
double  hitMeasErr2,
geo::WireID &&  wireId,
const geo::WireGeo wgeom 
)
inline

Definition at line 46 of file TrackState.h.

double fHitMeas
Definition: TrackState.h:59
double hitMeas() const
Definition: TrackState.h:48
double hitMeasErr2() const
Definition: TrackState.h:49
double fHitMeasErr2
Definition: TrackState.h:60
Plane makePlane(recob::tracking::Point_t const &pos, recob::tracking::Vector_t const &dir)
helper function to construct a recob::tracking::Plane from a Point_t and a Vector_t; the point is on ...
const geo::WireID fWireId
Definition: TrackState.h:61

Member Function Documentation

std::ostream& trkf::HitState::dump ( std::ostream &  out = std::cout) const
inline

Definition at line 52 of file TrackState.h.

52  {
53  out << "HitState with meas=" << hitMeas() << " err2=" << hitMeasErr2()
54  << " plane=" << wireId().Plane << " wire=" << wireId().Wire
55  << " on plane with pos=" << plane().position() << " and dir=" << plane().direction() << "\n";
56  return out;
57  }
Vector_t const & direction() const
Reference direction orthogonal to the plane.
Definition: TrackingPlane.h:70
const geo::WireID & wireId() const
Definition: TrackState.h:51
double hitMeas() const
Definition: TrackState.h:48
WireID_t Wire
Index of the wire within its plane.
Definition: geo_types.h:580
double hitMeasErr2() const
Definition: TrackState.h:49
const Plane & plane() const
Definition: TrackState.h:50
Point_t const & position() const
Reference position on the plane.
Definition: TrackingPlane.h:66
PlaneID_t Plane
Index of the plane within its TPC.
Definition: geo_types.h:493
double trkf::HitState::hitMeas ( ) const
inline

Definition at line 48 of file TrackState.h.

48 { return fHitMeas; }
double fHitMeas
Definition: TrackState.h:59
double trkf::HitState::hitMeasErr2 ( ) const
inline

Definition at line 49 of file TrackState.h.

49 { return fHitMeasErr2; }
double fHitMeasErr2
Definition: TrackState.h:60
const Plane& trkf::HitState::plane ( ) const
inline

Definition at line 50 of file TrackState.h.

50 { return fPlane; }
const geo::WireID& trkf::HitState::wireId ( ) const
inline

Definition at line 51 of file TrackState.h.

51 { return fWireId; }
const geo::WireID fWireId
Definition: TrackState.h:61

Member Data Documentation

double trkf::HitState::fHitMeas
private

Definition at line 59 of file TrackState.h.

double trkf::HitState::fHitMeasErr2
private

Definition at line 60 of file TrackState.h.

Plane trkf::HitState::fPlane
private

Definition at line 62 of file TrackState.h.

const geo::WireID trkf::HitState::fWireId
private

Definition at line 61 of file TrackState.h.


The documentation for this class was generated from the following file: