CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_1/src/L1Trigger/DTTrackFinder/src/L1MuDTSecProcMap.h

Go to the documentation of this file.
00001 //-------------------------------------------------
00002 //
00014 //
00015 //--------------------------------------------------
00016 #ifndef L1MUDT_SEC_PROC_MAP_H
00017 #define L1MUDT_SEC_PROC_MAP_H
00018 
00019 //---------------
00020 // C++ Headers --
00021 //---------------
00022 
00023 #include <map>
00024 
00025 //----------------------
00026 // Base Class Headers --
00027 //----------------------
00028 
00029 //------------------------------------
00030 // Collaborating Class Declarations --
00031 //------------------------------------
00032 
00033 #include "L1Trigger/DTTrackFinder/src/L1MuDTSecProcId.h"
00034 class L1MuDTSectorProcessor;
00035 
00036 //              ---------------------
00037 //              -- Class Interface --
00038 //              ---------------------
00039 
00040 class L1MuDTSecProcMap {
00041 
00042   public:
00043 
00044     typedef std::map<L1MuDTSecProcId, L1MuDTSectorProcessor*, std::less<L1MuDTSecProcId> >  SPmap;
00045     typedef SPmap::iterator                                   SPmap_iter;
00046 
00048     L1MuDTSecProcMap();
00049 
00051     virtual ~L1MuDTSecProcMap();
00052 
00054     L1MuDTSectorProcessor* sp(const L1MuDTSecProcId& ) const;
00055 
00057     void insert(const L1MuDTSecProcId&, L1MuDTSectorProcessor* sp);
00058   
00060     inline int size() const { return m_map.size(); }
00061   
00063     inline SPmap_iter begin() { return m_map.begin(); }
00064   
00066     inline SPmap_iter end() { return m_map.end(); }
00067 
00068   private:
00069 
00070     SPmap m_map;
00071 
00072 };
00073 
00074 #endif