CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
CSCCLCTDataWord Struct Reference

#include <CSCCLCTData.h>

Public Member Functions

 CSCCLCTDataWord (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 CSCCLCTData.h.

Constructor & Destructor Documentation

◆ CSCCLCTDataWord()

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

Definition at line 13 of file CSCCLCTData.h.

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

Member Function Documentation

◆ set()

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

@ not right! doesn't set zero

Definition at line 16 of file CSCCLCTData.h.

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

References data_.

Referenced by CSCCLCTData::add().

◆ value()

bool CSCCLCTDataWord::value ( int  distrip)
inline

Member Data Documentation

◆ cfeb_

unsigned short CSCCLCTDataWord::cfeb_

Definition at line 19 of file CSCCLCTData.h.

◆ data_

unsigned short CSCCLCTDataWord::data_

Definition at line 17 of file CSCCLCTData.h.

Referenced by set(), and value().

◆ tbin_

unsigned short CSCCLCTDataWord::tbin_

Definition at line 18 of file CSCCLCTData.h.

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