Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EventplaneinfoMap.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file EventplaneinfoMap.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef EVENTPLANEINFOMAP_H
4 #define EVENTPLANEINFOMAP_H
5 
6 #include <phool/PHObject.h>
7 #include <iostream>
8 #include <map>
9 
10 class Eventplaneinfo;
11 
13 {
14  public:
15  enum EPTYPE
16  {
17  UNDEFINED = 999,
18  sEPDS = 0,
19  sEPDN = 1,
20  MBDS = 2,
21  MBDN = 3
22  };
23 
24  typedef std::map<unsigned int, Eventplaneinfo*>::const_iterator ConstIter;
25  typedef std::map<unsigned int, Eventplaneinfo*>::iterator Iter;
26 
27  ~EventplaneinfoMap() override {}
28 
29  void identify(std::ostream& os = std::cout) const override { os << "EventplaneinfoMap base class" << std::endl; }
30  virtual void clear() {}
31 
32  virtual const Eventplaneinfo* get(unsigned int /*idkey*/) const { return nullptr; }
33  virtual Eventplaneinfo* get(unsigned int /*idkey*/) { return nullptr; }
34  virtual Eventplaneinfo* insert(Eventplaneinfo* /*ep*/, EPTYPE /*type*/) { return nullptr; }
35 
36  virtual ConstIter begin() const;
37  virtual ConstIter find(unsigned int idkey) const;
38  virtual ConstIter end() const;
39 
40  virtual Iter begin();
41  virtual Iter find(unsigned int idkey);
42  virtual Iter end();
43 
44  protected:
46 
47  private:
49 };
50 
51 #endif // EVENTPLANEINFOMAP_H