Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrkrClusterContainerv4.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrkrClusterContainerv4.h
1 #ifndef TRACKBASE_TRKRCLUSTERCONTAINERV4_H
2 #define TRACKBASE_TRKRCLUSTERCONTAINERV4_H
3 
11 #include "TrkrClusterContainer.h"
12 
13 #include <phool/PHObject.h>
14 
15 class TrkrCluster;
16 
21 {
22  public:
23  TrkrClusterContainerv4() = default;
24 
25  void Reset() override;
26 
27  void identify(std::ostream& os = std::cout) const override;
28 
29  void addClusterSpecifyKey(const TrkrDefs::cluskey, TrkrCluster*) override;
30 
31  void removeCluster(TrkrDefs::cluskey) override;
32 
33  ConstRange getClusters() const override; // deprecated
34 
36 
37  TrkrCluster* findCluster(TrkrDefs::cluskey) const override;
38 
39  HitSetKeyList getHitSetKeys() const override;
40 
41  HitSetKeyList getHitSetKeys(const TrkrDefs::TrkrId) const override;
42 
43  HitSetKeyList getHitSetKeys(const TrkrDefs::TrkrId, const uint8_t /* layer */) const override;
44 
45  unsigned int size(void) const override;
46 
47  private:
49  using Vector = std::vector<TrkrCluster*>;
50 
52  std::map<TrkrDefs::hitsetkey, Vector> m_clusmap;
53 
55 
61 
62  ClassDefOverride(TrkrClusterContainerv4, 1)
63 };
64 
65 #endif // TRACKBASE_TrkrClusterContainerv4_H