LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
recob::EndPoint2D Class Reference

#include "EndPoint2D.h"

Public Member Functions

 EndPoint2D ()
 
 EndPoint2D (double driftTime, geo::WireID wireID, double strength, int id, geo::View_t view, double totalQ)
 
double Charge () const
 
geo::View_t View () const
 
double DriftTime () const
 
geo::WireID WireID () const
 
int ID () const
 
double Strength () const
 

Private Attributes

double fDriftTime
 Default constructor. More...
 
geo::WireID fWireID
 vertex's wireID More...
 
int fID
 vertex's ID More...
 
double fStrength
 vertex's strength More...
 
geo::View_t fView
 view for this end point More...
 
double fTotalCharge
 total charge of hits associated with end point More...
 

Friends

std::ostream & operator<< (std::ostream &o, const EndPoint2D &c)
 

Detailed Description

Definition at line 18 of file EndPoint2D.h.

Constructor & Destructor Documentation

recob::EndPoint2D::EndPoint2D ( )

Definition at line 16 of file EndPoint2D.cxx.

17  : fDriftTime(-1.), fWireID(), fID(-1), fStrength(-1.), fView(geo::kUnknown), fTotalCharge(-999.)
18  {}
geo::View_t fView
view for this end point
Definition: EndPoint2D.h:28
Unknown view.
Definition: geo_types.h:142
double fStrength
vertex&#39;s strength
Definition: EndPoint2D.h:27
double fTotalCharge
total charge of hits associated with end point
Definition: EndPoint2D.h:29
geo::WireID fWireID
vertex&#39;s wireID
Definition: EndPoint2D.h:25
double fDriftTime
Default constructor.
Definition: EndPoint2D.h:24
int fID
vertex&#39;s ID
Definition: EndPoint2D.h:26
recob::EndPoint2D::EndPoint2D ( double  driftTime,
geo::WireID  wireID,
double  strength,
int  id,
geo::View_t  view,
double  totalQ 
)

Definition at line 21 of file EndPoint2D.cxx.

27  : fDriftTime(driftTime)
28  , fWireID(wireID)
29  , fID(id)
30  , fStrength(strength)
31  , fView(view)
32  , fTotalCharge(totalQ)
33  {}
geo::View_t fView
view for this end point
Definition: EndPoint2D.h:28
double fStrength
vertex&#39;s strength
Definition: EndPoint2D.h:27
double fTotalCharge
total charge of hits associated with end point
Definition: EndPoint2D.h:29
geo::WireID fWireID
vertex&#39;s wireID
Definition: EndPoint2D.h:25
double fDriftTime
Default constructor.
Definition: EndPoint2D.h:24
int fID
vertex&#39;s ID
Definition: EndPoint2D.h:26

Member Function Documentation

double recob::EndPoint2D::Charge ( ) const
inline

Definition at line 50 of file EndPoint2D.h.

References fTotalCharge.

51 {
52  return fTotalCharge;
53 }
double fTotalCharge
total charge of hits associated with end point
Definition: EndPoint2D.h:29
double recob::EndPoint2D::DriftTime ( ) const
inline

Definition at line 58 of file EndPoint2D.h.

References fDriftTime.

Referenced by recob::operator<<().

59 {
60  return fDriftTime;
61 }
double fDriftTime
Default constructor.
Definition: EndPoint2D.h:24
int recob::EndPoint2D::ID ( ) const
inline

Definition at line 66 of file EndPoint2D.h.

References fID.

Referenced by recob::operator<<(), and shwf::ShowerFinder::produce().

67 {
68  return fID;
69 }
int fID
vertex&#39;s ID
Definition: EndPoint2D.h:26
double recob::EndPoint2D::Strength ( ) const
inline

Definition at line 70 of file EndPoint2D.h.

References fStrength.

Referenced by shwf::ShowerFinder::produce().

71 {
72  return fStrength;
73 }
double fStrength
vertex&#39;s strength
Definition: EndPoint2D.h:27
geo::View_t recob::EndPoint2D::View ( ) const
inline

Definition at line 54 of file EndPoint2D.h.

References fView.

Referenced by recob::operator<<().

55 {
56  return fView;
57 }
geo::View_t fView
view for this end point
Definition: EndPoint2D.h:28
geo::WireID recob::EndPoint2D::WireID ( ) const
inline

Definition at line 62 of file EndPoint2D.h.

References fWireID.

Referenced by recob::operator<<().

63 {
64  return fWireID;
65 }
geo::WireID fWireID
vertex&#39;s wireID
Definition: EndPoint2D.h:25

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const EndPoint2D c 
)
friend

Definition at line 39 of file EndPoint2D.cxx.

40  {
41  o << std::setiosflags(std::ios::fixed) << std::setprecision(2);
42  o << "EndPoint2D ID " << std::setw(5) << std::right << ep.ID() << " WireID : \n"
43  << "\tCryostat = " << std::setw(7) << std::right << ep.WireID().Cryostat
44  << "\tTPC = " << std::setw(7) << std::right << ep.WireID().TPC << "\tPlane = " << std::setw(7)
45  << std::right << ep.WireID().Plane << "\tWire Number = " << std::setw(7) << std::right
46  << ep.WireID().Wire << " View = " << std::setw(9) << std::right << ep.View()
47  << " Time = " << std::setw(9) << std::right << ep.DriftTime();
48 
49  return o;
50  }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:102

Member Data Documentation

double recob::EndPoint2D::fDriftTime
private

Default constructor.

vertex's drift time

Definition at line 24 of file EndPoint2D.h.

Referenced by DriftTime().

int recob::EndPoint2D::fID
private

vertex's ID

Definition at line 26 of file EndPoint2D.h.

Referenced by ID().

double recob::EndPoint2D::fStrength
private

vertex's strength

Definition at line 27 of file EndPoint2D.h.

Referenced by Strength().

double recob::EndPoint2D::fTotalCharge
private

total charge of hits associated with end point

Definition at line 29 of file EndPoint2D.h.

Referenced by Charge().

geo::View_t recob::EndPoint2D::fView
private

view for this end point

Definition at line 28 of file EndPoint2D.h.

Referenced by View().

geo::WireID recob::EndPoint2D::fWireID
private

vertex's wireID

Definition at line 25 of file EndPoint2D.h.

Referenced by WireID().


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