CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CSCAnodeDataFrame2007 Class Reference

#include <CSCAnodeData2007.h>

Public Member Functions

void addHit (unsigned wireGroup)
 
 CSCAnodeDataFrame2007 (unsigned short data)
 
 CSCAnodeDataFrame2007 ()
 
unsigned short data () const
 
bool isHit (unsigned wireGroup) const
 given a wiregroup between 0 and 11, it tells whether this bit was on More...
 

Private Attributes

unsigned short data_: 12
 
unsigned short flag_: 1
 
unsigned short reserved_: 3
 

Detailed Description

Definition at line 9 of file CSCAnodeData2007.h.

Constructor & Destructor Documentation

◆ CSCAnodeDataFrame2007() [1/2]

CSCAnodeDataFrame2007::CSCAnodeDataFrame2007 ( unsigned short  data)
inlineexplicit

Definition at line 11 of file CSCAnodeData2007.h.

References data(), and data_.

11 { data_ = data; }
unsigned short data() const

◆ CSCAnodeDataFrame2007() [2/2]

CSCAnodeDataFrame2007::CSCAnodeDataFrame2007 ( )
inline

Definition at line 12 of file CSCAnodeData2007.h.

12 {}

Member Function Documentation

◆ addHit()

void CSCAnodeDataFrame2007::addHit ( unsigned  wireGroup)
inline

Definition at line 20 of file CSCAnodeData2007.h.

References data_.

20 { data_ |= (1 << wireGroup); }

◆ data()

unsigned short CSCAnodeDataFrame2007::data ( ) const
inline

Definition at line 22 of file CSCAnodeData2007.h.

References data_.

Referenced by CSCAnodeDataFrame2007().

22 { return data_; }

◆ isHit()

bool CSCAnodeDataFrame2007::isHit ( unsigned  wireGroup) const
inline

given a wiregroup between 0 and 11, it tells whether this bit was on

Definition at line 15 of file CSCAnodeData2007.h.

References cms::cuda::assert(), data_, and testProducerWithPsetDescEmpty_cfi::x1.

15  {
16  assert(wireGroup < 12);
17  return ((data_ >> wireGroup) & 0x1);
18  }
assert(be >=bs)

Member Data Documentation

◆ data_

unsigned short CSCAnodeDataFrame2007::data_
private

Definition at line 25 of file CSCAnodeData2007.h.

Referenced by addHit(), CSCAnodeDataFrame2007(), data(), and isHit().

◆ flag_

unsigned short CSCAnodeDataFrame2007::flag_
private

Definition at line 27 of file CSCAnodeData2007.h.

◆ reserved_

unsigned short CSCAnodeDataFrame2007::reserved_
private

Definition at line 26 of file CSCAnodeData2007.h.