#include <CSCALCTHeader.h>
Public Types | |
enum | FIFO_MODE { NO_DUMP, FULL_DUMP, LOCAL_DUMP } |
Public Member Functions | |
unsigned short int | ActiveFEBs () const |
void | add (const std::vector< CSCALCTDigi > &digis) |
std::vector< CSCALCTDigi > | ALCTDigis () const |
unsigned short int | alctFirmwareVersion () const |
CSCALCTHeader2006 | alctHeader2006 () const |
CSCALCTHeader2007 | alctHeader2007 () const |
unsigned short int | BoardID () const |
unsigned short int | BXNCount () const |
bool | check () const |
CSCALCTHeader (int chamberType) | |
CSCALCTHeader (const unsigned short *buf) | |
for packing More... | |
CSCALCTHeader (const CSCALCTStatusDigi &digi) | |
unsigned short int | CSCID () const |
unsigned short int * | data () |
unsigned short int | ExtTrig () const |
unsigned short int | FIFOMode () const |
unsigned short int | L1Acc () const |
unsigned short int | L1AMatch () const |
unsigned short int | LCTChipRead () const |
unsigned short int | nLCTChipRead () const |
for packing More... | |
unsigned short int | NTBins () const |
boost::dynamic_bitset | pack () |
unsigned short int | Promote1 () const |
unsigned short int | Promote2 () const |
void | setBXNCount (unsigned int bxn) |
void | setDAVForChannel (int wireGroup) |
void | setEventInformation (const CSCDMBHeader &) |
void | setL1Acc (unsigned int l1a) |
int | sizeInWords () |
in 16-bit words More... | |
Static Public Member Functions | |
static void | selfTest (int firmware) |
tests that we unpack what we packed More... | |
static void | setDebug (bool value) |
to access data by via status digis More... | |
Private Attributes | |
CSCALCTs2006 | alcts2006 |
unsigned short int | bxn0 |
unsigned short int | bxn1 |
std::vector< CSCCollisionMask > | collisionMasks |
CSCConfigurationRegister | configRegister |
CSCALCTHeader2006 | header2006 |
CSCALCTHeader2007 | header2007 |
std::vector< CSCHotChannelMask > | hotChannelMasks |
unsigned short int | sizeInWords2007_ |
size of the 2007 header in words More... | |
std::vector< CSCALCT > | theALCTs |
unsigned short int | theOriginalBuffer [116] |
CSCVirtexID | virtexID |
Static Private Attributes | |
static std::atomic< bool > | debug {false} |
static std::atomic< unsigned short int > | firmwareVersion {2007} |
documented in flags http://www.phys.ufl.edu/~madorsky/alctv/alct2000_spec.PDF
Definition at line 21 of file CSCALCTHeader.h.
some accessors here are only applicable to 2006 header some to both 2006 and 2007
Enumerator | |
---|---|
NO_DUMP | |
FULL_DUMP | |
LOCAL_DUMP |
Definition at line 40 of file CSCALCTHeader.h.
|
explicit |
Definition at line 22 of file CSCALCTHeader.cc.
References firmwareVersion, header2006, header2007, CSCALCTHeader2007::lctBins, CSCALCTHeader2006::sizeInWords(), CSCALCT::sizeInWords(), CSCALCTHeader2007::sizeInWords(), sizeInWords2007_, theALCTs, and theOriginalBuffer.
Referenced by CSCALCTHeader().
|
explicit |
for packing
collision and hot channel masks are variable sized the sizes vary depending on type of the ALCT board number of words for various alct board types: 1 2 3 5 6
first determine the correct format
Now fill data
the header part
the alct0 and alct1
the fixed sized header part
now come the variable parts
2007 has LCTbins * 2 alct words
also store raw data buffer too; it is later returned by data() method
Definition at line 37 of file CSCALCTHeader.cc.
References ALCTDigis(), alcts2006, CSCALCTHeader2007::boardType, collisionMasks, CSCALCTHeader2007::configPresent, configRegister, firmwareVersion, header2006, header2007, hotChannelMasks, mps_fire::i, CSCALCTHeader2007::lctBins, LogTrace, CSCALCTHeader2006::setFromBuffer(), CSCALCTHeader2007::setFromBuffer(), CSCALCTs2006::setFromBuffer(), CSCVirtexID::setFromBuffer(), CSCConfigurationRegister::setFromBuffer(), CSCALCTHeader2006::sizeInWords(), CSCALCTHeader2007::sizeInWords(), CSCALCTs2006::sizeInWords(), CSCVirtexID::sizeInWords(), CSCConfigurationRegister::sizeInWords(), sizeInWords(), sizeInWords2007_, theALCTs, theOriginalBuffer, and virtexID.
CSCALCTHeader::CSCALCTHeader | ( | const CSCALCTStatusDigi & | digi | ) |
Definition at line 117 of file CSCALCTHeader.cc.
References CSCALCTHeader(), and CSCALCTStatusDigi::header().
|
inline |
Definition at line 133 of file CSCALCTHeader.h.
References CSCALCTHeader2006::activeFEBs, and header2006.
void CSCALCTHeader::add | ( | const std::vector< CSCALCTDigi > & | digis | ) |
Definition at line 189 of file CSCALCTHeader.cc.
References CSCALCTs2006::add(), alcts2006, makePileupJSON::bx, firmwareVersion, header2007, mps_fire::i, CSCALCTHeader2007::lctBins, and theALCTs.
Referenced by CSCEventData::add(), check(), counter.Counter::register(), SequenceTypes.Task::remove(), SequenceTypes.Task::replace(), and selfTest().
std::vector< CSCALCTDigi > CSCALCTHeader::ALCTDigis | ( | ) | const |
loop over all alct words
Definition at line 152 of file CSCALCTHeader.cc.
References CSCALCTs2006::ALCTDigis(), alcts2006, BXNCount(), firmwareVersion, mps_fire::i, quality, mps_fire::result, and theALCTs.
Referenced by CSCALCTHeader(), cscdqm::EventProcessor::processCSC(), and CSCEventData::unpack_data().
|
inline |
Definition at line 137 of file CSCALCTHeader.h.
References firmwareVersion.
Referenced by CSCEventData::checkALCTClasses(), and cscdqm::EventProcessor::processCSC().
|
inline |
|
inline |
Definition at line 143 of file CSCALCTHeader.h.
References header2007.
Referenced by CSCAnodeData2007::init().
|
inline |
Definition at line 58 of file CSCALCTHeader.h.
References CSCALCTHeader2006::boardID, and header2006.
|
inline |
Definition at line 61 of file CSCALCTHeader.h.
References CSCALCTHeader2007::bxnCount, CSCALCTHeader2006::bxnCount, firmwareVersion, header2006, and header2007.
Referenced by ALCTDigis(), CSCAnodeData2006::CSCAnodeData2006(), CSCAnodeData2007::CSCAnodeData2007(), and cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 165 of file CSCALCTHeader.h.
References add(), firmwareVersion, CSCALCTHeader2007::flag1, CSCALCTHeader2006::flag_0, header2006, header2007, pack(), and selfTest().
Referenced by CSCAnodeData2006::CSCAnodeData2006(), and CSCEventData::unpack_data().
|
inline |
Definition at line 60 of file CSCALCTHeader.h.
References CSCALCTHeader2006::cscID, and header2006.
Referenced by operator<<().
|
inline |
Definition at line 146 of file CSCALCTHeader.h.
References theOriginalBuffer.
Referenced by CSCEventData::pack(), pack(), and CSCEventData::unpack_data().
|
inline |
Definition at line 59 of file CSCALCTHeader.h.
References CSCALCTHeader2006::extTrig, and header2006.
|
inline |
Definition at line 41 of file CSCALCTHeader.h.
References CSCALCTHeader2006::fifoMode, and header2006.
|
inline |
Definition at line 97 of file CSCALCTHeader.h.
References firmwareVersion, header2006, header2007, CSCALCTHeader2006::l1Acc, and CSCALCTHeader2007::l1aCounter.
Referenced by operator<<(), and cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 132 of file CSCALCTHeader.h.
References header2006, and CSCALCTHeader2006::l1aMatch.
|
inline |
Definition at line 136 of file CSCALCTHeader.h.
References header2006, and CSCALCTHeader2006::lctChipRead.
unsigned short CSCALCTHeader::nLCTChipRead | ( | ) | const |
for packing
header2006 method
Definition at line 140 of file CSCALCTHeader.cc.
References firmwareVersion, header2006, and CSCALCTHeader2006::nLCTChipRead().
|
inline |
Definition at line 42 of file CSCALCTHeader.h.
References firmwareVersion, header2006, header2007, CSCALCTHeader2006::nTBins, and CSCALCTHeader2007::rawBins.
Referenced by operator<<().
boost::dynamic_bitset CSCALCTHeader::pack | ( | ) |
Definition at line 221 of file CSCALCTHeader.cc.
References alcts2006, bitset_utilities::append(), bitset_utilities::bitsetToChar(), data(), firmwareVersion, header2006, header2007, mps_fire::i, mps_fire::result, CSCALCTHeader2006::sizeInWords(), CSCALCTHeader2007::sizeInWords(), CSCALCTs2006::sizeInWords(), sizeInWords(), theALCTs, and bitset_utilities::ushortToBitset().
Referenced by check(), and CSCEventData::pack().
|
inline |
Definition at line 134 of file CSCALCTHeader.h.
References header2006, and CSCALCTHeader2006::promote1.
|
inline |
Definition at line 135 of file CSCALCTHeader.h.
References header2006, and CSCALCTHeader2006::promote2.
|
static |
tests that we unpack what we packed
Definition at line 247 of file CSCALCTHeader.cc.
References add(), cms::cuda::assert(), firmwareVersion, CSCDetId::iChamberType(), and relativeConstraints::station.
Referenced by check().
|
inline |
Definition at line 78 of file CSCALCTHeader.h.
References CSCALCTHeader2007::bxnCount, CSCALCTHeader2006::bxnCount, firmwareVersion, header2006, and header2007.
Referenced by CSCEventData::add().
|
inline |
Definition at line 138 of file CSCALCTHeader.h.
References firmwareVersion, header2006, and CSCALCTHeader2006::setDAV().
Referenced by CSCEventData::add().
|
inlinestatic |
to access data by via status digis
turns on the debug flag for this class
Definition at line 30 of file CSCALCTHeader.h.
References debug, and relativeConstraints::value.
Referenced by CSCDCCUnpacker::CSCDCCUnpacker().
void CSCALCTHeader::setEventInformation | ( | const CSCDMBHeader & | dmb | ) |
Definition at line 119 of file CSCALCTHeader.cc.
References firmwareVersion, header2006, header2007, CSCALCTHeader2006::setEventInformation(), and CSCALCTHeader2007::setEventInformation().
Referenced by CSCEventData::checkALCTClasses(), and CSCEventData::setEventInformation().
|
inline |
Definition at line 114 of file CSCALCTHeader.h.
References firmwareVersion, header2006, header2007, CSCALCTHeader2006::l1Acc, and CSCALCTHeader2007::l1aCounter.
|
inline |
in 16-bit words
Definition at line 149 of file CSCALCTHeader.h.
References firmwareVersion, and sizeInWords2007_.
Referenced by CSCEventData::checkALCTClasses(), CSCALCTHeader(), CSCEventData::pack(), pack(), and CSCEventData::unpack_data().
|
private |
Definition at line 192 of file CSCALCTHeader.h.
Referenced by add(), ALCTDigis(), CSCALCTHeader(), and pack().
|
private |
Definition at line 211 of file CSCALCTHeader.h.
|
private |
Definition at line 211 of file CSCALCTHeader.h.
|
private |
Definition at line 195 of file CSCALCTHeader.h.
Referenced by CSCALCTHeader().
|
private |
Definition at line 194 of file CSCALCTHeader.h.
Referenced by CSCALCTHeader().
|
staticprivate |
Definition at line 206 of file CSCALCTHeader.h.
Referenced by util.rrapi.RRApi::dprint(), rrapi.RRApi::dprint(), pkg.AbstractPkg::generate(), rrapi.RRApi::get(), util.rrapi.RRApi::get(), pkg.AbstractPkg::get_kwds(), runTauIdMVA.TauIDEmbedder::loadMVA_WPs_run2_2017(), runTauIdMVA.TauIDEmbedder::runTauID(), setDebug(), and pkg.AbstractPkg::write().
|
staticprivate |
Definition at line 207 of file CSCALCTHeader.h.
Referenced by add(), ALCTDigis(), alctFirmwareVersion(), BXNCount(), check(), CSCALCTHeader(), L1Acc(), nLCTChipRead(), NTBins(), pack(), selfTest(), setBXNCount(), setDAVForChannel(), setEventInformation(), setL1Acc(), and sizeInWords().
|
private |
Definition at line 189 of file CSCALCTHeader.h.
Referenced by ActiveFEBs(), alctHeader2006(), BoardID(), BXNCount(), check(), CSCALCTHeader(), CSCID(), ExtTrig(), FIFOMode(), L1Acc(), L1AMatch(), LCTChipRead(), nLCTChipRead(), NTBins(), pack(), Promote1(), Promote2(), setBXNCount(), setDAVForChannel(), setEventInformation(), and setL1Acc().
|
private |
Definition at line 190 of file CSCALCTHeader.h.
Referenced by add(), alctHeader2007(), BXNCount(), check(), CSCALCTHeader(), L1Acc(), NTBins(), pack(), setBXNCount(), setEventInformation(), and setL1Acc().
|
private |
Definition at line 196 of file CSCALCTHeader.h.
Referenced by CSCALCTHeader().
|
private |
size of the 2007 header in words
Definition at line 211 of file CSCALCTHeader.h.
Referenced by CSCALCTHeader(), and sizeInWords().
|
private |
Definition at line 191 of file CSCALCTHeader.h.
Referenced by add(), ALCTDigis(), CSCALCTHeader(), and pack().
|
private |
Definition at line 200 of file CSCALCTHeader.h.
Referenced by CSCALCTHeader(), and data().
|
private |
Definition at line 193 of file CSCALCTHeader.h.
Referenced by CSCALCTHeader().