test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
18 //
20  m_firstTower(0),
21  m_lastTower(-1)
22 {
23 
24 }
25 
26 // L1RPCConeBuilder::L1RPCConeBuilder(const L1RPCConeBuilder& rhs)
27 // {
28 // // do actual copying here;
29 // }
30 
32 {
33 }
34 
35 std::pair<L1RPCConeBuilder::TStripConVec::const_iterator, L1RPCConeBuilder::TStripConVec::const_iterator>
36  L1RPCConeBuilder::getConVec(uint32_t det, unsigned char strip) const
37 {
38 
39  L1RPCConeBuilder::TStripConVec::const_iterator itBeg = L1RPCConeBuilder::TStripConVec().end();
40  L1RPCConeBuilder::TStripConVec::const_iterator itEnd = itBeg;
41 
42  TConMap::const_iterator it1 = m_coneConnectionMap->find(det);
43  if (it1 != m_coneConnectionMap->end()){
44  TStrip2ConVec::const_iterator it2 = it1->second.find(strip);
45  if (it2 != it1->second.end()){
46  itBeg = it2->second.begin();
47  itEnd = it2->second.end();
48  }
49  }
50 
51  return std::make_pair(itBeg,itEnd);
52 }
53 
54 std::pair<L1RPCConeBuilder::TCompressedConVec::const_iterator, L1RPCConeBuilder::TCompressedConVec::const_iterator>
55  L1RPCConeBuilder::getCompConVec(uint32_t det) const
56 {
57  L1RPCConeBuilder::TCompressedConVec::const_iterator itBeg = L1RPCConeBuilder::TCompressedConVec().end();
58  L1RPCConeBuilder::TCompressedConVec::const_iterator itEnd = itBeg;
59 
61  itBeg = m_compressedConeConnectionMap->find(det)->second.begin();
62  itEnd = m_compressedConeConnectionMap->find(det)->second.end();
63  }
64 
65  return std::make_pair(itBeg,itEnd);
66 }
67 
boost::shared_ptr< TConMap > m_coneConnectionMap
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
boost::shared_ptr< TCompressedConMap > m_compressedConeConnectionMap
virtual ~L1RPCConeBuilder()
std::vector< TStripCon > TStripConVec