File indexing completed on 2024-04-06 12:02:31
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #include "CondFormats/RPCObjects/interface/L1RPCConeBuilder.h"
0015
0016
0017 L1RPCConeBuilder::L1RPCConeBuilder() : m_firstTower(0), m_lastTower(-1) {}
0018
0019
0020
0021
0022
0023
0024 L1RPCConeBuilder::~L1RPCConeBuilder() {}
0025
0026 std::pair<L1RPCConeBuilder::TStripConVec::const_iterator, L1RPCConeBuilder::TStripConVec::const_iterator>
0027 L1RPCConeBuilder::getConVec(uint32_t det, unsigned char strip) const {
0028 L1RPCConeBuilder::TStripConVec tmp;
0029 L1RPCConeBuilder::TStripConVec::const_iterator itBeg = tmp.end();
0030 L1RPCConeBuilder::TStripConVec::const_iterator itEnd = itBeg;
0031
0032 TConMap::const_iterator it1 = m_coneConnectionMap->find(det);
0033 if (it1 != m_coneConnectionMap->end()) {
0034 TStrip2ConVec::const_iterator it2 = it1->second.find(strip);
0035 if (it2 != it1->second.end()) {
0036 itBeg = it2->second.begin();
0037 itEnd = it2->second.end();
0038 }
0039 }
0040
0041 return std::make_pair(itBeg, itEnd);
0042 }
0043
0044 std::pair<L1RPCConeBuilder::TCompressedConVec::const_iterator, L1RPCConeBuilder::TCompressedConVec::const_iterator>
0045 L1RPCConeBuilder::getCompConVec(uint32_t det) const {
0046 L1RPCConeBuilder::TCompressedConVec tmp;
0047 L1RPCConeBuilder::TCompressedConVec::const_iterator itBeg = tmp.end();
0048 L1RPCConeBuilder::TCompressedConVec::const_iterator itEnd = itBeg;
0049
0050 if (m_compressedConeConnectionMap->find(det) != m_compressedConeConnectionMap->end()) {
0051 itBeg = m_compressedConeConnectionMap->find(det)->second.begin();
0052 itEnd = m_compressedConeConnectionMap->find(det)->second.end();
0053 }
0054
0055 return std::make_pair(itBeg, itEnd);
0056 }