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::CSCALCT ( )

size of ALCT = 2bytes

Definition at line 4 of file CSCALCTHeader2007.cc.

4  {
5  bzero(this, 2);
6 }
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:32
unsigned valid
unsigned pattern
unsigned reserved
unsigned accel
int getQuality() const
return quality of a pattern
Definition: CSCALCTDigi.h:38
int getAccelerator() const
Definition: CSCALCTDigi.h:45
unsigned quality
unsigned keyWire
int getKeyWG() const
return key wire group
Definition: CSCALCTDigi.h:59
int getCollisionB() const
Definition: CSCALCTDigi.h:53

Member Function Documentation

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

Definition at line 21 of file CSCALCTHeader2007.h.

References sizeInWords().

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

Member Data Documentation

unsigned CSCALCT::accel

Definition at line 27 of file CSCALCTHeader2007.h.

unsigned CSCALCT::keyWire

Definition at line 29 of file CSCALCTHeader2007.h.

unsigned CSCALCT::pattern

Definition at line 28 of file CSCALCTHeader2007.h.

Referenced by dataset.BaseDataset::printFiles().

unsigned CSCALCT::quality

Definition at line 26 of file CSCALCTHeader2007.h.

unsigned CSCALCT::reserved

Definition at line 30 of file CSCALCTHeader2007.h.

unsigned CSCALCT::valid

Definition at line 25 of file CSCALCTHeader2007.h.