Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrkrHitSetContainer.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrkrHitSetContainer.h
1 #ifndef TRACKBASE_TRKRHITSETCONTAINER_H
2 #define TRACKBASE_TRKRHITSETCONTAINER_H
3 
10 #include "TrkrDefs.h" // for hitsetkey, TrkrId
11 
12 #include <phool/PHObject.h>
13 
14 #include <iostream> // for cout, ostream
15 #include <map>
16 #include <utility> // for pair
17 
18 class TrkrHitSet;
19 
24 {
25  public:
26 
27  using Map = std::map<TrkrDefs::hitsetkey, TrkrHitSet *>;
28  using Iterator = Map::iterator;
29  using ConstIterator = Map::const_iterator;
30  using Range = std::pair<Iterator, Iterator>;
31  using ConstRange = std::pair<ConstIterator, ConstIterator>;
32 
34  ~TrkrHitSetContainer() override = default;
35 
37  void Reset() override;
38 
41 
43 
46  {}
47 
49  virtual void removeHitSet(TrkrHitSet*)
50  {}
51 
54 
56  virtual ConstRange getHitSets(const TrkrDefs::TrkrId) const;
57 
59  virtual ConstRange getHitSets(const TrkrDefs::TrkrId trackerid, const uint8_t layer) const;
60 
62  virtual ConstRange getHitSets() const;
63 
66  { return nullptr; }
67 
68  virtual unsigned int size() const
69  { return 0; }
70 
71  protected:
73  TrkrHitSetContainer() = default;
74 
75  private:
76 
77  ClassDefOverride(TrkrHitSetContainer, 1)
78 };
79 
80 #endif //TRACKBASE_TRKRHITSETCONTAINER_H