#include <CSCALCTHeader2006.h>
Public Member Functions | |
void | add (const std::vector< CSCALCTDigi > &digis) |
should try to sort, but doesn't for now | |
void | addALCT0 (const CSCALCTDigi &digi) |
void | addALCT1 (const CSCALCTDigi &digi) |
std::vector< CSCALCTDigi > | ALCTDigis () 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 | |
unsigned | flag_4: 1 |
DDU+LCT special word flags. | |
unsigned | flag_5: 1 |
DDU+LCT special word flags. | |
unsigned | flag_6: 1 |
unsigned | flag_7: 1 |
Definition at line 76 of file CSCALCTHeader2006.h.
CSCALCTs2006::CSCALCTs2006 | ( | ) | [inline] |
void CSCALCTs2006::add | ( | const std::vector< CSCALCTDigi > & | digis | ) |
should try to sort, but doesn't for now
Definition at line 61 of file CSCALCTHeader2006.cc.
References addALCT0(), and addALCT1().
Referenced by CSCALCTHeader::add().
void CSCALCTs2006::addALCT0 | ( | const CSCALCTDigi & | digi | ) |
Definition at line 68 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().
{ alct0_valid = digi.isValid(); alct0_quality = digi.getQuality(); alct0_accel = digi.getAccelerator(); alct0_pattern = digi.getCollisionB(); alct0_key_wire = digi.getKeyWG(); // probably not right alct0_bxn_low = digi.getBX(); }
void CSCALCTs2006::addALCT1 | ( | const CSCALCTDigi & | digi | ) |
Definition at line 80 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().
{ alct1_valid = digi.isValid(); alct1_quality = digi.getQuality(); alct1_accel = digi.getAccelerator(); alct1_pattern = digi.getCollisionB(); alct1_key_wire = digi.getKeyWG(); // probably not right alct1_bxn_low = digi.getBX(); }
std::vector< CSCALCTDigi > CSCALCTs2006::ALCTDigis | ( | ) | const |
Definition at line 45 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 query::result.
Referenced by CSCALCTHeader::ALCTDigis().
{ std::vector<CSCALCTDigi> result; result.reserve(2); CSCALCTDigi digi0(alct0_valid, alct0_quality, alct0_accel, alct0_pattern, alct0_key_wire, alct0_bxn_low|(alct0_bxn_high<<3),1); CSCALCTDigi digi1(alct1_valid, alct1_quality, alct1_accel, alct1_pattern, alct1_key_wire, alct1_bxn_low|(alct1_bxn_high<<3),2); result.push_back(digi0); result.push_back(digi1); return result; }
short unsigned int CSCALCTs2006::sizeInWords | ( | ) | const [inline] |
size of ALCT
Definition at line 81 of file CSCALCTHeader2006.h.
Referenced by CSCALCTHeader::CSCALCTHeader(), and CSCALCTHeader::pack().
{
return 4;
}
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 |
1st LCT lower 15 bits https://www.phys.ufl.edu/cms/emu/dqm/data_formats/ALCT_data_format_notes.pdf
Definition at line 94 of file CSCALCTHeader2006.h.
Referenced by addALCT0(), and ALCTDigis().
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.