CMS 3D CMS Logo

Classes | Public Types | Public Member Functions | Private Attributes

L1RPCConeBuilder Class Reference

#include <CondFormats/RPCObjects/interface/L1RPCConeBuilder.h>

List of all members.

Classes

struct  TCompressedCon
struct  TStripCon

Public Types

typedef std::map< uint32_t,
TCompressedConVec
TCompressedConMap
typedef std::vector
< TCompressedCon
TCompressedConVec
typedef std::map< uint32_t,
TStrip2ConVec
TConMap
typedef std::map< unsigned
char, TStripConVec
TStrip2ConVec
typedef std::vector< TStripConTStripConVec

Public Member Functions

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
 L1RPCConeBuilder ()
void setCompressedConeConnectionMap (const boost::shared_ptr< TCompressedConMap > cmpConnMap)
void setConeConnectionMap (const boost::shared_ptr< TConMap > connMap)
void setFirstTower (int tow)
void setLastTower (int tow)
virtual ~L1RPCConeBuilder ()

Private Attributes

boost::shared_ptr
< TCompressedConMap
m_compressedConeConnectionMap
boost::shared_ptr< TConMapm_coneConnectionMap
int m_firstTower
int m_lastTower

Detailed Description

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 30 of file L1RPCConeBuilder.h.


Member Typedef Documentation

Definition at line 106 of file L1RPCConeBuilder.h.

Definition at line 105 of file L1RPCConeBuilder.h.

typedef std::map<uint32_t, TStrip2ConVec> L1RPCConeBuilder::TConMap

Definition at line 45 of file L1RPCConeBuilder.h.

typedef std::map<unsigned char, TStripConVec> L1RPCConeBuilder::TStrip2ConVec

Definition at line 44 of file L1RPCConeBuilder.h.

Definition at line 43 of file L1RPCConeBuilder.h.


Constructor & Destructor Documentation

L1RPCConeBuilder::L1RPCConeBuilder ( )

Definition at line 19 of file L1RPCConeBuilder.cc.

                                   :
      m_firstTower(0), 
      m_lastTower(-1)
{

}
L1RPCConeBuilder::~L1RPCConeBuilder ( ) [virtual]

Definition at line 31 of file L1RPCConeBuilder.cc.

{
}

Member Function Documentation

std::pair< L1RPCConeBuilder::TCompressedConVec::const_iterator, L1RPCConeBuilder::TCompressedConVec::const_iterator > L1RPCConeBuilder::getCompConVec ( uint32_t  det) const

Definition at line 55 of file L1RPCConeBuilder.cc.

References m_compressedConeConnectionMap.

{
  L1RPCConeBuilder::TCompressedConVec::const_iterator itBeg = L1RPCConeBuilder::TCompressedConVec().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);
}
std::pair< L1RPCConeBuilder::TStripConVec::const_iterator, L1RPCConeBuilder::TStripConVec::const_iterator > L1RPCConeBuilder::getConVec ( uint32_t  det,
unsigned char  strip 
) const

Definition at line 36 of file L1RPCConeBuilder.cc.

References m_coneConnectionMap.

{

  L1RPCConeBuilder::TStripConVec::const_iterator itBeg = L1RPCConeBuilder::TStripConVec().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);
}
void L1RPCConeBuilder::setCompressedConeConnectionMap ( const boost::shared_ptr< TCompressedConMap cmpConnMap) [inline]

Definition at line 117 of file L1RPCConeBuilder.h.

References m_compressedConeConnectionMap.

      {  
            m_compressedConeConnectionMap = cmpConnMap;
      };
void L1RPCConeBuilder::setConeConnectionMap ( const boost::shared_ptr< TConMap connMap) [inline]

Definition at line 114 of file L1RPCConeBuilder.h.

References m_coneConnectionMap.

                      { m_coneConnectionMap = connMap;};
void L1RPCConeBuilder::setFirstTower ( int  tow) [inline]

Definition at line 129 of file L1RPCConeBuilder.h.

References m_firstTower.

{m_firstTower = tow;};
void L1RPCConeBuilder::setLastTower ( int  tow) [inline]

Definition at line 130 of file L1RPCConeBuilder.h.

References m_lastTower.

{m_lastTower = tow;};

Member Data Documentation

Definition at line 140 of file L1RPCConeBuilder.h.

Referenced by getCompConVec(), and setCompressedConeConnectionMap().

boost::shared_ptr< TConMap > L1RPCConeBuilder::m_coneConnectionMap [private]

Definition at line 139 of file L1RPCConeBuilder.h.

Referenced by getConVec(), and setConeConnectionMap().

Definition at line 130 of file L1RPCConeBuilder.h.

Referenced by setFirstTower().

Definition at line 137 of file L1RPCConeBuilder.h.

Referenced by setLastTower().