CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
CSCComparatorDataWord Struct Reference

#include <CSCComparatorData.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 12 of file CSCComparatorData.h.

Constructor & Destructor Documentation

CSCComparatorDataWord::CSCComparatorDataWord ( unsigned  cfeb,
unsigned  tbin,
unsigned  data 
)
inline

Definition at line 13 of file CSCComparatorData.h.

13 : data_(data), tbin_(tbin), cfeb_(cfeb) {}
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

Member Function Documentation

void CSCComparatorDataWord::set ( int  distrip,
bool  value 
)
inline

@ not right! doesn't set zero

Definition at line 16 of file CSCComparatorData.h.

References data_.

Referenced by CSCComparatorData::add().

16 { data_ |= (value << distrip); }
bool value(int distrip)
bool CSCComparatorDataWord::value ( int  distrip)
inline

Member Data Documentation

unsigned short CSCComparatorDataWord::cfeb_
unsigned short CSCComparatorDataWord::data_

Definition at line 17 of file CSCComparatorData.h.

Referenced by set(), and value().

unsigned short CSCComparatorDataWord::tbin_