#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.
|
inline |
Clear the collection.
Definition at line 67 of file KHitGroup.h.
|
inline |
|
inline |
Measurement collection accessor.
Definition at line 56 of file KHitGroup.h.
|
inline |
|
inline |
|
inline |
Surface accessor.
Definition at line 50 of file KHitGroup.h.
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.
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.
|
inline |
Set path flag and estimated path distance.
Definition at line 73 of file KHitGroup.h.
|
private |
Path flag.
Definition at line 87 of file KHitGroup.h.
|
private |
Measuement collection.
Definition at line 86 of file KHitGroup.h.
|
private |
Estimated path distance.
Definition at line 88 of file KHitGroup.h.
|
private |
Plane index of measurements.
Definition at line 85 of file KHitGroup.h.
|
private |
Common surface.
Definition at line 84 of file KHitGroup.h.