LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "KHitGroup.h"
Public Member Functions | |
KHitGroup (bool has_path=false, double path=0.) | |
Default constructor. More... | |
virtual | ~KHitGroup () |
Destructor. More... | |
const std::shared_ptr< const Surface > & | getSurface () const |
Surface accessor. More... | |
int | getPlane () const |
Plane index. More... | |
const std::vector< std::shared_ptr< const KHitBase > > & | getHits () const |
Measurement collection accessor. More... | |
bool | getHasPath () const |
Path flag. More... | |
double | getPath () const |
Estimated path distance. More... | |
void | clear () |
Clear the collection. More... | |
void | addHit (const std::shared_ptr< const KHitBase > &hit) |
Add a mesaurement into the colleciton. More... | |
void | setPath (bool has_path, double path) |
Set path flag and estimated path distance. More... | |
bool | operator== (const KHitGroup &obj) const |
Equivalance operator. More... | |
bool | operator< (const KHitGroup &obj) const |
Less than operator. More... | |
Private Attributes | |
std::shared_ptr< const Surface > | fSurf |
Common surface. More... | |
int | fPlane |
Plane index of measurements. More... | |
std::vector< std::shared_ptr< const KHitBase > > | fHits |
Measuement collection. More... | |
bool | fHasPath |
Path flag. More... | |
double | fPath |
Estimated path distance. More... | |
Definition at line 37 of file KHitGroup.h.
trkf::KHitGroup::KHitGroup | ( | bool | has_path = false , |
double | path = 0. |
||
) |
Default constructor.
Default Constructor.
Arguments:
has_path - Path flag (optional). path - Estimated path distance (optional).
Definition at line 23 of file KHitGroup.cxx.
|
virtual |
void trkf::KHitGroup::addHit | ( | const std::shared_ptr< const KHitBase > & | hit | ) |
Add a mesaurement into the colleciton.
Add a mesaurement into the colleciton.
Arguments:
hit - Measurement to add.
Definition at line 39 of file KHitGroup.cxx.
References fHits, fPlane, and fSurf.
Referenced by clear(), trkf::KHitContainerWireLine::fill(), and trkf::KHitContainerWireX::fill().
|
inline |
Clear the collection.
Definition at line 67 of file KHitGroup.h.
References addHit(), and fHits.
|
inline |
|
inline |
Measurement collection accessor.
Definition at line 56 of file KHitGroup.h.
References fHits.
Referenced by trkf::KalmanFilterAlg::buildTrack(), and trkf::KalmanFilterAlg::extendTrack().
|
inline |
Estimated path distance.
Definition at line 62 of file KHitGroup.h.
References fPath.
Referenced by trkf::KalmanFilterAlg::buildTrack(), and trkf::KalmanFilterAlg::extendTrack().
|
inline |
Plane index.
Definition at line 53 of file KHitGroup.h.
References fPlane.
Referenced by trkf::KalmanFilterAlg::buildTrack(), trkf::KalmanFilterAlg::extendTrack(), and trkf::KHitContainer::getPreferredPlane().
|
inline |
Surface accessor.
Definition at line 50 of file KHitGroup.h.
References fSurf.
Referenced by trkf::KalmanFilterAlg::buildTrack(), trkf::KalmanFilterAlg::extendTrack(), trkf::KHitContainerWireLine::fill(), trkf::KHitContainerWireX::fill(), and trkf::KHitContainer::sort().
bool trkf::KHitGroup::operator< | ( | const KHitGroup & | obj | ) | const |
Less than operator.
Less than operator.
Objects with path flag false compare equal (return false). Objects with path flag true compare according to estimated path distance. Objects with path flag false are not comparable to objects with path flag true (throw exception).
Arguments:
g - Comparison object.
Returned value: True if less than.
Definition at line 107 of file KHitGroup.cxx.
References fHasPath, and fPath.
Referenced by setPath().
bool trkf::KHitGroup::operator== | ( | const KHitGroup & | obj | ) | const |
Equivalance operator.
Equivalance operator.
Objects with path flag false compare equal. Objects with path flag true compare according to estimated path distance.
Arguments:
g - Comparison object.
Returned value: True if equal.
Definition at line 86 of file KHitGroup.cxx.
References fHasPath, and fPath.
Referenced by setPath().
|
inline |
Set path flag and estimated path distance.
Definition at line 73 of file KHitGroup.h.
References fHasPath, fPath, operator<(), and operator==().
Referenced by trkf::KHitContainer::sort().
|
private |
Path flag.
Definition at line 87 of file KHitGroup.h.
Referenced by getHasPath(), operator<(), operator==(), and setPath().
|
private |
Measuement collection.
Definition at line 86 of file KHitGroup.h.
|
private |
Estimated path distance.
Definition at line 88 of file KHitGroup.h.
Referenced by getPath(), operator<(), operator==(), and setPath().
|
private |
Plane index of measurements.
Definition at line 85 of file KHitGroup.h.
Referenced by addHit(), and getPlane().
|
private |
Common surface.
Definition at line 84 of file KHitGroup.h.
Referenced by addHit(), and getSurface().