1 #ifndef CondFormats_RPCObjects_L1RPCConeBuilder_h 2 #define CondFormats_RPCObjects_L1RPCConeBuilder_h 30 #include <boost/serialization/shared_ptr.hpp> 45 typedef std::map<uint32_t, TStrip2ConVec>
TConMap;
62 m_validForStripFirst(0),
63 m_validForStripLast(0),
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) {
75 if (it->m_tower !=
std::abs(m_tower) || it->m_LP != m_logplane - 1)
86 if (ret < 0 || ret > lpSize)
93 if (m_validForStripFirst == 0) {
94 m_validForStripFirst =
strip;
95 m_validForStripLast =
strip;
96 }
else if (strip < m_validForStripFirst) {
97 m_validForStripFirst =
strip;
98 }
else if (strip > m_validForStripLast) {
99 m_validForStripLast =
strip;
118 std::pair<TStripConVec::const_iterator, TStripConVec::const_iterator>
getConVec(uint32_t det,
119 unsigned char strip)
const;
121 std::pair<TCompressedConVec::const_iterator, TCompressedConVec::const_iterator>
getCompConVec(uint32_t det)
const;
ret
prodAgent to be discontinued
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
std::shared_ptr< TCompressedConMap > m_compressedConeConnectionMap
virtual ~L1RPCConeBuilder()
std::shared_ptr< TConMap > m_coneConnectionMap
std::vector< TStripCon > TStripConVec