CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ()
 
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 76 of file CSCALCTHeader2006.h.

Constructor & Destructor Documentation

CSCALCTs2006::CSCALCTs2006 ( )
inline

size of ALCT = 2bytes

Definition at line 77 of file CSCALCTHeader2006.h.

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

Member Function Documentation

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

should try to sort, but doesn't for now

Definition at line 67 of file CSCALCTHeader2006.cc.

References addALCT0(), and addALCT1().

Referenced by counter.Counter::register().

68 {
69  //FIXME doesn't do any sorting
70  if(digis.size() > 0) addALCT0(digis[0]);
71  if(digis.size() > 1) addALCT1(digis[1]);
72 }
void addALCT0(const CSCALCTDigi &digi)
void addALCT1(const CSCALCTDigi &digi)
void CSCALCTs2006::addALCT0 ( const CSCALCTDigi digi)

Definition at line 74 of file CSCALCTHeader2006.cc.

References alct0_accel, alct0_bxn_low, alct0_key_wire, alct0_pattern, alct0_quality, alct0_valid, CSCALCTDigi::getAccelerator(), CSCALCTDigi::getBX(), CSCALCTDigi::getCollisionB(), CSCALCTDigi::getKeyWG(), CSCALCTDigi::getQuality(), and CSCALCTDigi::isValid().

Referenced by add().

75 {
76  alct0_valid = digi.isValid();
77  alct0_quality = digi.getQuality();
78  alct0_accel = digi.getAccelerator();
80  alct0_key_wire = digi.getKeyWG();
81  // probably not right
82  alct0_bxn_low = digi.getBX();
83 }
unsigned alct0_pattern
unsigned alct0_valid
bool isValid() const
check ALCT validity (1 - valid ALCT)
Definition: CSCALCTDigi.h:30
int getBX() const
return BX - five low bits of BXN counter tagged by the ALCT
Definition: CSCALCTDigi.h:48
unsigned alct0_key_wire
int getQuality() const
return quality of a pattern
Definition: CSCALCTDigi.h:33
int getAccelerator() const
Definition: CSCALCTDigi.h:37
unsigned alct0_quality
unsigned alct0_accel
unsigned alct0_bxn_low
int getKeyWG() const
return key wire group
Definition: CSCALCTDigi.h:45
int getCollisionB() const
Definition: CSCALCTDigi.h:42
void CSCALCTs2006::addALCT1 ( const CSCALCTDigi digi)

Definition at line 86 of file CSCALCTHeader2006.cc.

References alct1_accel, alct1_bxn_low, alct1_key_wire, alct1_pattern, alct1_quality, alct1_valid, CSCALCTDigi::getAccelerator(), CSCALCTDigi::getBX(), CSCALCTDigi::getCollisionB(), CSCALCTDigi::getKeyWG(), CSCALCTDigi::getQuality(), and CSCALCTDigi::isValid().

Referenced by add().

87 {
88  alct1_valid = digi.isValid();
89  alct1_quality = digi.getQuality();
90  alct1_accel = digi.getAccelerator();
92  alct1_key_wire = digi.getKeyWG();
93  // probably not right
94  alct1_bxn_low = digi.getBX();
95 }
unsigned alct1_pattern
bool isValid() const
check ALCT validity (1 - valid ALCT)
Definition: CSCALCTDigi.h:30
unsigned alct1_key_wire
unsigned alct1_accel
unsigned alct1_valid
2nd LCT lower 15 bits
int getBX() const
return BX - five low bits of BXN counter tagged by the ALCT
Definition: CSCALCTDigi.h:48
int getQuality() const
return quality of a pattern
Definition: CSCALCTDigi.h:33
int getAccelerator() const
Definition: CSCALCTDigi.h:37
unsigned alct1_quality
unsigned alct1_bxn_low
int getKeyWG() const
return key wire group
Definition: CSCALCTDigi.h:45
int getCollisionB() const
Definition: CSCALCTDigi.h:42
std::vector< CSCALCTDigi > CSCALCTs2006::ALCTDigis ( ) const

Definition at line 51 of file CSCALCTHeader2006.cc.

