CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Public Attributes
CSCALCT Struct Reference

#include <CSCALCTHeader2007.h>

Public Member Functions

 CSCALCT ()
 
 CSCALCT (const CSCALCTDigi &alctDigi)
 
void setFromBuffer (unsigned short const *buf)
 

Static Public Member Functions

static short unsigned int sizeInWords ()
 

Public Attributes

unsigned accel: 1
 
unsigned keyWire: 7
 
unsigned pattern: 1
 
unsigned quality: 2
 
unsigned reserved: 4
 
unsigned valid: 1
 

Detailed Description

Definition at line 17 of file CSCALCTHeader2007.h.

Constructor & Destructor Documentation

◆ CSCALCT() [1/2]

CSCALCT::CSCALCT ( )

size of ALCT = 2bytes

Definition at line 4 of file CSCALCTHeader2007.cc.

4  {
5  bzero(this, 2);
6 }

◆ CSCALCT() [2/2]

CSCALCT::CSCALCT ( const CSCALCTDigi alctDigi)

Definition at line 8 of file CSCALCTHeader2007.cc.

9  : valid(alctDigi.isValid()),
10  quality(alctDigi.getQuality()),
11  accel(alctDigi.getAccelerator()),
12  pattern(alctDigi.getCollisionB()),
13  keyWire(alctDigi.getKeyWG()),
14  reserved(0) {}
bool isValid() const
check ALCT validity (1 - valid ALCT)
Definition: CSCALCTDigi.h:40
uint16_t getQuality() const
return quality of a pattern
Definition: CSCALCTDigi.h:46
uint16_t getKeyWG() const
return key wire group
Definition: CSCALCTDigi.h:67
uint16_t getCollisionB() const
Definition: CSCALCTDigi.h:61
unsigned valid
unsigned pattern
unsigned reserved
unsigned accel
unsigned quality
uint16_t getAccelerator() const
Definition: CSCALCTDigi.h:53
unsigned keyWire

Member Function Documentation

◆ setFromBuffer()

void CSCALCT::setFromBuffer ( unsigned short const *  buf)
inline

Definition at line 21 of file CSCALCTHeader2007.h.

References visDQMUpload::buf, and sizeInWords().

21 { memcpy(this, buf, sizeInWords() * 2); }
static short unsigned int sizeInWords()

◆ sizeInWords()

static short unsigned int CSCALCT::sizeInWords ( )
inlinestatic

Definition at line 23 of file CSCALCTHeader2007.h.

Referenced by CSCALCTHeader::CSCALCTHeader(), and setFromBuffer().

23 { return 1; }

Member Data Documentation

◆ accel

unsigned CSCALCT::accel

Definition at line 27 of file CSCALCTHeader2007.h.

◆ keyWire

unsigned CSCALCT::keyWire

Definition at line 29 of file CSCALCTHeader2007.h.

◆ pattern

unsigned CSCALCT::pattern

Definition at line 28 of file CSCALCTHeader2007.h.

Referenced by dataset.BaseDataset::printFiles().

◆ quality

unsigned CSCALCT::quality

Definition at line 26 of file CSCALCTHeader2007.h.

◆ reserved

unsigned CSCALCT::reserved

Definition at line 30 of file CSCALCTHeader2007.h.

◆ valid

unsigned CSCALCT::valid

Definition at line 25 of file CSCALCTHeader2007.h.