CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/CondFormats/RPCObjects/src/L1RPCConeBuilder.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:     RPCObjects
00004 // Class  :     L1RPCConeBuilder
00005 // 
00006 // Implementation:
00007 //     <Notes on implementation>
00008 //
00009 // Original Author:  Tomasz Frueboes
00010 //         Created:  Fri Feb 22 12:26:49 CET 2008
00011 // $Id: L1RPCConeBuilder.cc,v 1.6 2009/04/10 15:36:30 fruboes Exp $
00012 //
00013 
00014 #include "CondFormats/RPCObjects/interface/L1RPCConeBuilder.h"
00015 
00016 
00017 
00018 //
00019 L1RPCConeBuilder::L1RPCConeBuilder() :
00020       m_firstTower(0), 
00021       m_lastTower(-1)
00022 {
00023 
00024 }
00025 
00026 // L1RPCConeBuilder::L1RPCConeBuilder(const L1RPCConeBuilder& rhs)
00027 // {
00028 //    // do actual copying here;
00029 // }
00030 
00031 L1RPCConeBuilder::~L1RPCConeBuilder()
00032 {
00033 }
00034 
00035 std::pair<L1RPCConeBuilder::TStripConVec::const_iterator, L1RPCConeBuilder::TStripConVec::const_iterator> 
00036     L1RPCConeBuilder::getConVec(uint32_t det, unsigned char strip) const
00037 {
00038 
00039   L1RPCConeBuilder::TStripConVec::const_iterator itBeg = L1RPCConeBuilder::TStripConVec().end();
00040   L1RPCConeBuilder::TStripConVec::const_iterator itEnd = itBeg;
00041   
00042   TConMap::const_iterator it1 = m_coneConnectionMap->find(det);
00043   if (it1 != m_coneConnectionMap->end()){
00044     TStrip2ConVec::const_iterator it2 = it1->second.find(strip);
00045     if (it2 != it1->second.end()){
00046       itBeg = it2->second.begin();
00047       itEnd = it2->second.end();
00048     }
00049   } 
00050   
00051   return std::make_pair(itBeg,itEnd);
00052 }
00053 
00054 std::pair<L1RPCConeBuilder::TCompressedConVec::const_iterator, L1RPCConeBuilder::TCompressedConVec::const_iterator> 
00055     L1RPCConeBuilder::getCompConVec(uint32_t det) const 
00056 {
00057   L1RPCConeBuilder::TCompressedConVec::const_iterator itBeg = L1RPCConeBuilder::TCompressedConVec().end();
00058   L1RPCConeBuilder::TCompressedConVec::const_iterator itEnd = itBeg;
00059   
00060   if(m_compressedConeConnectionMap->find(det)!=m_compressedConeConnectionMap->end()){
00061     itBeg =  m_compressedConeConnectionMap->find(det)->second.begin();
00062     itEnd =  m_compressedConeConnectionMap->find(det)->second.end();
00063   }
00064   
00065   return std::make_pair(itBeg,itEnd);
00066 }
00067