CMS 3D CMS Logo

Public Member Functions | Public Attributes

CSCCLCTDataWord Struct Reference

#include <CSCCLCTData.h>

List of all members.

Public Member Functions

 CSCCLCTDataWord (unsigned cfeb, unsigned tbin, unsigned data)
void set (int distrip, bool value)
 @ not right! doesn't set zero
bool value (int distrip)

Public Attributes

unsigned short cfeb_: 4
unsigned short data_: 8
unsigned short tbin_: 4

Detailed Description

Definition at line 7 of file CSCCLCTData.h.


Constructor & Destructor Documentation

CSCCLCTDataWord::CSCCLCTDataWord ( unsigned  cfeb,
unsigned  tbin,
unsigned  data 
) [inline]

Definition at line 8 of file CSCCLCTData.h.

  : data_(data), tbin_(tbin), cfeb_(cfeb) {}

Member Function Documentation

void CSCCLCTDataWord::set ( int  distrip,
bool  value 
) [inline]

@ not right! doesn't set zero

Definition at line 12 of file CSCCLCTData.h.

References data_, and value().

Referenced by CSCCLCTData::add().

{data_ |= (value << distrip);}
bool CSCCLCTDataWord::value ( int  distrip) [inline]

Definition at line 10 of file CSCCLCTData.h.

References data_.

Referenced by CSCCLCTData::bitValue(), and set().

{return (data_ >> distrip) & 0x1;}

Member Data Documentation

unsigned short CSCCLCTDataWord::cfeb_

Definition at line 15 of file CSCCLCTData.h.

Referenced by CSCCLCTData::check(), and CSCCLCTData::comparatorDigis().

unsigned short CSCCLCTDataWord::data_

Definition at line 13 of file CSCCLCTData.h.

Referenced by set(), and value().

unsigned short CSCCLCTDataWord::tbin_

Definition at line 14 of file CSCCLCTData.h.

Referenced by CSCCLCTData::check(), and CSCCLCTData::comparatorDigis().