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
 
std::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, std::uint16_t channels=0x0)
 
RPCFebConnectorsetChannels (std::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 (std::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

std::uint16_t channels_
 active channels in range [1-16] More...
 
std::uint8_t first_strip_
 strip, allowing range [1-128] More...
 
std::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,
std::uint16_t  channels = 0x0 
)

Definition at line 6 of file RPCFebConnector.cc.

References setFirstStrip().

7  : first_strip_(1), slope_(slope < 0 ? -1 : 1), channels_(channels), rpc_det_id_(rpc_det_id.rawId()) {
8  setFirstStrip(first_strip);
9 }
RPCFebConnector & setFirstStrip(unsigned int strip)
static const double slope[3]
::int8_t slope_
-1 or 1
std::uint16_t channels_
active channels in range [1-16]
std::uint32_t rpc_det_id_
std::uint8_t first_strip_
strip, allowing range [1-128]

Member Function Documentation

static unsigned int RPCFebConnector::bit_count ( std::uint16_t  )
static
unsigned int RPCFebConnector::getChannel ( unsigned int  strip) const
std::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 11 of file RPCFebConnector.cc.

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

Referenced by operator<<().

11  {
12  std::ostringstream oss;
13  oss << rpc_det_id_ << '_' << (int)first_strip_ << (slope_ < 0 ? '-' : '+') << '_' << std::hex << std::showbase
14  << channels_;
15  return oss.str();
16 }
::int8_t slope_
-1 or 1
std::uint16_t channels_
active channels in range [1-16]
std::uint32_t rpc_det_id_
std::uint8_t first_strip_
strip, allowing range [1-128]
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 ( std::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 54 of file RPCFebConnector.h.

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

Definition at line 54 of file RPCFebConnector.h.

Member Data Documentation

std::uint16_t RPCFebConnector::channels_
protected

active channels in range [1-16]

Definition at line 50 of file RPCFebConnector.h.

Referenced by getString().

std::uint8_t RPCFebConnector::first_strip_
protected

strip, allowing range [1-128]

Definition at line 48 of file RPCFebConnector.h.

Referenced by getString().

unsigned int const RPCFebConnector::max_first_strip_ = 128
static

Definition at line 15 of file RPCFebConnector.h.

unsigned int const RPCFebConnector::min_first_strip_ = 1
static

Definition at line 14 of file RPCFebConnector.h.

unsigned int const RPCFebConnector::nchannels_ = 16
static

Definition at line 16 of file RPCFebConnector.h.

std::uint32_t RPCFebConnector::rpc_det_id_
protected

Definition at line 52 of file RPCFebConnector.h.

Referenced by getString().

::int8_t RPCFebConnector::slope_
protected

-1 or 1

Definition at line 49 of file RPCFebConnector.h.

Referenced by getString().