ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrkrHitSet.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrkrHitSet.h
1 #ifndef TRACKBASE_TRKRHITSET_H
2 #define TRACKBASE_TRKRHITSET_H
3 
10 #include "TrkrDefs.h"
11 
12 #include <phool/PHObject.h>
13 
14 #include <iostream>
15 #include <map>
16 #include <utility> // for pair
17 
19 class TrkrHit;
20 
29 class TrkrHitSet : public PHObject
30 {
31  public:
32  // iterator typedef
33  using Map = std::map<TrkrDefs::hitkey, TrkrHit*>;
34  using ConstIterator = Map::const_iterator;
35  using ConstRange = std::pair<ConstIterator, ConstIterator>;
36 
38  void identify(std::ostream& /*os*/ = std::cout) const override
39  {
40  }
41 
42  void Reset() override
43  {
44  }
45 
50  virtual void setHitSetKey(const TrkrDefs::hitsetkey)
51  {
52  }
53 
59  {
60  return TrkrDefs::HITSETKEYMAX;
61  }
62 
72 
78  {
79  }
80 
88  virtual TrkrHit* getHit(const TrkrDefs::hitkey) const
89  {
90  return nullptr;
91  }
92 
97  virtual ConstRange getHits() const;
98 
103  // Get number of hits
104  virtual unsigned int size() const
105  {
106  return 0;
107  }
108 
109  protected:
110 
112  TrkrHitSet() = default;
113 
114 private:
116 };
117 
118 #endif //TRACKBASE_TRKRHITSET_H