CMS 3D CMS Logo

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

#include <RPCDCCLink.h>

Public Member Functions

::uint32_t getId () const
 
::uint32_t getMask () const
 
std::string getName () const
 
bool matches (RPCDCCLink const &_rhs) const
 
bool operator!= (RPCDCCLink const &_rhs) const
 
bool operator!= (::uint32_t const &_rhs) const
 
RPCDCCLinkoperator++ ()
 
RPCDCCLink operator++ (int)
 
RPCDCCLinkoperator-- ()
 
RPCDCCLink operator-- (int)
 
 operator::uint32_t () const
 
bool operator< (RPCDCCLink const &_rhs) const
 
bool operator< (::uint32_t const &_rhs) const
 
bool operator== (RPCDCCLink const &_rhs) const
 
bool operator== (::uint32_t const &_rhs) const
 
void reset ()
 
 RPCDCCLink ()
 
 RPCDCCLink (::uint32_t const &_id)
 
 RPCDCCLink (int _fed, int _dccinput, int _tbinput=wildcard_)
 
void setId (::uint32_t const &_id)
 
int getFED () const
 
int getDCCInput () const
 
int getTBInput () const
 
RPCDCCLinksetFED (int _fed=wildcard_)
 
RPCDCCLinksetDCCInput (int _dccinput=wildcard_)
 
RPCDCCLinksetTBInput (int _tbinput=wildcard_)
 

Static Public Attributes

static int const wildcard_ = INT_MIN
 
static int const min_fed_ = 0
 
static int const max_fed_ = 65534
 
static int const min_dccinput_ = 0
 
static int const max_dccinput_ = 36
 
static int const min_tbinput_ = 0
 
static int const max_tbinput_ = 18
 

Protected Member Functions

int bf_get (int const _min,::uint32_t const _mask, int const _pos) const
 
RPCDCCLinkbf_set (int const _min, int const _max,::uint32_t const _mask, int const _pos, int const _value)
 
std::ostream & bf_stream (std::ostream &_ostream, int const _min,::uint32_t const _mask, int const _pos) const
 

Protected Attributes

::uint32_t id_
 

Static Protected Attributes

static int const pos_fed_ = 16
 
::uint32_t const mask_fed_ = 0xffff0000
 
static int const pos_dccinput_ = 8
 
::uint32_t const mask_dccinput_ = 0x0000ff00
 
static int const pos_tbinput_ = 0
 
::uint32_t const mask_tbinput_ = 0x000000ff
 

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

Identifier for RPC DCC-LB path

Definition at line 12 of file RPCDCCLink.h.

Constructor & Destructor Documentation

RPCDCCLink::RPCDCCLink ( )

Definition at line 6 of file RPCDCCLink.cc.

7  : id_(0x0)
8 {}
RPCDCCLink::RPCDCCLink ( ::uint32_t const &  _id)

Definition at line 10 of file RPCDCCLink.cc.

11  : id_(_id)
12 {}
RPCDCCLink::RPCDCCLink ( int  _fed,
int  _dccinput,
int  _tbinput = wildcard_ 
)

Definition at line 14 of file RPCDCCLink.cc.

References setDCCInput(), setFED(), and setTBInput().

17  : id_(0x0)
18 {
19  setFED(_fed);
20  setDCCInput(_dccinput);
21  setTBInput(_tbinput);
22 }

Member Function Documentation

int RPCDCCLink::bf_get ( int const  _min,
::uint32_t const  _mask,
int const  _pos 
) const
protected
RPCDCCLink& RPCDCCLink::bf_set ( int const  _min,
int const  _max,
::uint32_t const  _mask,
int const  _pos,
int const  _value 
)
protected
std::ostream& RPCDCCLink::bf_stream ( std::ostream &  _ostream,
int const  _min,
::uint32_t const  _mask,
int const  _pos 
) const
protected

Referenced by getName().

int RPCDCCLink::getDCCInput ( ) const
int RPCDCCLink::getFED ( ) const

Field Getters

::uint32_t RPCDCCLink::getId ( ) const
uint32_t RPCDCCLink::getMask ( ) const

Definition at line 24 of file RPCDCCLink.cc.

References id_, mask_dccinput_, mask_fed_, and mask_tbinput_.

25 {
26  ::uint32_t _mask(0x0);
27  if (id_ & mask_fed_)
28  _mask |= mask_fed_;
29  if (id_ & mask_dccinput_)
30  _mask |= mask_dccinput_;
31  if (id_ & mask_tbinput_)
32  _mask |= mask_tbinput_;
33  return _mask;
34 }
std::string RPCDCCLink::getName ( ) const

