Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
// -*- C++ -*-
//
// Package:     RPCObjects
// Class  :     L1RPCConeBuilder
//
// Implementation:
//     <Notes on implementation>
//
// Original Author:  Tomasz Frueboes
//         Created:  Fri Feb 22 12:26:49 CET 2008
// $Id: L1RPCConeBuilder.cc,v 1.4 2008/12/12 13:57:14 fruboes Exp $
//

#include "CondFormats/RPCObjects/interface/L1RPCConeBuilder.h"

//
L1RPCConeBuilder::L1RPCConeBuilder() : m_firstTower(0), m_lastTower(-1) {}

// L1RPCConeBuilder::L1RPCConeBuilder(const L1RPCConeBuilder& rhs)
// {
//    // do actual copying here;
// }

L1RPCConeBuilder::~L1RPCConeBuilder() {}

std::pair<L1RPCConeBuilder::TStripConVec::const_iterator, L1RPCConeBuilder::TStripConVec::const_iterator>
L1RPCConeBuilder::getConVec(uint32_t det, unsigned char strip) const {
  L1RPCConeBuilder::TStripConVec tmp;
  L1RPCConeBuilder::TStripConVec::const_iterator itBeg = tmp.end();
  L1RPCConeBuilder::TStripConVec::const_iterator itEnd = itBeg;

  TConMap::const_iterator it1 = m_coneConnectionMap->find(det);
  if (it1 != m_coneConnectionMap->end()) {
    TStrip2ConVec::const_iterator it2 = it1->second.find(strip);
    if (it2 != it1->second.end()) {
      itBeg = it2->second.begin();
      itEnd = it2->second.end();
    }
  }

  return std::make_pair(itBeg, itEnd);
}

std::pair<L1RPCConeBuilder::TCompressedConVec::const_iterator, L1RPCConeBuilder::TCompressedConVec::const_iterator>
L1RPCConeBuilder::getCompConVec(uint32_t det) const {
  L1RPCConeBuilder::TCompressedConVec tmp;
  L1RPCConeBuilder::TCompressedConVec::const_iterator itBeg = tmp.end();
  L1RPCConeBuilder::TCompressedConVec::const_iterator itEnd = itBeg;

  if (m_compressedConeConnectionMap->find(det) != m_compressedConeConnectionMap->end()) {
    itBeg = m_compressedConeConnectionMap->find(det)->second.begin();
    itEnd = m_compressedConeConnectionMap->find(det)->second.end();
  }

  return std::make_pair(itBeg, itEnd);
}