Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:17:37

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 #ifndef EVENTPLANEINFOMAP_H
0004 #define EVENTPLANEINFOMAP_H
0005 
0006 #include <phool/PHObject.h>
0007 #include <iostream>
0008 #include <map>
0009 
0010 class Eventplaneinfo;
0011 
0012 class EventplaneinfoMap : public PHObject
0013 {
0014  public:
0015   enum EPTYPE
0016   {
0017     UNDEFINED = 999,
0018     sEPDS = 0,
0019     sEPDN = 1,
0020     MBDS = 2,
0021     MBDN = 3,
0022     sEPDNS = 4,
0023     MBDNS = 5,
0024     sEPDRING_SOUTH = 100,
0025     sEPDRING_NORTH = 200  
0026   };
0027 
0028   typedef std::map<unsigned int, Eventplaneinfo*>::const_iterator ConstIter;
0029   typedef std::map<unsigned int, Eventplaneinfo*>::iterator Iter;
0030 
0031   ~EventplaneinfoMap() override {}
0032 
0033   void identify(std::ostream& os = std::cout) const override { os << "EventplaneinfoMap base class" << std::endl; }
0034   virtual bool empty() const {return true;}
0035   virtual void clear() {}
0036 
0037   virtual const Eventplaneinfo* get(unsigned int /*idkey*/) const { return nullptr; }
0038   virtual Eventplaneinfo* get(unsigned int /*idkey*/) { return nullptr; }
0039   virtual Eventplaneinfo* insert(Eventplaneinfo* /*ep*/, EPTYPE /*type*/) { return nullptr; }
0040 
0041   virtual ConstIter begin() const;
0042   virtual ConstIter find(unsigned int idkey) const;
0043   virtual ConstIter end() const;
0044 
0045   virtual Iter begin();
0046   virtual Iter find(unsigned int idkey);
0047   virtual Iter end();
0048 
0049  protected:
0050   EventplaneinfoMap() {}
0051 
0052  private:
0053   ClassDefOverride(EventplaneinfoMap, 1);
0054 };
0055 
0056 #endif  // EVENTPLANEINFOMAP_H