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

◆ TCompressedConMap

Definition at line 107 of file L1RPCConeBuilder.h.

◆ TCompressedConVec

Definition at line 106 of file L1RPCConeBuilder.h.

◆ TConMap

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

Definition at line 45 of file L1RPCConeBuilder.h.

◆ TStrip2ConVec

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

Definition at line 44 of file L1RPCConeBuilder.h.

◆ TStripConVec

Definition at line 43 of file L1RPCConeBuilder.h.

Constructor & Destructor Documentation

◆ L1RPCConeBuilder()

L1RPCConeBuilder::L1RPCConeBuilder ( )

Definition at line 17 of file L1RPCConeBuilder.cc.

◆ ~L1RPCConeBuilder()

L1RPCConeBuilder::~L1RPCConeBuilder ( )
virtual

Definition at line 24 of file L1RPCConeBuilder.cc.

24 {}

Member Function Documentation

◆ getCompConVec()

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

Definition at line 45 of file L1RPCConeBuilder.cc.

References m_compressedConeConnectionMap, and createJobs::tmp.

Referenced by RPCConeBuilderFromES::getConesFromES().

45  {
47  L1RPCConeBuilder::TCompressedConVec::const_iterator itBeg = tmp.end();
48  L1RPCConeBuilder::TCompressedConVec::const_iterator itEnd = itBeg;
49 
51  itBeg = m_compressedConeConnectionMap->find(det)->second.begin();
52  itEnd = m_compressedConeConnectionMap->find(det)->second.end();
53  }
54 
55  return std::make_pair(itBeg, itEnd);
56 }
std::vector< TCompressedCon > TCompressedConVec
std::shared_ptr< TCompressedConMap > m_compressedConeConnectionMap
tmp
align.sh
Definition: createJobs.py:716

◆ getConVec()

std::pair< L1RPCConeBuilder::TStripConVec::const_iterator, L1RPCConeBuilder::TStripConVec::const_iterator > L1RPCConeBuilder::getConVec ( uint32_t  det,
unsigned char  strip 
) const

Definition at line 27 of file L1RPCConeBuilder.cc.

References m_coneConnectionMap, nano_mu_digi_cff::strip, and createJobs::tmp.

Referenced by RPCConeBuilderFromES::getConesFromES().

27  {
29  L1RPCConeBuilder::TStripConVec::const_iterator itBeg = tmp.end();
30  L1RPCConeBuilder::TStripConVec::const_iterator itEnd = itBeg;
31 
32  TConMap::const_iterator it1 = m_coneConnectionMap->find(det);
33  if (it1 != m_coneConnectionMap->end()) {
34  TStrip2ConVec::const_iterator it2 = it1->second.find(strip);
35  if (it2 != it1->second.end()) {
36  itBeg = it2->second.begin();
37  itEnd = it2->second.end();
38  }
39  }
40 
41  return std::make_pair(itBeg, itEnd);
42 }
std::shared_ptr< TConMap > m_coneConnectionMap
tmp
align.sh
Definition: createJobs.py:716
std::vector< TStripCon > TStripConVec

◆ serialize()

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

◆ setCompressedConeConnectionMap()

void L1RPCConeBuilder::setCompressedConeConnectionMap ( const std::shared_ptr< TCompressedConMap cmpConnMap)
inline

Definition at line 114 of file L1RPCConeBuilder.h.

References m_compressedConeConnectionMap.

114  {
115  m_compressedConeConnectionMap = cmpConnMap;
116  };
std::shared_ptr< TCompressedConMap > m_compressedConeConnectionMap

◆ setConeConnectionMap()

void L1RPCConeBuilder::setConeConnectionMap ( const std::shared_ptr< TConMap connMap)
inline

Definition at line 112 of file L1RPCConeBuilder.h.

References m_coneConnectionMap.

112 { m_coneConnectionMap = connMap; };
std::shared_ptr< TConMap > m_coneConnectionMap

◆ setFirstTower()

void L1RPCConeBuilder::setFirstTower ( int  tow)
inline

Definition at line 123 of file L1RPCConeBuilder.h.

References m_firstTower.

123 { m_firstTower = tow; };

◆ setLastTower()

void L1RPCConeBuilder::setLastTower ( int  tow)
inline

Definition at line 124 of file L1RPCConeBuilder.h.

References m_lastTower.

124 { m_lastTower = tow; };

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 133 of file L1RPCConeBuilder.h.

◆ cond::serialization::access

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

Definition at line 133 of file L1RPCConeBuilder.h.

Member Data Documentation

◆ m_compressedConeConnectionMap

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

Definition at line 131 of file L1RPCConeBuilder.h.

Referenced by getCompConVec(), and setCompressedConeConnectionMap().

◆ m_coneConnectionMap

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

Definition at line 130 of file L1RPCConeBuilder.h.

Referenced by getConVec(), and setConeConnectionMap().

◆ m_firstTower

int L1RPCConeBuilder::m_firstTower
private

Definition at line 124 of file L1RPCConeBuilder.h.

Referenced by setFirstTower().

◆ m_lastTower

int L1RPCConeBuilder::m_lastTower
private

Definition at line 128 of file L1RPCConeBuilder.h.

Referenced by setLastTower().