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