CMS 3D CMS Logo

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

#include <CSCALCTHeader2006.h>

Public Member Functions

void add (const std::vector< CSCALCTDigi > &digis)
 should try to sort, but doesn't for now More...
 
void addALCT0 (const CSCALCTDigi &digi)
 
void addALCT1 (const CSCALCTDigi &digi)
 
std::vector< CSCALCTDigiALCTDigis () const
 
 CSCALCTs2006 ()
 
void setFromBuffer (unsigned short const *buf)
 
short unsigned int sizeInWords () const
 

Public Attributes

unsigned alct0_accel: 1
 
unsigned alct0_bxn_high: 2
 
unsigned alct0_bxn_low: 3
 
unsigned alct0_key_wire: 7
 
unsigned alct0_pattern: 1
 
unsigned alct0_quality: 2
 
unsigned alct0_reserved: 13
 
unsigned alct0_valid: 1
 
unsigned alct1_accel: 1
 
unsigned alct1_bxn_high: 2
 
unsigned alct1_bxn_low: 3
 
unsigned alct1_key_wire: 7
 
unsigned alct1_pattern: 1
 
unsigned alct1_quality: 2
 
unsigned alct1_reserved: 13
 
unsigned alct1_valid: 1
 2nd LCT lower 15 bits More...
 
unsigned flag_4: 1
 DDU+LCT special word flags. More...
 
unsigned flag_5: 1
 DDU+LCT special word flags. More...
 
unsigned flag_6: 1
 
unsigned flag_7: 1
 

Detailed Description

Definition at line 75 of file CSCALCTHeader2006.h.

Constructor & Destructor Documentation

◆ CSCALCTs2006()

CSCALCTs2006::CSCALCTs2006 ( )
inline

size of ALCT = 2bytes

Definition at line 76 of file CSCALCTHeader2006.h.

76  {
77  bzero(this, 8);
78  }

Member Function Documentation

◆ add()

void CSCALCTs2006::add ( const std::vector< CSCALCTDigi > &  digis)

should try to sort, but doesn't for now

Definition at line 57 of file CSCALCTHeader2006.cc.

57  {
58  //FIXME doesn't do any sorting
59  if (!digis.empty())
60  addALCT0(digis[0]);
61  if (digis.size() > 1)
62  addALCT1(digis[1]);
63 }

References addALCT0(), and addALCT1().

Referenced by CSCALCTHeader::add(), counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().

◆ addALCT0()

void CSCALCTs2006::addALCT0 ( const CSCALCTDigi digi)

◆ addALCT1()

void CSCALCTs2006::addALCT1 ( const CSCALCTDigi digi)

◆ ALCTDigis()

std::vector< CSCALCTDigi > CSCALCTs2006::ALCTDigis ( ) const

◆ setFromBuffer()

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

Definition at line 80 of file CSCALCTHeader2006.h.

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

References visDQMUpload::buf, and sizeInWords().

Referenced by CSCALCTHeader::CSCALCTHeader().

◆ sizeInWords()

short unsigned int CSCALCTs2006::sizeInWords ( ) const
inline

size of ALCT

Definition at line 82 of file CSCALCTHeader2006.h.

82  {
83  return 4;
84  }

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

Member Data Documentation

◆ alct0_accel

unsigned CSCALCTs2006::alct0_accel

Definition at line 97 of file CSCALCTHeader2006.h.

Referenced by addALCT0(), and ALCTDigis().

◆ alct0_bxn_high

unsigned CSCALCTs2006::alct0_bxn_high

Definition at line 104 of file CSCALCTHeader2006.h.

Referenced by ALCTDigis().

◆ alct0_bxn_low

unsigned CSCALCTs2006::alct0_bxn_low

Definition at line 100 of file CSCALCTHeader2006.h.

Referenced by addALCT0(), and ALCTDigis().

◆ alct0_key_wire

unsigned CSCALCTs2006::alct0_key_wire

Definition at line 99 of file CSCALCTHeader2006.h.

Referenced by addALCT0(), and ALCTDigis().

◆ alct0_pattern

unsigned CSCALCTs2006::alct0_pattern

Definition at line 98 of file CSCALCTHeader2006.h.

Referenced by addALCT0(), and ALCTDigis().

◆ alct0_quality

unsigned CSCALCTs2006::alct0_quality

Definition at line 96 of file CSCALCTHeader2006.h.

Referenced by addALCT0(), and ALCTDigis().

◆ alct0_reserved

unsigned CSCALCTs2006::alct0_reserved

Definition at line 105 of file CSCALCTHeader2006.h.

◆ alct0_valid

unsigned CSCALCTs2006::alct0_valid

◆ alct1_accel

unsigned CSCALCTs2006::alct1_accel

Definition at line 112 of file CSCALCTHeader2006.h.

Referenced by addALCT1(), and ALCTDigis().

◆ alct1_bxn_high

unsigned CSCALCTs2006::alct1_bxn_high

