CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
L1RPCConeBuilder Class Reference

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

Classes

struct  TCompressedCon
 
struct  TStripCon
 

Public Types

typedef std::map< uint32_t, TCompressedConVecTCompressedConMap
 
typedef std::vector< TCompressedConTCompressedConVec
 
typedef std::map< uint32_t, TStrip2ConVecTConMap
 
typedef std::map< unsigned char, TStripConVecTStrip2ConVec
 
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 std::shared_ptr< TCompressedConMap > cmpConnMap)
 
void setConeConnectionMap (const std::shared_ptr< TConMap > connMap)
 
void setFirstTower (int tow)
 
void setLastTower (int tow)
 
virtual ~L1RPCConeBuilder ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

std::shared_ptr< TCompressedConMapm_compressedConeConnectionMap
 
std::shared_ptr< TConMapm_coneConnectionMap
 
int m_firstTower
 
int m_lastTower
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

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.

Referenced by RPCConeBuilderFromES::getConesFromES(), and setCompressedConeConnectionMap().

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
std::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.

Referenced by RPCConeBuilderFromES::getConesFromES(), and setCompressedConeConnectionMap().

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 }
std::shared_ptr< TConMap > m_coneConnectionMap
std::vector< TStripCon > TStripConVec
template<class Archive >
void L1RPCConeBuilder::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void L1RPCConeBuilder::setCompressedConeConnectionMap ( const std::shared_ptr< TCompressedConMap cmpConnMap)
inline

Definition at line 122 of file L1RPCConeBuilder.h.

References getCompConVec(), getConVec(), m_compressedConeConnectionMap, and digi_MixPreMix_cfi::strip.

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

Definition at line 119 of file L1RPCConeBuilder.h.

References m_coneConnectionMap.

120  { m_coneConnectionMap = connMap;};
std::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_firstTower, and m_lastTower.

135 {m_lastTower = tow;};

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 147 of file L1RPCConeBuilder.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 147 of file L1RPCConeBuilder.h.

Member Data Documentation

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

Definition at line 145 of file L1RPCConeBuilder.h.

Referenced by getCompConVec(), and setCompressedConeConnectionMap().

std::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(), and setLastTower().

int L1RPCConeBuilder::m_lastTower
private

Definition at line 142 of file L1RPCConeBuilder.h.

Referenced by setLastTower().