EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DecayFinderContainerBase.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DecayFinderContainerBase.h
1 #ifndef DECAYFINDER_DECAYFINDERCONTAINERBASE_H
2 #define DECAYFINDER_DECAYFINDERCONTAINERBASE_H
3 
4 #include <phool/PHObject.h>
5 
6 #include <cstddef> // for size_t
7 #include <iostream> // for cout, ostream
8 #include <map>
9 #include <utility> // for pair
10 #include <vector>
11 
19 {
20  public:
21  typedef std::vector<std::pair<int, int>> Decay;
22  typedef std::map<unsigned int, Decay> Map;
23  typedef std::map<unsigned int, Decay>::const_iterator ConstIter;
24  typedef std::map<unsigned int, Decay>::iterator Iter;
25 
27 
28  void identify(std::ostream& os = std::cout) const override
29  {
30  os << "DecayFinderContainer base class" << std::endl;
31  }
32  void Reset() override;
33  int isValid() const override { return 0; }
34  PHObject* CloneMe() const override { return nullptr; }
35 
36  virtual bool empty() const { return true; }
37  virtual size_t size() const { return 0; }
38  virtual size_t count(unsigned int) const { return 0; }
39  virtual void clear();
40 
41  virtual const Decay get(unsigned int) const;
42  virtual Decay get(unsigned int);
43 
44  virtual ConstIter begin() const;
45  virtual ConstIter find(unsigned int) const;
46  virtual ConstIter end() const;
47 
48  virtual Iter begin();
49  virtual Iter find(unsigned int);
50  virtual Iter end();
51 
52  virtual Decay insert(const Decay);
53 
54  virtual Map returnDecaysByPDGid(int);
55 
56  virtual size_t erase(unsigned int key);
57 
58  protected:
60 
61  private:
63 };
64 
65 #endif //DECAYFINDER_DECAYFINDERCONTAINERBASE_H