#include <L1RPCConeBuilder.h>
Public Member Functions | |
void | addStrip (unsigned char strip) |
int | getLogStrip (int strip, const L1RPCConeDefinition::TLPSizeVec &LPSizeVec) const |
TCompressedCon () | |
Public Attributes | |
unsigned char | m_logplane |
signed char | m_mul |
signed short | m_offset |
unsigned char | m_PAC |
signed char | m_tower |
unsigned char | m_validForStripFirst |
unsigned char | m_validForStripLast |
Definition at line 50 of file L1RPCConeBuilder.h.
L1RPCConeBuilder::TCompressedCon::TCompressedCon | ( | ) | [inline] |
Definition at line 59 of file L1RPCConeBuilder.h.
: m_tower(99), m_mul(99), m_PAC(0), m_logplane(99), m_validForStripFirst(0), m_validForStripLast(0), m_offset(-1000){};
void L1RPCConeBuilder::TCompressedCon::addStrip | ( | unsigned char | strip | ) | [inline] |
Definition at line 90 of file L1RPCConeBuilder.h.
References m_validForStripFirst, and m_validForStripLast.
Referenced by RPCStripsRing::compressConnections().
{ if (m_validForStripFirst==0) { m_validForStripFirst = strip; m_validForStripLast = strip; } else if (strip < m_validForStripFirst){ m_validForStripFirst = strip; } else if (strip > m_validForStripLast){ m_validForStripLast = strip; } }
int L1RPCConeBuilder::TCompressedCon::getLogStrip | ( | int | strip, |
const L1RPCConeDefinition::TLPSizeVec & | LPSizeVec | ||
) | const [inline] |
Definition at line 62 of file L1RPCConeBuilder.h.
References abs, m_logplane, m_mul, m_offset, m_tower, m_validForStripFirst, m_validForStripLast, and run_regression::ret.
{ int ret = -1; if ( strip >= m_validForStripFirst && strip <= m_validForStripLast ){ ret = int(m_mul)*strip+int(m_offset); int lpSize = -1; L1RPCConeDefinition::TLPSizeVec::const_iterator it = LPSizeVec.begin(); L1RPCConeDefinition::TLPSizeVec::const_iterator itEnd = LPSizeVec.end(); for (;it!=itEnd;++it){ if (it->m_tower != std::abs(m_tower) || it->m_LP != m_logplane-1) continue; lpSize = it->m_size; } //FIXME if (lpSize==-1) { //throw cms::Exception("getLogStrip") << " lpSize==-1\n"; } //if (ret<0 || ret > LPSizesInTowers.at(std::abs(m_tower)).at(m_logplane-1) ) if (ret<0 || ret > lpSize ) return -1; } return ret; }
unsigned char L1RPCConeBuilder::TCompressedCon::m_logplane |
Definition at line 54 of file L1RPCConeBuilder.h.
Referenced by RPCStripsRing::compressConnections(), and getLogStrip().
signed char L1RPCConeBuilder::TCompressedCon::m_mul |
Definition at line 52 of file L1RPCConeBuilder.h.
Referenced by RPCStripsRing::compressConnections(), and getLogStrip().
signed short L1RPCConeBuilder::TCompressedCon::m_offset |
Definition at line 57 of file L1RPCConeBuilder.h.
Referenced by RPCStripsRing::compressConnections(), and getLogStrip().
unsigned char L1RPCConeBuilder::TCompressedCon::m_PAC |
Definition at line 53 of file L1RPCConeBuilder.h.
Referenced by RPCStripsRing::compressConnections().
signed char L1RPCConeBuilder::TCompressedCon::m_tower |
Definition at line 51 of file L1RPCConeBuilder.h.
Referenced by RPCStripsRing::compressConnections(), and getLogStrip().
unsigned char L1RPCConeBuilder::TCompressedCon::m_validForStripFirst |
Definition at line 55 of file L1RPCConeBuilder.h.
Referenced by addStrip(), and getLogStrip().
unsigned char L1RPCConeBuilder::TCompressedCon::m_validForStripLast |
Definition at line 56 of file L1RPCConeBuilder.h.
Referenced by addStrip(), and getLogStrip().