LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "KHitContainer.h"
Public Member Functions | |
KHitContainer () | |
Default constructor. More... | |
virtual | ~KHitContainer () |
Destructor. More... | |
virtual void | fill (const art::PtrVector< recob::Hit > &hits, int only_plane)=0 |
const std::list< KHitGroup > & | getSorted () const |
Sorted list. More... | |
const std::list< KHitGroup > & | getUnsorted () const |
Unsorted list. More... | |
const std::list< KHitGroup > & | getUnused () const |
Unused list. More... | |
std::list< KHitGroup > & | getSorted () |
Sorted list. More... | |
std::list< KHitGroup > & | getUnsorted () |
Unsorted list. More... | |
std::list< KHitGroup > & | getUnused () |
Unused list. More... | |
void | clear () |
Clear all lists. More... | |
void | reset () |
Move all objects to unsorted list (from sorted and unused lists). More... | |
void | sort (const KTrack &trk, bool addUnsorted, const Propagator *prop, Propagator::PropDirection dir=Propagator::UNKNOWN) |
(Re)sort objects in unsorted and sorted lists. More... | |
unsigned int | getPreferredPlane () const |
Return the plane with the most KHitGroups in the unsorted list. More... | |
Private Attributes | |
std::list< KHitGroup > | fSorted |
Sorted KHitGroup objects. More... | |
std::list< KHitGroup > | fUnsorted |
Unsorted KHitGroup objects. More... | |
std::list< KHitGroup > | fUnused |
Unused KHitGroup objects. More... | |
Definition at line 58 of file KHitContainer.h.
trkf::KHitContainer::KHitContainer | ( | ) |
|
virtual |
void trkf::KHitContainer::clear | ( | ) |
Clear all lists.
Definition at line 29 of file KHitContainer.cxx.
References fSorted, fUnsorted, and fUnused.
Referenced by getUnused().
|
pure virtual |
Implemented in trkf::KHitContainerWireLine, and trkf::KHitContainerWireX.
unsigned int trkf::KHitContainer::getPreferredPlane | ( | ) | const |
Return the plane with the most KHitGroups in the unsorted list.
Definition at line 107 of file KHitContainer.cxx.
References fUnsorted, and trkf::KHitGroup::getPlane().
Referenced by getUnused().
|
inline |
Sorted list.
Definition at line 71 of file KHitContainer.h.
References fSorted.
Referenced by trkf::KalmanFilterAlg::buildTrack(), and trkf::KalmanFilterAlg::extendTrack().
|
inline |
|
inline |
Unsorted list.
Definition at line 72 of file KHitContainer.h.
References fUnsorted.
Referenced by trkf::KalmanFilterAlg::buildTrack(), trkf::KalmanFilterAlg::extendTrack(), trkf::KHitContainerWireLine::fill(), and trkf::KHitContainerWireX::fill().
|
inline |
|
inline |
Unused list.
Definition at line 73 of file KHitContainer.h.
References fUnused.
Referenced by trkf::KalmanFilterAlg::buildTrack(), and trkf::KalmanFilterAlg::extendTrack().
|
inline |
Unused list.
Definition at line 79 of file KHitContainer.h.
References clear(), dir, fUnused, getPreferredPlane(), reset(), sort(), and trkf::Propagator::UNKNOWN.
void trkf::KHitContainer::reset | ( | ) |
Move all objects to unsorted list (from sorted and unused lists).
Definition at line 37 of file KHitContainer.cxx.
References fSorted, fUnsorted, and fUnused.
Referenced by getUnused().
void trkf::KHitContainer::sort | ( | const KTrack & | trk, |
bool | addUnsorted, | ||
const Propagator * | prop, | ||
Propagator::PropDirection | dir = Propagator::UNKNOWN |
||
) |
(Re)sort objects in unsorted and sorted lists.
(Re)sort objects in unsorted and sorted lists.
Arguments:
trk - Track to be propagated. addUnsorted - If true, include unsorted objects in sort. prop - Propagator. dir - Propagation direction.
Definition at line 52 of file KHitContainer.cxx.
References fSorted, fUnsorted, trkf::KHitGroup::getSurface(), trkf::KHitGroup::setPath(), and trkf::Propagator::vec_prop().
Referenced by trkf::KalmanFilterAlg::buildTrack(), trkf::KalmanFilterAlg::extendTrack(), and getUnused().
|
private |
Sorted KHitGroup objects.
Definition at line 98 of file KHitContainer.h.
Referenced by clear(), getSorted(), reset(), and sort().
|
private |
Unsorted KHitGroup objects.
Definition at line 99 of file KHitContainer.h.
Referenced by clear(), getPreferredPlane(), getUnsorted(), reset(), and sort().
|
private |
Unused KHitGroup objects.
Definition at line 100 of file KHitContainer.h.
Referenced by clear(), getUnused(), and reset().