CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Private Attributes
L1RPCConeBuilder Class Reference

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

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

 COND_SERIALIZABLE
 
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 32 of file L1RPCConeBuilder.h.

Member Typedef Documentation

Definition at line 111 of file L1RPCConeBuilder.h.

Definition at line 110 of file L1RPCConeBuilder.h.

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

Definition at line 49 of file L1RPCConeBuilder.h.

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

Definition at line 48 of file L1RPCConeBuilder.h.

Definition at line 47 of file L1RPCConeBuilder.h.

Constructor & Destructor Documentation

L1RPCConeBuilder::L1RPCConeBuilder ( )

Definition at line 19 of file L1RPCConeBuilder.cc.

19  :
20  m_firstTower(0),
21  m_lastTower(-1)
22 {
23 
24 }
L1RPCConeBuilder::~L1RPCConeBuilder ( )
virtual

Definition at line 31 of file L1RPCConeBuilder.cc.

32 {
33 }

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.

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 }
std::vector< TCompressedCon > TCompressedConVec
boost::shared_ptr< TCompressedConMap > m_compressedConeConnectionMap
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.

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 }
boost::shared_ptr< TConMap > m_coneConnectionMap
std::vector< TStripCon > TStripConVec
void L1RPCConeBuilder::setCompressedConeConnectionMap ( const boost::shared_ptr< TCompressedConMap cmpConnMap)
inline

Definition at line 122 of file L1RPCConeBuilder.h.

References m_compressedConeConnectionMap.

124  {
125  m_compressedConeConnectionMap = cmpConnMap;
126  };
boost::shared_ptr< TCompressedConMap > m_compressedConeConnectionMap
void L1RPCConeBuilder::setConeConnectionMap ( const boost::shared_ptr< TConMap connMap)
inline

Definition at line 119 of file L1RPCConeBuilder.h.

References m_coneConnectionMap.

120  { m_coneConnectionMap = connMap;};
boost::shared_ptr< TConMap > m_coneConnectionMap
void L1RPCConeBuilder::setFirstTower ( int  tow)
inline

Definition at line 134 of file L1RPCConeBuilder.h.

References m_firstTower.

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

Definition at line 135 of file L1RPCConeBuilder.h.

References m_lastTower.

135 {m_lastTower = tow;};

Member Data Documentation

L1RPCConeBuilder::COND_SERIALIZABLE
private

Definition at line 147 of file L1RPCConeBuilder.h.

boost::shared_ptr< TCompressedConMap > L1RPCConeBuilder::m_compressedConeConnectionMap
private

Definition at line 145 of file L1RPCConeBuilder.h.

Referenced by getCompConVec(), and setCompressedConeConnectionMap().

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

Definition at line 144 of file L1RPCConeBuilder.h.

Referenced by getConVec(), and setConeConnectionMap().

int L1RPCConeBuilder::m_firstTower
private

Definition at line 135 of file L1RPCConeBuilder.h.

Referenced by setFirstTower().

int L1RPCConeBuilder::m_lastTower
private

Definition at line 142 of file L1RPCConeBuilder.h.

Referenced by setLastTower().