#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) |
void | addShower (const std::vector< CSCShowerDigi > &digis) |
Add Run3 ALCT HMT shower bits. More... | |
std::vector< CSCALCTDigi > | ALCTDigis () const |
unsigned short int | alctFirmwareRevision () const |
unsigned short int | alctFirmwareVersion () const |
CSCALCTHeader2006 | alctHeader2006 () const |
CSCALCTHeader2007 | alctHeader2007 () const |
std::vector< unsigned short int > | alctHMTs () const |
std::vector< CSCShowerDigi > | alctShowerDigis () 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 22 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 41 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, visDQMUpload::buf, 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 134 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, simKBmtfDigis_cfi::bx, firmwareVersion, header2007, mps_fire::i, CSCALCTHeader2007::lctBins, theALCTs, and validateGeometry_cfg::valid.
Referenced by CSCEventData::add(), check(), counter.Counter::register(), SequenceTypes._TaskBase::remove(), SequenceTypes._TaskBase::replace(), and selfTest().
void CSCALCTHeader::addShower | ( | const std::vector< CSCShowerDigi > & | digis | ) |
Add Run3 ALCT HMT shower bits.
Add ALCT anodes HMT shower bits per ALCT BX.
Definition at line 222 of file CSCALCTHeader.cc.
References CSCShowerDigi::bitsInTime(), simKBmtfDigis_cfi::bx, firmwareVersion, header2007, mps_fire::i, CSCShowerDigi::isValid(), CSCALCTHeader2007::lctBins, and theALCTs.
Referenced by CSCEventData::addAnodeALCTShower(), and check().
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, topSingleLeptonDQM_PU_cfi::pattern, quality, mps_fire::result, theALCTs, and validateGeometry_cfg::valid.
Referenced by CSCALCTHeader(), cscdqm::EventProcessor::processCSC(), and CSCEventData::unpack_data().
|
inline |
Definition at line 139 of file CSCALCTHeader.h.
References CSCALCTHeader2007::firmwareVersion, firmwareVersion, and header2007.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 138 of file CSCALCTHeader.h.
References firmwareVersion.
Referenced by CSCEventData::checkALCTClasses(), and cscdqm::EventProcessor::processCSC().
|
inline |
|
inline |
|
inline |
Definition at line 187 of file CSCALCTHeader.h.
References simKBmtfDigis_cfi::bx, firmwareVersion, header2007, CSCALCTHeader2007::lctBins, bookConverter::results, and theALCTs.
|
inline |
Definition at line 156 of file CSCALCTHeader.h.
References simKBmtfDigis_cfi::bx, firmwareVersion, header2007, CSCALCTHeader2007::lctBins, bookConverter::results, and theALCTs.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 59 of file CSCALCTHeader.h.
References CSCALCTHeader2006::boardID, and header2006.
|
inline |
Definition at line 62 of file CSCALCTHeader.h.
References CSCALCTHeader2007::bxnCount, CSCALCTHeader2006::bxnCount, firmwareVersion, header2006, and header2007.
Referenced by ALCTDigis(), and cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 243 of file CSCALCTHeader.h.
References add(), addShower(), simCaloStage2Digis_cfi::firmware, firmwareVersion, CSCALCTHeader2007::flag1, CSCALCTHeader2006::flag_0, header2006, header2007, pack(), and selfTest().
Referenced by CSCEventData::unpack_data().
|
inline |
|
inline |
Definition at line 224 of file CSCALCTHeader.h.
References theOriginalBuffer.
Referenced by CSCEventData::pack(), pack(), and CSCEventData::unpack_data().
|
inline |
Definition at line 60 of file CSCALCTHeader.h.
References CSCALCTHeader2006::extTrig, and header2006.
|
inline |
Definition at line 42 of file CSCALCTHeader.h.
References CSCALCTHeader2006::fifoMode, and header2006.
|
inline |
Definition at line 98 of file CSCALCTHeader.h.
References firmwareVersion, header2006, header2007, CSCALCTHeader2006::l1Acc, and CSCALCTHeader2007::l1aCounter.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 133 of file CSCALCTHeader.h.
References header2006, and CSCALCTHeader2006::l1aMatch.
|
inline |
Definition at line 137 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 43 of file CSCALCTHeader.h.
References firmwareVersion, header2006, header2007, CSCALCTHeader2006::nTBins, and CSCALCTHeader2007::rawBins.
boost::dynamic_bitset CSCALCTHeader::pack | ( | ) |
Definition at line 240 of file CSCALCTHeader.cc.
References alcts2006, bitset_utilities::append(), bitset_utilities::bitsetToChar(), data(), firmwareVersion, RecoTauValidation_cfi::header, 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 135 of file CSCALCTHeader.h.
References header2006, and CSCALCTHeader2006::promote1.
|
inline |
Definition at line 136 of file CSCALCTHeader.h.
References header2006, and CSCALCTHeader2006::promote2.
|
static |
tests that we unpack what we packed
Definition at line 266 of file CSCALCTHeader.cc.
References add(), cms::cuda::assert(), simCaloStage2Digis_cfi::firmware, firmwareVersion, CSCDetId::iChamberType(), and relativeConstraints::station.
Referenced by check().
|
inline |
Definition at line 79 of file CSCALCTHeader.h.
References CSCALCTHeader2007::bxnCount, CSCALCTHeader2006::bxnCount, firmwareVersion, header2006, and header2007.
Referenced by CSCEventData::add().
|
inline |
Definition at line 215 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 31 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 115 of file CSCALCTHeader.h.
References firmwareVersion, header2006, header2007, CSCALCTHeader2006::l1Acc, and CSCALCTHeader2007::l1aCounter.
|
inline |
in 16-bit words
Definition at line 227 of file CSCALCTHeader.h.
References firmwareVersion, and sizeInWords2007_.
Referenced by CSCEventData::checkALCTClasses(), CSCALCTHeader(), CSCEventData::pack(), pack(), and CSCEventData::unpack_data().
|
private |
Definition at line 272 of file CSCALCTHeader.h.
Referenced by add(), ALCTDigis(), CSCALCTHeader(), and pack().
|
private |
Definition at line 291 of file CSCALCTHeader.h.
|
private |
Definition at line 291 of file CSCALCTHeader.h.
|
private |
Definition at line 275 of file CSCALCTHeader.h.
Referenced by CSCALCTHeader().
|
private |
Definition at line 274 of file CSCALCTHeader.h.
Referenced by CSCALCTHeader().
|
staticprivate |
Definition at line 286 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 287 of file CSCALCTHeader.h.
Referenced by add(), addShower(), ALCTDigis(), alctFirmwareRevision(), alctFirmwareVersion(), alctHMTs(), alctShowerDigis(), BXNCount(), check(), CSCALCTHeader(), L1Acc(), nLCTChipRead(), NTBins(), pack(), selfTest(), setBXNCount(), setDAVForChannel(), setEventInformation(), setL1Acc(), and sizeInWords().
|
private |
Definition at line 269 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 270 of file CSCALCTHeader.h.
Referenced by add(), addShower(), alctFirmwareRevision(), alctHeader2007(), alctHMTs(), alctShowerDigis(), BXNCount(), check(), CSCALCTHeader(), L1Acc(), NTBins(), pack(), setBXNCount(), setEventInformation(), and setL1Acc().
|
private |
Definition at line 276 of file CSCALCTHeader.h.
Referenced by CSCALCTHeader().
|
private |
size of the 2007 header in words
Definition at line 291 of file CSCALCTHeader.h.
Referenced by CSCALCTHeader(), and sizeInWords().
|
private |
Definition at line 271 of file CSCALCTHeader.h.
Referenced by add(), addShower(), ALCTDigis(), alctHMTs(), alctShowerDigis(), CSCALCTHeader(), and pack().
|
private |
Definition at line 280 of file CSCALCTHeader.h.
Referenced by CSCALCTHeader(), and data().
|
private |
Definition at line 273 of file CSCALCTHeader.h.
Referenced by CSCALCTHeader().