Definition at line 36 of file RPCDCCLink.cc.

References bf_stream(), mask_dccinput_, mask_fed_, mask_tbinput_, min_dccinput_, min_fed_, min_tbinput_, pos_dccinput_, pos_fed_, and pos_tbinput_.

Referenced by plotting.Plot::draw(), and operator<<().

37 {
38  std::ostringstream _oss;
39  _oss << "RPCDCCLink_";
43  return _oss.str();
44 }
int RPCDCCLink::getTBInput ( ) const
bool RPCDCCLink::matches ( RPCDCCLink const &  _rhs) const
bool RPCDCCLink::operator!= ( RPCDCCLink const &  _rhs) const
bool RPCDCCLink::operator!= ( ::uint32_t const &  _rhs) const
RPCDCCLink& RPCDCCLink::operator++ ( )
RPCDCCLink RPCDCCLink::operator++ ( int  )
RPCDCCLink& RPCDCCLink::operator-- ( )
RPCDCCLink RPCDCCLink::operator-- ( int  )
RPCDCCLink::operator::uint32_t ( ) const
bool RPCDCCLink::operator< ( RPCDCCLink const &  _rhs) const
bool RPCDCCLink::operator< ( ::uint32_t const &  _rhs) const
bool RPCDCCLink::operator== ( RPCDCCLink const &  _rhs) const
bool RPCDCCLink::operator== ( ::uint32_t const &  _rhs) const
void RPCDCCLink::reset ( )
template<class Archive >
void RPCDCCLink::serialize ( Archive &  ar,
const unsigned int  version 
)
private
RPCDCCLink& RPCDCCLink::setDCCInput ( int  _dccinput = wildcard_)

Referenced by RPCDCCLink().

RPCDCCLink& RPCDCCLink::setFED ( int  _fed = wildcard_)

Field Setters A cms::Exception("OutOfRange") is thrown for out-of-range input values.

Referenced by RPCDCCLink().

void RPCDCCLink::setId ( ::uint32_t const &  _id)
RPCDCCLink& RPCDCCLink::setTBInput ( int  _tbinput = wildcard_)

Referenced by RPCDCCLink().

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 92 of file RPCDCCLink.h.

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

Definition at line 92 of file RPCDCCLink.h.

Member Data Documentation

::uint32_t RPCDCCLink::id_
protected

Definition at line 90 of file RPCDCCLink.h.

Referenced by getMask().

::uint32_t const RPCDCCLink::mask_dccinput_ = 0x0000ff00
staticprotected

Definition at line 33 of file RPCDCCLink.h.

Referenced by getMask(), and getName().

::uint32_t const RPCDCCLink::mask_fed_ = 0xffff0000
staticprotected

Definition at line 31 of file RPCDCCLink.h.

Referenced by getMask(), and getName().

::uint32_t const RPCDCCLink::mask_tbinput_ = 0x000000ff
staticprotected

Definition at line 35 of file RPCDCCLink.h.

Referenced by getMask(), and getName().

int const RPCDCCLink::max_dccinput_ = 36
static

Definition at line 22 of file RPCDCCLink.h.

int const RPCDCCLink::max_fed_ = 65534
static

Definition at line 20 of file RPCDCCLink.h.

int const RPCDCCLink::max_tbinput_ = 18
static

Definition at line 24 of file RPCDCCLink.h.

int const RPCDCCLink::min_dccinput_ = 0
static

Definition at line 21 of file RPCDCCLink.h.

Referenced by getName().

int const RPCDCCLink::min_fed_ = 0
static

field ranges

Definition at line 19 of file RPCDCCLink.h.

Referenced by getName().

int const RPCDCCLink::min_tbinput_ = 0
static

Definition at line 23 of file RPCDCCLink.h.

Referenced by getName().

int const RPCDCCLink::pos_dccinput_ = 8
staticprotected

Definition at line 32 of file RPCDCCLink.h.

Referenced by getName().

int const RPCDCCLink::pos_fed_ = 16
staticprotected

field positions and masks

Definition at line 30 of file RPCDCCLink.h.

Referenced by getName().

int const RPCDCCLink::pos_tbinput_ = 0
staticprotected

Definition at line 34 of file RPCDCCLink.h.

Referenced by getName().

int const RPCDCCLink::wildcard_ = INT_MIN
static

Definition at line 15 of file RPCDCCLink.h.