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) {}

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.

16 { data_ |= (value << distrip); }

References data_.

Referenced by CSCComparatorData::add().

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

CSCComparatorDataWord::tbin_
unsigned short tbin_
Definition: CSCComparatorData.h:18
value
Definition: value.py:1
CSCComparatorDataWord::cfeb_
unsigned short cfeb_
Definition: CSCComparatorData.h:19
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
CSCComparatorDataWord::data_
unsigned short data_
Definition: CSCComparatorData.h:17