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 ()
 
 CSCAnodeDataFrame2007 (unsigned short data)
 
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.

11 { data_ = data; }

References data(), and data_.

◆ 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.

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

References data_.

◆ data()

unsigned short CSCAnodeDataFrame2007::data ( ) const
inline

Definition at line 22 of file CSCAnodeData2007.h.

22 { return data_; }

References data_.

Referenced by CSCAnodeDataFrame2007().

◆ 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.

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

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

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.

cms::cuda::assert
assert(be >=bs)
testProducerWithPsetDescEmpty_cfi.x1
x1
Definition: testProducerWithPsetDescEmpty_cfi.py:33
CSCAnodeDataFrame2007::data_
unsigned short data_
Definition: CSCAnodeData2007.h:25
CSCAnodeDataFrame2007::data
unsigned short data() const
Definition: CSCAnodeData2007.h:22