Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrkrClusterContainer.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrkrClusterContainer.h
1 #ifndef TRACKBASE_TRKRCLUSTERCONTAINER_H
2 #define TRACKBASE_TRKRCLUSTERCONTAINER_H
3 
11 #include "TrkrDefs.h"
12 
13 #include <phool/PHObject.h>
14 
15 #include <iostream> // for cout, ostream
16 #include <map>
17 #include <utility> // for pair
18 
19 class TrkrCluster;
20 
25 {
26  public:
28 
29  using Map = std::map<TrkrDefs::cluskey, TrkrCluster*>;
30  using Iterator = Map::iterator;
31  using ConstIterator = Map::const_iterator;
32  using Range = std::pair<Iterator, Iterator>;
33  using ConstRange = std::pair<ConstIterator, ConstIterator>;
34 
35  using HitSetKeyList = std::vector<TrkrDefs::hitsetkey>;
36 
38 
40  void Reset() override {}
41 
43  void identify(std::ostream& /*os*/ = std::cout) const override {}
44 
47 
50 
52  virtual ConstRange getClusters() const;
53 
56 
58  virtual TrkrCluster* findCluster(TrkrDefs::cluskey) const { return nullptr; }
59 
61  virtual HitSetKeyList getHitSetKeys() const
62  {
63  return HitSetKeyList();
64  }
65 
68  {
69  return HitSetKeyList();
70  }
71 
73  virtual HitSetKeyList getHitSetKeys(const TrkrDefs::TrkrId, const uint8_t /* layer */) const
74  {
75  return HitSetKeyList();
76  }
77 
79  virtual unsigned int size() const { return 0; }
80 
81  protected:
83  TrkrClusterContainer() = default;
84 
85  private:
86  ClassDefOverride(TrkrClusterContainer, 1)
87 };
88 
89 #endif // TRACKBASE_TRKRCLUSTERCONTAINER_H