CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Member Functions | Friends
L1RPCConeBuilder::TCompressedCon Struct Reference

#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
 

Private Member Functions

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

Friends

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

Detailed Description

Definition at line 48 of file L1RPCConeBuilder.h.

Constructor & Destructor Documentation

◆ TCompressedCon()

L1RPCConeBuilder::TCompressedCon::TCompressedCon ( )
inline

Definition at line 57 of file L1RPCConeBuilder.h.

58  : m_tower(99),
59  m_mul(99),
60  m_PAC(0),
61  m_logplane(99),
64  m_offset(-1000){};

Member Function Documentation

◆ addStrip()

void L1RPCConeBuilder::TCompressedCon::addStrip ( unsigned char  strip)
inline

Definition at line 92 of file L1RPCConeBuilder.h.

92  {
93  if (m_validForStripFirst == 0) {
96  } else if (strip < m_validForStripFirst) {
98  } else if (strip > m_validForStripLast) {
100  }
101  }

References m_validForStripFirst, m_validForStripLast, and digitizers_cfi::strip.

Referenced by RPCStripsRing::compressConnections().

◆ getLogStrip()

int L1RPCConeBuilder::TCompressedCon::getLogStrip ( int  strip,
const L1RPCConeDefinition::TLPSizeVec LPSizeVec 
) const
inline

Definition at line 66 of file L1RPCConeBuilder.h.

66  {
67  int ret = -1;
69  ret = int(m_mul) * strip + int(m_offset);
70 
71  int lpSize = -1;
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)
76  continue;
77  lpSize = it->m_size;
78  }
79 
80  //FIXME
81  if (lpSize == -1) {
82  //throw cms::Exception("getLogStrip") << " lpSize==-1\n";
83  }
84 
85  //if (ret<0 || ret > LPSizesInTowers.at(std::abs(m_tower)).at(m_logplane-1) )
86  if (ret < 0 || ret > lpSize)
87  return -1;
88  }
89  return ret;
90  }

References funct::abs(), createfilelist::int, m_logplane, m_mul, m_offset, m_tower, m_validForStripFirst, m_validForStripLast, runTheMatrix::ret, and digitizers_cfi::strip.

◆ serialize()

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

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 103 of file L1RPCConeBuilder.h.

◆ cond::serialization::access

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

Definition at line 103 of file L1RPCConeBuilder.h.

Member Data Documentation

◆ m_logplane

unsigned char L1RPCConeBuilder::TCompressedCon::m_logplane

Definition at line 52 of file L1RPCConeBuilder.h.

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

◆ m_mul

signed char L1RPCConeBuilder::TCompressedCon::m_mul

Definition at line 50 of file L1RPCConeBuilder.h.

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

◆ m_offset

signed short L1RPCConeBuilder::TCompressedCon::m_offset

Definition at line 55 of file L1RPCConeBuilder.h.

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

◆ m_PAC

unsigned char L1RPCConeBuilder::TCompressedCon::m_PAC

Definition at line 51 of file L1RPCConeBuilder.h.

Referenced by RPCStripsRing::compressConnections().

◆ m_tower

signed char L1RPCConeBuilder::TCompressedCon::m_tower

Definition at line 49 of file L1RPCConeBuilder.h.

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

◆ m_validForStripFirst

unsigned char L1RPCConeBuilder::TCompressedCon::m_validForStripFirst

Definition at line 53 of file L1RPCConeBuilder.h.

Referenced by addStrip(), and getLogStrip().

◆ m_validForStripLast

unsigned char L1RPCConeBuilder::TCompressedCon::m_validForStripLast

Definition at line 54 of file L1RPCConeBuilder.h.

Referenced by addStrip(), and getLogStrip().

runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:367
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
L1RPCConeBuilder::TCompressedCon::m_offset
signed short m_offset
Definition: L1RPCConeBuilder.h:55
createfilelist.int
int
Definition: createfilelist.py:10
L1RPCConeBuilder::TCompressedCon::m_validForStripFirst
unsigned char m_validForStripFirst
Definition: L1RPCConeBuilder.h:53
L1RPCConeBuilder::TCompressedCon::m_PAC
unsigned char m_PAC
Definition: L1RPCConeBuilder.h:51
L1RPCConeBuilder::TCompressedCon::m_logplane
unsigned char m_logplane
Definition: L1RPCConeBuilder.h:52
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
L1RPCConeBuilder::TCompressedCon::m_tower
signed char m_tower
Definition: L1RPCConeBuilder.h:49
L1RPCConeBuilder::TCompressedCon::m_validForStripLast
unsigned char m_validForStripLast
Definition: L1RPCConeBuilder.h:54
L1RPCConeBuilder::TCompressedCon::m_mul
signed char m_mul
Definition: L1RPCConeBuilder.h:50