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

std::uint32_t getId () const
 
std::uint32_t getMask () const
 
std::string getName () const
 
bool matches (RPCDCCLink const &rhs) const
 
 operator std::uint32_t () const
 
bool operator!= (RPCDCCLink const &rhs) const
 
bool operator!= (std::uint32_t const &rhs) const
 
RPCDCCLinkoperator++ ()
 
RPCDCCLink operator++ (int)
 
RPCDCCLinkoperator-- ()
 
RPCDCCLink operator-- (int)
 
bool operator< (RPCDCCLink const &rhs) const
 
bool operator< (std::uint32_t const &rhs) const
 
bool operator== (RPCDCCLink const &rhs) const
 
bool operator== (std::uint32_t const &rhs) const
 
void reset ()
 
 RPCDCCLink ()
 
 RPCDCCLink (std::uint32_t const &id)
 
 RPCDCCLink (int fed, int dccinput, int tbinput=wildcard_)
 
void setId (std::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, std::uint32_t const mask, int const pos) const
 
RPCDCCLinkbf_set (int const min, int const max, std::uint32_t const mask, int const pos, int const value)
 
std::ostream & bf_stream (std::ostream &ostream, int const min, std::uint32_t const mask, int const pos) const
 

Protected Attributes

std::uint32_t id_
 

Static Protected Attributes

static int const pos_fed_ = 16
 
static std::uint32_t const mask_fed_ = 0xffff0000
 
static int const pos_dccinput_ = 8
 
static std::uint32_t const mask_dccinput_ = 0x0000ff00
 
static int const pos_tbinput_ = 0
 
static std::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() [1/3]

RPCDCCLink::RPCDCCLink ( )

Definition at line 6 of file RPCDCCLink.cc.

6 : id_(0x0) {}

◆ RPCDCCLink() [2/3]

RPCDCCLink::RPCDCCLink ( std::uint32_t const &  id)

Definition at line 8 of file RPCDCCLink.cc.

8 : id_(id) {}

◆ RPCDCCLink() [3/3]

RPCDCCLink::RPCDCCLink ( int  fed,
int  dccinput,
int  tbinput = wildcard_ 
)

Definition at line 10 of file RPCDCCLink.cc.

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

10  : id_(0x0) {
11  setFED(fed);
12  setDCCInput(dccinput);
13  setTBInput(tbinput);
14 }

Member Function Documentation

◆ bf_get()

int RPCDCCLink::bf_get ( int const  min,
std::uint32_t const  mask,
int const  pos 
) const
protected

◆ bf_set()

RPCDCCLink& RPCDCCLink::bf_set ( int const  min,
int const  max,
std::uint32_t const  mask,
int const  pos,
int const  value 
)
protected

◆ bf_stream()

std::ostream& RPCDCCLink::bf_stream ( std::ostream &  ostream,
int const  min,
std::uint32_t const  mask,
int const  pos 
) const
protected

Referenced by getName().

◆ getDCCInput()

int RPCDCCLink::getDCCInput ( ) const

◆ getFED()

int RPCDCCLink::getFED ( ) const

Field Getters

◆ getId()

std::uint32_t RPCDCCLink::getId ( ) const

◆ getMask()

std::uint32_t RPCDCCLink::getMask ( ) const

Definition at line 16 of file RPCDCCLink.cc.

References id_, gpuClustering::pixelStatus::mask, mask_dccinput_, mask_fed_, and mask_tbinput_.

16  {
17  std::uint32_t mask(0x0);
18  if (id_ & mask_fed_)
19  mask |= mask_fed_;
20  if (id_ & mask_dccinput_)
22  if (id_ & mask_tbinput_)
24  return mask;
25 }
constexpr uint32_t mask
Definition: gpuClustering.h:26

◆ getName()

std::string RPCDCCLink::getName ( ) const

Definition at line 27 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<<().

27  {
28  std::ostringstream oss;
29  oss << "RPCDCCLink_";
33  return oss.str();
34 }

◆ getTBInput()

int RPCDCCLink::getTBInput ( ) const

◆ matches()

bool RPCDCCLink::matches ( RPCDCCLink const &  rhs) const