References alct0_accel, alct0_bxn_high, alct0_bxn_low, alct0_key_wire, alct0_pattern, alct0_quality, alct0_valid, alct1_accel, alct1_bxn_high, alct1_bxn_low, alct1_key_wire, alct1_pattern, alct1_quality, alct1_valid, and mps_fire::result.

52 {
53  std::vector<CSCALCTDigi> result;
54  result.reserve(2);
55 
62  result.push_back(digi0); result.push_back(digi1);
63  return result;
64 }
unsigned alct0_pattern
unsigned alct0_valid
unsigned alct1_pattern
unsigned alct1_key_wire
unsigned alct1_bxn_high
tuple result
Definition: mps_fire.py:84
unsigned alct1_accel
unsigned alct1_valid
2nd LCT lower 15 bits
unsigned alct0_key_wire
unsigned alct0_bxn_high
unsigned alct0_quality
unsigned alct1_quality
unsigned alct0_accel
unsigned alct1_bxn_low
unsigned alct0_bxn_low
short unsigned int CSCALCTs2006::sizeInWords ( ) const
inline

size of ALCT

Definition at line 81 of file CSCALCTHeader2006.h.

81  {
82  return 4;
83  }

Member Data Documentation

unsigned CSCALCTs2006::alct0_accel

Definition at line 96 of file CSCALCTHeader2006.h.

Referenced by addALCT0(), and ALCTDigis().

unsigned CSCALCTs2006::alct0_bxn_high

Definition at line 103 of file CSCALCTHeader2006.h.

Referenced by ALCTDigis().

unsigned CSCALCTs2006::alct0_bxn_low

Definition at line 99 of file CSCALCTHeader2006.h.

Referenced by addALCT0(), and ALCTDigis().

unsigned CSCALCTs2006::alct0_key_wire

Definition at line 98 of file CSCALCTHeader2006.h.

Referenced by addALCT0(), and ALCTDigis().

unsigned CSCALCTs2006::alct0_pattern

Definition at line 97 of file CSCALCTHeader2006.h.

Referenced by addALCT0(), and ALCTDigis().

unsigned CSCALCTs2006::alct0_quality

Definition at line 95 of file CSCALCTHeader2006.h.

Referenced by addALCT0(), and ALCTDigis().

unsigned CSCALCTs2006::alct0_reserved

Definition at line 104 of file CSCALCTHeader2006.h.

unsigned CSCALCTs2006::alct0_valid
unsigned CSCALCTs2006::alct1_accel

Definition at line 111 of file CSCALCTHeader2006.h.

Referenced by addALCT1(), and ALCTDigis().

unsigned CSCALCTs2006::alct1_bxn_high

Definition at line 117 of file CSCALCTHeader2006.h.

Referenced by ALCTDigis().

unsigned CSCALCTs2006::alct1_bxn_low

Definition at line 114 of file CSCALCTHeader2006.h.

Referenced by addALCT1(), and ALCTDigis().

unsigned CSCALCTs2006::alct1_key_wire

Definition at line 113 of file CSCALCTHeader2006.h.

Referenced by addALCT1(), and ALCTDigis().

unsigned CSCALCTs2006::alct1_pattern

Definition at line 112 of file CSCALCTHeader2006.h.

Referenced by addALCT1(), and ALCTDigis().

unsigned CSCALCTs2006::alct1_quality

Definition at line 110 of file CSCALCTHeader2006.h.

Referenced by addALCT1(), and ALCTDigis().

unsigned CSCALCTs2006::alct1_reserved

Definition at line 118 of file CSCALCTHeader2006.h.

unsigned CSCALCTs2006::alct1_valid

2nd LCT lower 15 bits

Definition at line 109 of file CSCALCTHeader2006.h.

Referenced by addALCT1(), and ALCTDigis().

unsigned CSCALCTs2006::flag_4

DDU+LCT special word flags.

Definition at line 101 of file CSCALCTHeader2006.h.

unsigned CSCALCTs2006::flag_5

DDU+LCT special word flags.

Definition at line 106 of file CSCALCTHeader2006.h.

unsigned CSCALCTs2006::flag_6

Definition at line 115 of file CSCALCTHeader2006.h.

unsigned CSCALCTs2006::flag_7

Definition at line 119 of file CSCALCTHeader2006.h.