![]() |
|
|||
File indexing completed on 2024-11-15 23:40:41
0001 //------------------------------------------------- 0002 // 0003 // Class: L1MuBMSecProcMap 0004 // 0005 // Description: Sector Processor container 0006 // 0007 // 0008 // 0009 // Author : 0010 // N. Neumeister CERN EP 0011 // 0012 //-------------------------------------------------- 0013 0014 //----------------------- 0015 // This Class's Header -- 0016 //----------------------- 0017 0018 #include "L1Trigger/L1TMuonBarrel/interface/L1MuBMSecProcMap.h" 0019 0020 //--------------- 0021 // C++ Headers -- 0022 //--------------- 0023 0024 #include <iostream> 0025 0026 //------------------------------- 0027 // Collaborating Class Headers -- 0028 //------------------------------- 0029 0030 #include "DataFormats/L1TMuon/interface/BMTF/L1MuBMSecProcId.h" 0031 #include "L1Trigger/L1TMuonBarrel/src/L1MuBMSectorProcessor.h" 0032 0033 using namespace std; 0034 0035 // -------------------------------- 0036 // class L1MuBMSecProcMap 0037 //--------------------------------- 0038 0039 //---------------- 0040 // Constructors -- 0041 //---------------- 0042 0043 L1MuBMSecProcMap::L1MuBMSecProcMap() : m_map() {} 0044 0045 //-------------- 0046 // Operations -- 0047 //-------------- 0048 0049 // 0050 // return Sector Processor 0051 // 0052 L1MuBMSectorProcessor* L1MuBMSecProcMap::sp(const L1MuBMSecProcId& id) const { 0053 SPmap::const_iterator it = m_map.find(id); 0054 if (it == m_map.end()) { 0055 // cerr << "Error: Sector Processor not in the map" << endl; 0056 return nullptr; 0057 } 0058 return (*it).second.get(); 0059 } 0060 0061 // 0062 // insert Sector Processor into container 0063 // 0064 void L1MuBMSecProcMap::insert(const L1MuBMSecProcId& id, std::unique_ptr<L1MuBMSectorProcessor> sp) { 0065 //SPmap::const_iterator it = m_map.find(id); 0066 // if ( it != m_map.end() ) 0067 // cerr << "Error: More than one Sector Processor with same identifier" 0068 // << endl; 0069 m_map[id] = std::move(sp); 0070 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.2.1 LXR engine. The LXR team |
![]() ![]() |