◆ operator std::uint32_t()

RPCDCCLink::operator std::uint32_t ( ) const

◆ operator!=() [1/2]

bool RPCDCCLink::operator!= ( RPCDCCLink const &  rhs) const

◆ operator!=() [2/2]

bool RPCDCCLink::operator!= ( std::uint32_t const &  rhs) const

◆ operator++() [1/2]

RPCDCCLink& RPCDCCLink::operator++ ( )

◆ operator++() [2/2]

RPCDCCLink RPCDCCLink::operator++ ( int  )

◆ operator--() [1/2]

RPCDCCLink& RPCDCCLink::operator-- ( )

◆ operator--() [2/2]

RPCDCCLink RPCDCCLink::operator-- ( int  )

◆ operator<() [1/2]

bool RPCDCCLink::operator< ( RPCDCCLink const &  rhs) const

◆ operator<() [2/2]

bool RPCDCCLink::operator< ( std::uint32_t const &  rhs) const

◆ operator==() [1/2]

bool RPCDCCLink::operator== ( RPCDCCLink const &  rhs) const

◆ operator==() [2/2]

bool RPCDCCLink::operator== ( std::uint32_t const &  rhs) const

◆ reset()

void RPCDCCLink::reset ( )

◆ serialize()

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

◆ setDCCInput()

RPCDCCLink& RPCDCCLink::setDCCInput ( int  dccinput = wildcard_)

Referenced by RPCDCCLink().

◆ setFED()

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

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

Referenced by RPCDCCLink().

◆ setId()

void RPCDCCLink::setId ( std::uint32_t const &  id)

◆ setTBInput()

RPCDCCLink& RPCDCCLink::setTBInput ( int  tbinput = wildcard_)

Referenced by RPCDCCLink().

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 89 of file RPCDCCLink.h.

◆ cond::serialization::access

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

Definition at line 89 of file RPCDCCLink.h.

Member Data Documentation

◆ id_

std::uint32_t RPCDCCLink::id_
protected

Definition at line 87 of file RPCDCCLink.h.

Referenced by getMask().

◆ mask_dccinput_

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

Definition at line 32 of file RPCDCCLink.h.

Referenced by getMask(), and getName().

◆ mask_fed_

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

Definition at line 30 of file RPCDCCLink.h.

Referenced by getMask(), and getName().

◆ mask_tbinput_

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

Definition at line 34 of file RPCDCCLink.h.

Referenced by getMask(), and getName().

◆ max_dccinput_

int const RPCDCCLink::max_dccinput_ = 36
static

Definition at line 21 of file RPCDCCLink.h.

◆ max_fed_

int const RPCDCCLink::max_fed_ = 65534
static

Definition at line 19 of file RPCDCCLink.h.

◆ max_tbinput_

int const RPCDCCLink::max_tbinput_ = 18
static

Definition at line 23 of file RPCDCCLink.h.

◆ min_dccinput_

int const RPCDCCLink::min_dccinput_ = 0
static

Definition at line 20 of file RPCDCCLink.h.

Referenced by getName().

◆ min_fed_

int const RPCDCCLink::min_fed_ = 0
static

field ranges

Definition at line 18 of file RPCDCCLink.h.

Referenced by getName().

◆ min_tbinput_

int const RPCDCCLink::min_tbinput_ = 0
static

Definition at line 22 of file RPCDCCLink.h.

Referenced by getName().

◆ pos_dccinput_

int const RPCDCCLink::pos_dccinput_ = 8
staticprotected

Definition at line 31 of file RPCDCCLink.h.

Referenced by getName().

◆ pos_fed_

int const RPCDCCLink::pos_fed_ = 16
staticprotected

field positions and masks

Definition at line 29 of file RPCDCCLink.h.

Referenced by getName().

◆ pos_tbinput_

int const RPCDCCLink::pos_tbinput_ = 0
staticprotected

Definition at line 33 of file RPCDCCLink.h.

Referenced by getName().

◆ wildcard_

int const RPCDCCLink::wildcard_ = INT_MIN
static

Definition at line 14 of file RPCDCCLink.h.