CMS 3D CMS Logo

L1RPCConeBuilder.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: RPCObjects
4 // Class : L1RPCConeBuilder
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author: Tomasz Frueboes
10 // Created: Fri Feb 22 12:26:49 CET 2008
11 // $Id: L1RPCConeBuilder.cc,v 1.4 2008/12/12 13:57:14 fruboes Exp $
12 //
13 
15 
16 //
17 L1RPCConeBuilder::L1RPCConeBuilder() : m_firstTower(0), m_lastTower(-1) {}
18 
19 // L1RPCConeBuilder::L1RPCConeBuilder(const L1RPCConeBuilder& rhs)
20 // {
21 // // do actual copying here;
22 // }
23 
25 
26 std::pair<L1RPCConeBuilder::TStripConVec::const_iterator, L1RPCConeBuilder::TStripConVec::const_iterator>
27 L1RPCConeBuilder::getConVec(uint32_t det, unsigned char strip) const {
28  L1RPCConeBuilder::TStripConVec::const_iterator itBeg = L1RPCConeBuilder::TStripConVec().end();
29  L1RPCConeBuilder::TStripConVec::const_iterator itEnd = itBeg;
30 
31  TConMap::const_iterator it1 = m_coneConnectionMap->find(det);
32  if (it1 != m_coneConnectionMap->end()) {
33  TStrip2ConVec::const_iterator it2 = it1->second.find(strip);
34  if (it2 != it1->second.end()) {
35  itBeg = it2->second.begin();
36  itEnd = it2->second.end();
37  }
38  }
39 
40  return std::make_pair(itBeg, itEnd);
41 }
42 
43 std::pair<L1RPCConeBuilder::TCompressedConVec::const_iterator, L1RPCConeBuilder::TCompressedConVec::const_iterator>
44 L1RPCConeBuilder::getCompConVec(uint32_t det) const {
45  L1RPCConeBuilder::TCompressedConVec::const_iterator itBeg = L1RPCConeBuilder::TCompressedConVec().end();
46  L1RPCConeBuilder::TCompressedConVec::const_iterator itEnd = itBeg;
47 
49  itBeg = m_compressedConeConnectionMap->find(det)->second.begin();
50  itEnd = m_compressedConeConnectionMap->find(det)->second.end();
51  }
52 
53  return std::make_pair(itBeg, itEnd);
54 }
std::pair< TCompressedConVec::const_iterator, TCompressedConVec::const_iterator > getCompConVec(uint32_t det) const
std::pair< TStripConVec::const_iterator, TStripConVec::const_iterator > getConVec(uint32_t det, unsigned char strip) const
std::vector< TCompressedCon > TCompressedConVec
std::shared_ptr< TCompressedConMap > m_compressedConeConnectionMap
virtual ~L1RPCConeBuilder()
std::shared_ptr< TConMap > m_coneConnectionMap
std::vector< TStripCon > TStripConVec