1 #ifndef CondFormats_RPCObjects_L1RPCConeBuilder_h 2 #define CondFormats_RPCObjects_L1RPCConeBuilder_h 49 typedef std::map<uint32_t, TStrip2ConVec>
TConMap;
64 m_logplane(99), m_validForStripFirst(0), m_validForStripLast(0), m_offset(-1000){};
68 if ( strip >= m_validForStripFirst && strip <= m_validForStripLast ){
69 ret =
int(m_mul)*strip+
int(m_offset);
72 L1RPCConeDefinition::TLPSizeVec::const_iterator it = LPSizeVec.begin();
73 L1RPCConeDefinition::TLPSizeVec::const_iterator itEnd = LPSizeVec.end();
74 for (;it!=itEnd;++it){
76 if (it->m_tower !=
std::abs(m_tower) || it->m_LP != m_logplane-1)
continue;
87 if (ret<0 || ret > lpSize )
95 if (m_validForStripFirst==0) {
96 m_validForStripFirst =
strip;
97 m_validForStripLast =
strip;
98 }
else if (strip < m_validForStripFirst){
99 m_validForStripFirst =
strip;
101 else if (strip > m_validForStripLast){
102 m_validForStripLast =
strip;
128 std::pair<TStripConVec::const_iterator, TStripConVec::const_iterator>
131 std::pair<TCompressedConVec::const_iterator, TCompressedConVec::const_iterator>
std::pair< TCompressedConVec::const_iterator, TCompressedConVec::const_iterator > getCompConVec(uint32_t det) const
void addStrip(unsigned char strip)
std::vector< TLPSize > TLPSizeVec
std::map< unsigned char, TStripConVec > TStrip2ConVec
int getLogStrip(int strip, const L1RPCConeDefinition::TLPSizeVec &LPSizeVec) const
unsigned char m_validForStripFirst
Abs< T >::type abs(const T &t)
void setLastTower(int tow)
void setConeConnectionMap(const std::shared_ptr< TConMap > connMap)
std::pair< TStripConVec::const_iterator, TStripConVec::const_iterator > getConVec(uint32_t det, unsigned char strip) const
std::vector< TCompressedCon > TCompressedConVec
std::map< uint32_t, TStrip2ConVec > TConMap
std::map< uint32_t, TCompressedConVec > TCompressedConMap
unsigned char m_validForStripLast
void setFirstTower(int tow)
void setCompressedConeConnectionMap(const std::shared_ptr< TCompressedConMap > cmpConnMap)
#define COND_SERIALIZABLE
virtual ~L1RPCConeBuilder()
std::shared_ptr< TConMap > m_coneConnectionMap
std::shared_ptr< TCompressedConMap > m_compressedConeConnectionMap
std::vector< TStripCon > TStripConVec