CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | Private Member Functions | Friends
RPCFebConnector Class Reference

#include <RPCFebConnector.h>

Public Member Functions

unsigned int getChannel (unsigned int _strip) const
 
::uint16_t getChannels () const
 
unsigned int getFirstStrip () const
 
unsigned int getNChannels () const
 
RPCDetId getRPCDetId () const
 
int getSlope () const
 
std::string getString () const
 
unsigned int getStrip (unsigned int _channel) const
 
bool hasStrip (unsigned int _strip) const
 
bool isActive (unsigned int _channel) const
 
void reset ()
 
 RPCFebConnector (RPCDetId const &_rpc_det_id=RPCDetId(0, 0, 1, 1, 1, 1, 0), unsigned int _first_strip=1, int _slope=1,::uint16_t _channels=0x0)
 
RPCFebConnectorsetChannels (::uint16_t _channels)
 
RPCFebConnectorsetFirstStrip (unsigned int _strip)
 
RPCFebConnectorsetRPCDetId (RPCDetId const &_rpc_det_id)
 
RPCFebConnectorsetSlope (int _slope)
 

Static Public Member Functions

static unsigned int bit_count (::uint16_t)
 

Static Public Attributes

static unsigned int const max_first_strip_ = 128
 
static unsigned int const min_first_strip_ = 1
 
static unsigned int const nchannels_ = 16
 

Protected Attributes

::uint16_t channels_
 active channels in range [1-16] More...
 
::uint8_t first_strip_
 strip, allowing range [1-128] More...
 
::uint32_t rpc_det_id_
 
::int8_t slope_
 -1 or 1 More...
 

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 12 of file RPCFebConnector.h.

Constructor & Destructor Documentation

RPCFebConnector::RPCFebConnector ( RPCDetId const &  _rpc_det_id = RPCDetId(0, 0, 1, 1, 1, 1, 0),
unsigned int  _first_strip = 1,
int  _slope = 1,
::uint16_t  _channels = 0x0 
)

Definition at line 6 of file RPCFebConnector.cc.

References setFirstStrip().

10  : first_strip_(1)
11  , slope_(_slope < 0 ? -1 : 1)
12  , channels_(_channels)
13  , rpc_det_id_(_rpc_det_id.rawId())
14 {
15  setFirstStrip(_first_strip);
16 }
::int8_t slope_
-1 or 1
::uint32_t rpc_det_id_
::uint8_t first_strip_
strip, allowing range [1-128]
::uint16_t channels_
active channels in range [1-16]
RPCFebConnector & setFirstStrip(unsigned int _strip)

Member Function Documentation

static unsigned int RPCFebConnector::bit_count ( ::uint16_t  )
static
unsigned int RPCFebConnector::getChannel ( unsigned int  _strip) const
::uint16_t RPCFebConnector::getChannels ( ) const
unsigned int RPCFebConnector::getFirstStrip ( ) const
unsigned int RPCFebConnector::getNChannels ( ) const
RPCDetId RPCFebConnector::getRPCDetId ( ) const
int RPCFebConnector::getSlope ( ) const
std::string RPCFebConnector::getString ( void  ) const

Definition at line 18 of file RPCFebConnector.cc.

References channels_, first_strip_, createfilelist::int, rpc_det_id_, and slope_.

Referenced by operator<<().

19 {
20  std::ostringstream _oss;
21  _oss << rpc_det_id_ << '_'
22  << (int)first_strip_ << (slope_ < 0 ? '-' : '+') << '_'
23  << std::hex << std::showbase << channels_;
24  return _oss.str();
25 }
::int8_t slope_
-1 or 1
::uint32_t rpc_det_id_
::uint8_t first_strip_
strip, allowing range [1-128]
::uint16_t channels_
active channels in range [1-16]
unsigned int RPCFebConnector::getStrip ( unsigned int  _channel) const
bool RPCFebConnector::hasStrip ( unsigned int  _strip) const
bool RPCFebConnector::isActive ( unsigned int  _channel) const
void RPCFebConnector::reset ( )
template<class Archive >
void RPCFebConnector::serialize ( Archive &  ar,
const unsigned int  version 
)
private
RPCFebConnector& RPCFebConnector::setChannels ( ::uint16_t  _channels)
RPCFebConnector& RPCFebConnector::setFirstStrip ( unsigned int  _strip)

Referenced by RPCFebConnector().

RPCFebConnector& RPCFebConnector::setRPCDetId ( RPCDetId const &  _rpc_det_id)
RPCFebConnector& RPCFebConnector::setSlope ( int  _slope)

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 55 of file RPCFebConnector.h.

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

Definition at line 55 of file RPCFebConnector.h.

Member Data Documentation

::uint16_t RPCFebConnector::channels_
protected

active channels in range [1-16]

Definition at line 51 of file RPCFebConnector.h.

Referenced by getString().

::uint8_t RPCFebConnector::first_strip_
protected

strip, allowing range [1-128]

Definition at line 49 of file RPCFebConnector.h.

Referenced by getString().

unsigned int const RPCFebConnector::max_first_strip_ = 128
static

Definition at line 16 of file RPCFebConnector.h.

unsigned int const RPCFebConnector::min_first_strip_ = 1
static

Definition at line 15 of file RPCFebConnector.h.

unsigned int const RPCFebConnector::nchannels_ = 16
static

Definition at line 17 of file RPCFebConnector.h.

::uint32_t RPCFebConnector::rpc_det_id_
protected

Definition at line 53 of file RPCFebConnector.h.

Referenced by getString().

::int8_t RPCFebConnector::slope_
protected

-1 or 1

Definition at line 50 of file RPCFebConnector.h.

Referenced by getString().