Definition at line 118 of file CSCALCTHeader2006.h.

Referenced by ALCTDigis().

◆ alct1_bxn_low

unsigned CSCALCTs2006::alct1_bxn_low

Definition at line 115 of file CSCALCTHeader2006.h.

Referenced by addALCT1(), and ALCTDigis().

◆ alct1_key_wire

unsigned CSCALCTs2006::alct1_key_wire

Definition at line 114 of file CSCALCTHeader2006.h.

Referenced by addALCT1(), and ALCTDigis().

◆ alct1_pattern

unsigned CSCALCTs2006::alct1_pattern

Definition at line 113 of file CSCALCTHeader2006.h.

Referenced by addALCT1(), and ALCTDigis().

◆ alct1_quality

unsigned CSCALCTs2006::alct1_quality

Definition at line 111 of file CSCALCTHeader2006.h.

Referenced by addALCT1(), and ALCTDigis().

◆ alct1_reserved

unsigned CSCALCTs2006::alct1_reserved

Definition at line 119 of file CSCALCTHeader2006.h.

◆ alct1_valid

unsigned CSCALCTs2006::alct1_valid

2nd LCT lower 15 bits

Definition at line 110 of file CSCALCTHeader2006.h.

Referenced by addALCT1(), and ALCTDigis().

◆ flag_4

unsigned CSCALCTs2006::flag_4

DDU+LCT special word flags.

Definition at line 102 of file CSCALCTHeader2006.h.

◆ flag_5

unsigned CSCALCTs2006::flag_5

DDU+LCT special word flags.

Definition at line 107 of file CSCALCTHeader2006.h.

◆ flag_6

unsigned CSCALCTs2006::flag_6

Definition at line 116 of file CSCALCTHeader2006.h.

◆ flag_7

unsigned CSCALCTs2006::flag_7

Definition at line 120 of file CSCALCTHeader2006.h.

CSCALCTDigi::getBX
uint16_t getBX() const
return BX - five low bits of BXN counter tagged by the ALCT
Definition: CSCALCTDigi.h:73
CSCALCTs2006::sizeInWords
short unsigned int sizeInWords() const
Definition: CSCALCTHeader2006.h:82
CSCALCTs2006::alct0_valid
unsigned alct0_valid
Definition: CSCALCTHeader2006.h:95
CSCALCTs2006::alct1_pattern
unsigned alct1_pattern
Definition: CSCALCTHeader2006.h:113
CSCALCTs2006::alct0_key_wire
unsigned alct0_key_wire
Definition: CSCALCTHeader2006.h:99
CSCALCTs2006::alct0_pattern
unsigned alct0_pattern
Definition: CSCALCTHeader2006.h:98
CSCALCTs2006::alct0_quality
unsigned alct0_quality
Definition: CSCALCTHeader2006.h:96
CSCALCTDigi::getKeyWG
uint16_t getKeyWG() const
return key wire group
Definition: CSCALCTDigi.h:67
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
CSCALCTs2006::alct0_bxn_low
unsigned alct0_bxn_low
Definition: CSCALCTHeader2006.h:100
CSCALCTs2006::alct1_accel
unsigned alct1_accel
Definition: CSCALCTHeader2006.h:112
CSCALCTs2006::alct1_valid
unsigned alct1_valid
2nd LCT lower 15 bits
Definition: CSCALCTHeader2006.h:110
CSCALCTs2006::alct1_quality
unsigned alct1_quality
Definition: CSCALCTHeader2006.h:111
CSCALCTs2006::alct1_key_wire
unsigned alct1_key_wire
Definition: CSCALCTHeader2006.h:114
CSCALCTs2006::addALCT0
void addALCT0(const CSCALCTDigi &digi)
Definition: CSCALCTHeader2006.cc:65
visDQMUpload.buf
buf
Definition: visDQMUpload.py:154
CSCALCTs2006::alct1_bxn_low
unsigned alct1_bxn_low
Definition: CSCALCTHeader2006.h:115
CSCALCTs2006::alct1_bxn_high
unsigned alct1_bxn_high
Definition: CSCALCTHeader2006.h:118
CSCALCTDigi::getAccelerator
uint16_t getAccelerator() const
Definition: CSCALCTDigi.h:53
CSCALCTDigi
Definition: CSCALCTDigi.h:17
CSCALCTs2006::alct0_accel
unsigned alct0_accel
Definition: CSCALCTHeader2006.h:97
CSCALCTDigi::isValid
bool isValid() const
check ALCT validity (1 - valid ALCT)
Definition: CSCALCTDigi.h:40
mps_fire.result
result
Definition: mps_fire.py:311
CSCALCTs2006::alct0_bxn_high
unsigned alct0_bxn_high
Definition: CSCALCTHeader2006.h:104
CSCALCTs2006::addALCT1
void addALCT1(const CSCALCTDigi &digi)
Definition: CSCALCTHeader2006.cc:75