CMS 3D CMS Logo

Public Member Functions | Public Attributes

L1RPCConeBuilder::TCompressedCon Struct Reference

#include <L1RPCConeBuilder.h>

List of all members.

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

Detailed Description

Definition at line 50 of file L1RPCConeBuilder.h.


Constructor & Destructor Documentation

L1RPCConeBuilder::TCompressedCon::TCompressedCon ( ) [inline]

Definition at line 59 of file L1RPCConeBuilder.h.


Member Function Documentation

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;
        }

Member Data Documentation

Definition at line 54 of file L1RPCConeBuilder.h.

Referenced by RPCStripsRing::compressConnections(), and getLogStrip().

Definition at line 52 of file L1RPCConeBuilder.h.

Referenced by RPCStripsRing::compressConnections(), and getLogStrip().

Definition at line 57 of file L1RPCConeBuilder.h.

Referenced by RPCStripsRing::compressConnections(), and getLogStrip().

Definition at line 53 of file L1RPCConeBuilder.h.

Referenced by RPCStripsRing::compressConnections().

Definition at line 51 of file L1RPCConeBuilder.h.

Referenced by RPCStripsRing::compressConnections(), and getLogStrip().

Definition at line 55 of file L1RPCConeBuilder.h.

Referenced by addStrip(), and getLogStrip().

Definition at line 56 of file L1RPCConeBuilder.h.

Referenced by addStrip(), and getLogStrip().