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::RPCDCCLink ( )

Definition at line 6 of file RPCDCCLink.cc.

7  : id_(0x0)
8 {}
RPCDCCLink::RPCDCCLink ( std::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,
std::uint32_t const  mask,
int const  pos 
) const
protected
RPCDCCLink& RPCDCCLink::bf_set ( int const  min,
int const  max,
std::uint32_t const  mask,
int const  pos,
int const  value 
)
protected
std::ostream& RPCDCCLink::bf_stream ( std::ostream &  ostream,
int const  min,
std::uint32_t const  mask,
int const  pos 
) const
protected

Referenced by getName().

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

Field Getters

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

Definition at line 24 of file RPCDCCLink.cc.

References id_, RecoTauDiscriminantConfiguration::mask, mask_dccinput_, mask_fed_, and mask_tbinput_.

25 {
26  std::uint32_t mask(0x0);
27  if (id_ & mask_fed_)
28  mask |= mask_fed_;
29  if (id_ & mask_dccinput_)
31  if (id_ & 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
RPCDCCLink::operator std::uint32_t ( ) const
bool RPCDCCLink::operator!= ( RPCDCCLink const &  rhs) const
bool RPCDCCLink::operator!= ( std::uint32_t const &  rhs) const
RPCDCCLink& RPCDCCLink::operator++ ( )
RPCDCCLink RPCDCCLink::operator++ ( int  )
RPCDCCLink& RPCDCCLink::operator-- ( )
RPCDCCLink RPCDCCLink::operator-- ( int  )
bool RPCDCCLink::operator< ( RPCDCCLink const &  rhs) const
bool RPCDCCLink::operator< ( std::uint32_t const &  rhs) const
bool RPCDCCLink::operator== ( RPCDCCLink const &  rhs) const
bool RPCDCCLink::operator== ( std::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 ( std::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

std::uint32_t RPCDCCLink::id_
protected

Definition at line 90 of file RPCDCCLink.h.

Referenced by getMask().

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

Definition at line 33 of file RPCDCCLink.h.

Referenced by getMask(), and getName().

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

Definition at line 31 of file RPCDCCLink.h.

Referenced by getMask(), and getName().

std::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.