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 const int max_first_strip_ = 128
 
static unsigned const int min_first_strip_ = 1
 
static unsigned const int 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::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.

7  : first_strip_(1), slope_(slope < 0 ? -1 : 1), channels_(channels), rpc_det_id_(rpc_det_id.rawId()) {
8  setFirstStrip(first_strip);
9 }

References setFirstStrip().

Member Function Documentation

◆ bit_count()

static unsigned int RPCFebConnector::bit_count ( std::uint16_t  )
static

◆ getChannel()

unsigned int RPCFebConnector::getChannel ( unsigned int  strip) const

◆ getChannels()

std::uint16_t RPCFebConnector::getChannels ( ) const

◆ getFirstStrip()

unsigned int RPCFebConnector::getFirstStrip ( ) const

◆ getNChannels()

unsigned int RPCFebConnector::getNChannels ( ) const

◆ getRPCDetId()

RPCDetId RPCFebConnector::getRPCDetId ( ) const

◆ getSlope()

int RPCFebConnector::getSlope ( ) const

◆ getString()

std::string RPCFebConnector::getString ( void  ) const

Definition at line 11 of file RPCFebConnector.cc.

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 }

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

Referenced by operator<<().

◆ getStrip()

unsigned int RPCFebConnector::getStrip ( unsigned int  channel) const

◆ hasStrip()

bool RPCFebConnector::hasStrip ( unsigned int  strip) const

◆ isActive()

bool RPCFebConnector::isActive ( unsigned int  channel) const

◆ reset()

void RPCFebConnector::reset ( )

◆ serialize()

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

◆ setChannels()

RPCFebConnector& RPCFebConnector::setChannels ( std::uint16_t  channels)

◆ setFirstStrip()

RPCFebConnector& RPCFebConnector::setFirstStrip ( unsigned int  strip)

Referenced by RPCFebConnector().

◆ setRPCDetId()

RPCFebConnector& RPCFebConnector::setRPCDetId ( RPCDetId const &  rpc_det_id)

◆ setSlope()

RPCFebConnector& RPCFebConnector::setSlope ( int  slope)

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 54 of file RPCFebConnector.h.

◆ cond::serialization::access

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

Definition at line 54 of file RPCFebConnector.h.

Member Data Documentation

◆ channels_

std::uint16_t RPCFebConnector::channels_
protected

active channels in range [1-16]

Definition at line 50 of file RPCFebConnector.h.

Referenced by getString().

◆ first_strip_

std::uint8_t RPCFebConnector::first_strip_
protected

strip, allowing range [1-128]

Definition at line 48 of file RPCFebConnector.h.

Referenced by getString().

◆ max_first_strip_

unsigned const int RPCFebConnector::max_first_strip_ = 128
static

Definition at line 15 of file RPCFebConnector.h.

◆ min_first_strip_

unsigned const int RPCFebConnector::min_first_strip_ = 1
static

Definition at line 14 of file RPCFebConnector.h.

◆ nchannels_

unsigned const int RPCFebConnector::nchannels_ = 16
static

Definition at line 16 of file RPCFebConnector.h.

◆ rpc_det_id_

std::uint32_t RPCFebConnector::rpc_det_id_
protected

Definition at line 52 of file RPCFebConnector.h.

Referenced by getString().

◆ slope_

::int8_t RPCFebConnector::slope_
protected

-1 or 1

Definition at line 49 of file RPCFebConnector.h.

Referenced by getString().

RPCFebConnector::slope_
::int8_t slope_
-1 or 1
Definition: RPCFebConnector.h:49
RPCFebConnector::setFirstStrip
RPCFebConnector & setFirstStrip(unsigned int strip)
RPCFebConnector::rpc_det_id_
std::uint32_t rpc_det_id_
Definition: RPCFebConnector.h:52
createfilelist.int
int
Definition: createfilelist.py:10
RPCFebConnector::first_strip_
std::uint8_t first_strip_
strip, allowing range [1-128]
Definition: RPCFebConnector.h:48
ewkTauDQM_cfi.channels
channels
Definition: ewkTauDQM_cfi.py:14
RPCFebConnector::channels_
std::uint16_t channels_
active channels in range [1-16]
Definition: RPCFebConnector.h:50
slope
static const double slope[3]
Definition: CastorTimeSlew.cc:6