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