CMS 3D CMS Logo

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::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:80

Member Function Documentation

◆ set()

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); }
Definition: value.py:1

◆ value()

bool CSCComparatorDataWord::value ( int  distrip)
inline

Member Data Documentation

◆ cfeb_

unsigned short CSCComparatorDataWord::cfeb_

Definition at line 19 of file CSCComparatorData.h.

◆ data_

unsigned short CSCComparatorDataWord::data_

Definition at line 17 of file CSCComparatorData.h.

Referenced by set(), and value().

◆ tbin_

unsigned short CSCComparatorDataWord::tbin_

Definition at line 18 of file CSCComparatorData.h.