Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SvtxTrackCaloClusterMap_v1.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SvtxTrackCaloClusterMap_v1.h
1 #ifndef TRACKBASEHISTORIC_SVTXTRACKCALOCLUSTERMAPV1_H
2 #define TRACKBASEHISTORIC_SVTXTRACKCALOCLUSTERMAPV1_H
3 
5 
6 #include <cstddef> // for size_t
7 #include <iostream> // for cout, ostream
8 
9 class PHObject;
10 
12 {
13  public:
17  ~SvtxTrackCaloClusterMap_v1() override;
18 
19  void identify(std::ostream& os = std::cout) const override;
20  // cppcheck-suppress virtualCallInConstructor
21  void Reset() override;
22  int isValid() const override { return 1; }
23  PHObject* CloneMe() const override { return new SvtxTrackCaloClusterMap_v1(*this); }
24 
25  bool empty() const override { return _map.empty(); }
26  size_t size() const override { return _map.size(); }
27  void clear() override { Reset(); }
28 
29  const std::vector<RawCluster*> get(SvtxTrack* track) const override;
30  std::vector<RawCluster*> get(SvtxTrack* track) override;
31  std::vector<RawCluster*> insert(SvtxTrack* track, std::vector<RawCluster*> clusters) override;
32  std::vector<RawCluster*> insert(SvtxTrack* track, RawCluster* clus) override;
33  size_t erase(SvtxTrack* track) override;
34 
35  ConstIter begin() const override { return _map.begin(); }
36  ConstIter find(SvtxTrack* track) const override { return _map.find(track); }
37  ConstIter end() const override { return _map.end(); }
38 
39  Iter begin() override { return _map.begin(); }
40  Iter find(SvtxTrack* track) override { return _map.find(track); }
41  Iter end() override { return _map.end(); }
42 
43  private:
45 
47 };
48 
49 #endif