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

Member Function Documentation

◆ setFromBuffer()

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

Definition at line 21 of file CSCALCTHeader2007.h.

21 { memcpy(this, buf, sizeInWords() * 2); }

References visDQMUpload::buf, and sizeInWords().

◆ sizeInWords()

static short unsigned int CSCALCT::sizeInWords ( )
inlinestatic

Definition at line 23 of file CSCALCTHeader2007.h.

23 { return 1; }

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

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.

CSCALCT::valid
unsigned valid
Definition: CSCALCTHeader2007.h:25
CSCALCTDigi::getKeyWG
uint16_t getKeyWG() const
return key wire group
Definition: CSCALCTDigi.h:67
CSCALCT::keyWire
unsigned keyWire
Definition: CSCALCTHeader2007.h:29
CSCALCTDigi::getCollisionB
uint16_t getCollisionB() const
Definition: CSCALCTDigi.h:61
CSCALCTDigi::getQuality
uint16_t getQuality() const
return quality of a pattern
Definition: CSCALCTDigi.h:46
CSCALCT::quality
unsigned quality
Definition: CSCALCTHeader2007.h:26
visDQMUpload.buf
buf
Definition: visDQMUpload.py:160
CSCALCTDigi::getAccelerator
uint16_t getAccelerator() const
Definition: CSCALCTDigi.h:53
CSCALCT::reserved
unsigned reserved
Definition: CSCALCTHeader2007.h:30
CSCALCTDigi::isValid
bool isValid() const
check ALCT validity (1 - valid ALCT)
Definition: CSCALCTDigi.h:40
CSCALCT::sizeInWords
static short unsigned int sizeInWords()
Definition: CSCALCTHeader2007.h:23
CSCALCT::accel
unsigned accel
Definition: CSCALCTHeader2007.h:27
CSCALCT::pattern
unsigned pattern
Definition: CSCALCTHeader2007.h:28