Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrkrClusterIterationMap.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrkrClusterIterationMap.h
1 
7 #ifndef TRACKBASE_TRKRCLUSTERITERATIONMAP_H
8 #define TRACKBASE_TRKRCLUSTERITERATIONMAP_H
9 
10 #include "TrkrDefs.h"
11 
12 #include <phool/PHObject.h>
13 
14 #include <climits>
15 #include <limits>
16 #include <iostream> // for cout, ostream
17 #include <map>
18 #include <utility> // for pair
19 
26 {
27  public:
28  using Map = std::map<TrkrDefs::cluskey, short int>;
29  using ConstIter = Map::const_iterator;
30 
31  void Reset() override;
32 
38  virtual void addIteration(TrkrDefs::cluskey, short int) {}
39 
40  virtual short int getIteration(TrkrDefs::cluskey) { return std::numeric_limits<short int>::max(); }
41 
42  virtual unsigned int size() const { return 0; }
43 
44  virtual ConstIter begin() const;
45  virtual ConstIter end() const;
46 
47  protected:
48  TrkrClusterIterationMap() = default;
49 
50  private:
52 };
53 
54 #endif // TRACKBASE_TRKRCLUSTERITERATIONMAP_H