LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
KHitContainer.h
Go to the documentation of this file.
1 
45 #ifndef KHITCONTAINER_H
46 #define KHITCONTAINER_H
47 
48 #include <list>
54 
55 
56 namespace trkf {
57 
59  {
60  public:
61 
63  KHitContainer();
64 
66  virtual ~KHitContainer();
67 
68  virtual void fill(const art::PtrVector<recob::Hit>& hits, int only_plane) = 0;
69  // Const Accessors.
70 
71  const std::list<KHitGroup>& getSorted() const {return fSorted;}
72  const std::list<KHitGroup>& getUnsorted() const {return fUnsorted;}
73  const std::list<KHitGroup>& getUnused() const {return fUnused;}
74 
75  // Non-const Accessors.
76 
77  std::list<KHitGroup>& getSorted() {return fSorted;}
78  std::list<KHitGroup>& getUnsorted() {return fUnsorted;}
79  std::list<KHitGroup>& getUnused() {return fUnused;}
80 
82  void clear();
83 
85  void reset();
86 
88  void sort(const KTrack& trk, bool addUnsorted, const Propagator* prop,
90 
92  unsigned int getPreferredPlane() const;
93 
94  private:
95 
96  // Attributes.
97 
98  std::list<KHitGroup> fSorted;
99  std::list<KHitGroup> fUnsorted;
100  std::list<KHitGroup> fUnused;
101  };
102 }
103 
104 #endif
void sort(const KTrack &trk, bool addUnsorted, const Propagator *prop, Propagator::PropDirection dir=Propagator::UNKNOWN)
(Re)sort objects in unsorted and sorted lists.
const std::list< KHitGroup > & getUnused() const
Unused list.
Definition: KHitContainer.h:73
Declaration of signal hit object.
std::list< KHitGroup > & getUnused()
Unused list.
Definition: KHitContainer.h:79
KHitContainer()
Default constructor.
unsigned int getPreferredPlane() const
Return the plane with the most KHitGroups in the unsorted list.
std::list< KHitGroup > fUnused
Unused KHitGroup objects.
virtual ~KHitContainer()
Destructor.
void hits()
Definition: readHits.C:15
const std::list< KHitGroup > & getUnsorted() const
Unsorted list.
Definition: KHitContainer.h:72
std::list< KHitGroup > fUnsorted
Unsorted KHitGroup objects.
Definition: KHitContainer.h:99
Base class for Kalman filter track propagator.
A collection of measurements on the same surface.
void clear()
Clear all lists.
std::list< KHitGroup > & getSorted()
Sorted list.
Definition: KHitContainer.h:77
TDirectory * dir
Definition: macro.C:5
virtual void fill(const art::PtrVector< recob::Hit > &hits, int only_plane)=0
std::list< KHitGroup > fSorted
Sorted KHitGroup objects.
Definition: KHitContainer.h:98
Basic Kalman filter track class, without error.
std::list< KHitGroup > & getUnsorted()
Unsorted list.
Definition: KHitContainer.h:78
PropDirection
Propagation direction enum.
Definition: Propagator.h:92
void reset()
Move all objects to unsorted list (from sorted and unused lists).
const std::list< KHitGroup > & getSorted() const
Sorted list.
Definition: KHitContainer.h:71