#include <CSCTMBHeader.h>
Public Member Functions | |
void | add (const std::vector< CSCCLCTDigi > &digis) |
these methods need more brains to figure which one goes first More... | |
void | add (const std::vector< CSCCorrelatedLCTDigi > &digis) |
void | add (const std::vector< CSCShowerDigi > &digis) |
void | addALCT0 (const CSCALCTDigi &digi) |
void | addALCT1 (const CSCALCTDigi &digi) |
void | addAnodeShower (const CSCShowerDigi &digi) |
void | addCathodeShower (const CSCShowerDigi &digi) |
void | addCLCT0 (const CSCCLCTDigi &digi) |
for data packing More... | |
void | addCLCT1 (const CSCCLCTDigi &digi) |
void | addCorrelatedLCT0 (const CSCCorrelatedLCTDigi &digi) |
void | addCorrelatedLCT1 (const CSCCorrelatedLCTDigi &digi) |
void | addShower (const CSCShowerDigi &digi) |
uint16_t | alctHMT () const |
uint16_t | ALCTMatchTime () const |
uint16_t | ALCTOnly () const |
CSCShowerDigi | anodeShowerDigi (uint32_t idlayer) const |
returns Run3 anode Shower Digi for HMT More... | |
uint16_t | Bxn0Diff () const |
uint16_t | Bxn1Diff () const |
uint16_t | BXNCount () const |
CSCShowerDigi | cathodeShowerDigi (uint32_t idlayer) const |
returns Run3 cathode Shower Digi for HMT More... | |
bool | check () const |
uint16_t | clct0_ComparatorCode () const |
== Run 3 CSC-GEM Trigger Format More... | |
uint16_t | clct0_xky () const |
uint16_t | clct1_ComparatorCode () const |
uint16_t | clct1_xky () const |
std::vector< CSCCLCTDigi > | CLCTDigis (uint32_t idlayer) |
returns CLCT digis More... | |
uint16_t | clctHMT () const |
uint16_t | CLCTOnly () const |
std::vector< CSCCorrelatedLCTDigi > | CorrelatedLCTDigis (uint32_t idlayer) const |
returns CorrelatedLCT digis More... | |
CSCTMBHeader (int firmwareVersion, int firmwareRevision) | |
CSCTMBHeader (const CSCTMBStatusDigi &digi) | |
CSCTMBHeader (const unsigned short *buf) | |
unsigned short * | data () |
int | FirmwareRevision () const |
int | FirmwareVersion () const |
uint16_t | gem_enabled_fibers () const |
uint16_t | gem_fifo_pretrig () const |
uint16_t | gem_fifo_tbins () const |
uint16_t | gem_sync_dataword () const |
uint16_t | gem_timing_dataword () const |
uint16_t | gem_zero_suppress () const |
uint16_t | hmt_ALCTMatchTime () const |
uint16_t | hmt_nhits () const |
uint16_t | L1AMatchTime () const |
uint16_t | L1ANumber () const |
uint16_t | NCFEBs () const |
unsigned short int | NHeaderFrames () const |
uint16_t | NTBins () const |
uint16_t | run3_CLCT_patternID () const |
void | setALCTMatchTime (uint16_t alctmatchtime) |
void | setEventInformation (const CSCDMBHeader &dmbHeader) |
fills fields like bxn and l1a More... | |
void | setNCFEBs (uint16_t ncfebs) |
CSCShowerDigi | showerDigi (uint32_t idlayer) const |
returns Run3 lct Shower Digi for HMT More... | |
uint16_t | sizeInBytes () const |
unsigned short int | sizeInWords () const |
uint16_t | syncError () const |
uint16_t | syncErrorCLCT () const |
uint16_t | syncErrorMPC0 () const |
uint16_t | syncErrorMPC1 () const |
CSCTMBHeader2006 | tmbHeader2006 () const |
CSCTMBHeader2007 | tmbHeader2007 () const |
will throw if the cast fails More... | |
CSCTMBHeader2007_rev0x50c3 | tmbHeader2007_rev0x50c3 () const |
CSCTMBHeader2013 | tmbHeader2013 () const |
CSCTMBHeader2020_CCLUT | tmbHeader2020_CCLUT () const |
CSCTMBHeader2020_GEM | tmbHeader2020_GEM () const |
CSCTMBHeader2020_Run2 | tmbHeader2020_Run2 () const |
CSCTMBHeader2020_TMB | tmbHeader2020_TMB () const |
uint16_t | TMBMatch () const |
Static Public Member Functions | |
static void | selfTest (int firmwwareVersion, int firmwareRevision) |
tests that packing and unpacking give same results More... | |
static void | setDebug (const bool value) |
Private Attributes | |
int | theFirmwareVersion |
std::shared_ptr< CSCVTMBHeaderFormat > | theHeaderFormat |
Static Private Attributes | |
static std::atomic< bool > | debug {false} |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CSCTMBHeader &hdr) |
Definition at line 31 of file CSCTMBHeader.h.
CSCTMBHeader::CSCTMBHeader | ( | int | firmwareVersion, |
int | firmwareRevision | ||
) |
Copper TMB hybrid fw Run2 CLCT + Run3 LCT/MPC + anode-only HMT (March 2022)
Definition at line 24 of file CSCTMBHeader.cc.
References simCaloStage2Layer1Digis_cfi::firmwareVersion, and theHeaderFormat.
CSCTMBHeader::CSCTMBHeader | ( | const CSCTMBStatusDigi & | digi | ) |
CSCTMBHeader::CSCTMBHeader | ( | const unsigned short * | buf | ) |
first determine the format
Run3 ME11+GE11 OTMB fw with CCLUT and HMT
Run3 MEx1 OTMB fw with CCLUT and HMT
Run2-compatible data format OTMB fw with Run3 revision code format
Copper TMB hybrid fw Run2 CLCT + Run3 LCT/MPC + anode-only HMT (March 2022)
Definition at line 124 of file CSCTMBHeader.cc.
References visDQMUpload::buf, theFirmwareVersion, and theHeaderFormat.
void CSCTMBHeader::add | ( | const std::vector< CSCCLCTDigi > & | digis | ) |
these methods need more brains to figure which one goes first
Definition at line 250 of file CSCTMBHeader.cc.
References addCLCT0(), and addCLCT1().
Referenced by CSCEventData::add(), counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::replace().
void CSCTMBHeader::add | ( | const std::vector< CSCCorrelatedLCTDigi > & | digis | ) |
Definition at line 259 of file CSCTMBHeader.cc.
References addCorrelatedLCT0(), and addCorrelatedLCT1().
Referenced by counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::replace().
void CSCTMBHeader::add | ( | const std::vector< CSCShowerDigi > & | digis | ) |
Definition at line 267 of file CSCTMBHeader.cc.
References theHeaderFormat.
Referenced by counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::replace().
|
inline |
Definition at line 125 of file CSCTMBHeader.h.
References theHeaderFormat.
|
inline |
Definition at line 126 of file CSCTMBHeader.h.
References theHeaderFormat.
|
inline |
Definition at line 132 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by CSCEventData::addAnodeShower().
|
inline |
Definition at line 134 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by CSCEventData::addCathodeShower().
|
inline |
for data packing
Definition at line 123 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by add(), and selfTest().
|
inline |
Definition at line 124 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by add(), and selfTest().
|
inline |
Definition at line 127 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by add(), and selfTest().
|
inline |
Definition at line 128 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by add(), and selfTest().
|
inline |
Definition at line 130 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by CSCEventData::addShower().
|
inline |
Definition at line 85 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 44 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by CSCOfflineMonitor::doBXMonitor(), and cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 47 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
returns Run3 anode Shower Digi for HMT
Definition at line 97 of file CSCTMBHeader.h.
References theHeaderFormat.
|
inline |
Definition at line 50 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 51 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 43 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by CSCOfflineMonitor::doBXMonitor(), and cscdqm::EventProcessor::processCSC().
|
inline |
returns Run3 cathode Shower Digi for HMT
Definition at line 99 of file CSCTMBHeader.h.
References theHeaderFormat.
|
inline |
Definition at line 120 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by CSCTMBData::UnpackTMB().
|
inline |
== Run 3 CSC-GEM Trigger Format
Definition at line 79 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 81 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 80 of file CSCTMBHeader.h.
References theHeaderFormat.
|
inline |
Definition at line 82 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
returns CLCT digis
Definition at line 102 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC(), CSCEventData::selfTest(), and selfTest().
|
inline |
Definition at line 86 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 46 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
returns CorrelatedLCT digis
Definition at line 105 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC(), CSCEventData::selfTest(), and selfTest().
|
inline |
Definition at line 115 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by CSCTMBData::pack(), and selfTest().
|
inline |
Definition at line 41 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 40 of file CSCTMBHeader.h.
References theFirmwareVersion.
Referenced by CSCComparatorData::CSCComparatorData(), cscdqm::EventProcessor::processCSC(), and CSCTMBData::UnpackTMB().
|
inline |
Definition at line 87 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 89 of file CSCTMBHeader.h.
References theHeaderFormat.
|
inline |
Definition at line 88 of file CSCTMBHeader.h.
References theHeaderFormat.
|
inline |
Definition at line 91 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 92 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 90 of file CSCTMBHeader.h.
References theHeaderFormat.
|
inline |
Definition at line 84 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 83 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 57 of file CSCTMBHeader.h.
References theHeaderFormat.
|
inline |
Definition at line 53 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 69 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC(), and CSCTMBData::UnpackTMB().
|
inline |
Definition at line 113 of file CSCTMBHeader.h.
References theHeaderFormat.
|
inline |
Definition at line 68 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by CSCTMBData::UnpackTMB().
|
inline |
Definition at line 93 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
static |
tests that packing and unpacking give same results
Definition at line 336 of file CSCTMBHeader.cc.
References addCLCT0(), addCLCT1(), addCorrelatedLCT0(), addCorrelatedLCT1(), cms::cuda::assert(), CLCTDigis(), CorrelatedLCTDigis(), gather_cfg::cout, cscPackerCompare(), data(), debug, simCaloStage2Layer1Digis_cfi::firmwareVersion, DetId::rawId(), CSCCLCTDigi::Run3, CSCCorrelatedLCTDigi::Run3, and relativeConstraints::station.
|
inline |
Definition at line 45 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by CSCEventData::add().
|
inlinestatic |
turns on/off debug flag for this class
Definition at line 118 of file CSCTMBHeader.h.
References debug, and relativeConstraints::value.
Referenced by CSCDCCUnpacker::CSCDCCUnpacker().
|
inline |
fills fields like bxn and l1a
Definition at line 38 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by CSCEventData::checkTMBClasses(), and CSCEventData::setEventInformation().
|
inline |
Definition at line 76 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by CSCEventData::checkTMBClasses(), CSCTMBData::CSCTMBData(), and CSCEventData::setEventInformation().
|
inline |
returns Run3 lct Shower Digi for HMT
Definition at line 95 of file CSCTMBHeader.h.
References theHeaderFormat.
|
inline |
Definition at line 55 of file CSCTMBHeader.h.
References theHeaderFormat.
|
inline |
in 16-bit words. Add olne because we include beginning(b0c) and end (e0c) flags
Definition at line 111 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by CSCTMBData::CSCTMBData(), CSCTMBData::pack(), and CSCTMBData::UnpackTMB().
|
inline |
Definition at line 71 of file CSCTMBHeader.h.
References theHeaderFormat.
|
inline |
Definition at line 72 of file CSCTMBHeader.h.
References theHeaderFormat.
|
inline |
Definition at line 73 of file CSCTMBHeader.h.
References theHeaderFormat.
|
inline |
Definition at line 74 of file CSCTMBHeader.h.
References theHeaderFormat.
CSCTMBHeader2006 CSCTMBHeader::tmbHeader2006 | ( | ) | const |
Definition at line 328 of file CSCTMBHeader.cc.
References Exception, mps_fire::result, and theHeaderFormat.
CSCTMBHeader2007 CSCTMBHeader::tmbHeader2007 | ( | ) | const |
will throw if the cast fails
Definition at line 272 of file CSCTMBHeader.cc.
References Exception, mps_fire::result, and theHeaderFormat.
CSCTMBHeader2007_rev0x50c3 CSCTMBHeader::tmbHeader2007_rev0x50c3 | ( | ) | const |
Definition at line 280 of file CSCTMBHeader.cc.
References Exception, mps_fire::result, and theHeaderFormat.
CSCTMBHeader2013 CSCTMBHeader::tmbHeader2013 | ( | ) | const |
Definition at line 288 of file CSCTMBHeader.cc.
References Exception, mps_fire::result, and theHeaderFormat.
CSCTMBHeader2020_CCLUT CSCTMBHeader::tmbHeader2020_CCLUT | ( | ) | const |
Definition at line 304 of file CSCTMBHeader.cc.
References Exception, mps_fire::result, and theHeaderFormat.
CSCTMBHeader2020_GEM CSCTMBHeader::tmbHeader2020_GEM | ( | ) | const |
Definition at line 312 of file CSCTMBHeader.cc.
References Exception, mps_fire::result, and theHeaderFormat.
CSCTMBHeader2020_Run2 CSCTMBHeader::tmbHeader2020_Run2 | ( | ) | const |
Definition at line 320 of file CSCTMBHeader.cc.
References Exception, mps_fire::result, and theHeaderFormat.
CSCTMBHeader2020_TMB CSCTMBHeader::tmbHeader2020_TMB | ( | ) | const |
Definition at line 296 of file CSCTMBHeader.cc.
References Exception, mps_fire::result, and theHeaderFormat.
|
inline |
Definition at line 48 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
friend |
Definition at line 452 of file CSCTMBHeader.cc.
|
staticprivate |
Definition at line 152 of file CSCTMBHeader.h.
Referenced by util.rrapi.RRApi::dprint(), rrapi.RRApi::dprint(), pkg.AbstractPkg::generate(), util.rrapi.RRApi::get(), rrapi.RRApi::get(), pkg.AbstractPkg::get_kwds(), runTauIdMVA.TauIDEmbedder::loadMVA_WPs_run2_2017(), runTauIdMVA.TauIDEmbedder::runTauID(), selfTest(), setDebug(), and pkg.AbstractPkg::write().
|
private |
Definition at line 156 of file CSCTMBHeader.h.
Referenced by CSCTMBHeader(), and FirmwareVersion().
|
private |
Definition at line 155 of file CSCTMBHeader.h.
Referenced by add(), addALCT0(), addALCT1(), addAnodeShower(), addCathodeShower(), addCLCT0(), addCLCT1(), addCorrelatedLCT0(), addCorrelatedLCT1(), addShower(), alctHMT(), ALCTMatchTime(), ALCTOnly(), anodeShowerDigi(), Bxn0Diff(), Bxn1Diff(), BXNCount(), cathodeShowerDigi(), check(), clct0_ComparatorCode(), clct0_xky(), clct1_ComparatorCode(), clct1_xky(), CLCTDigis(), clctHMT(), CLCTOnly(), CorrelatedLCTDigis(), CSCTMBHeader(), data(), FirmwareRevision(), gem_enabled_fibers(), gem_fifo_pretrig(), gem_fifo_tbins(), gem_sync_dataword(), gem_timing_dataword(), gem_zero_suppress(), hmt_ALCTMatchTime(), hmt_nhits(), L1AMatchTime(), L1ANumber(), NCFEBs(), NHeaderFrames(), NTBins(), operator<<(), run3_CLCT_patternID(), setALCTMatchTime(), setEventInformation(), setNCFEBs(), showerDigi(), sizeInBytes(), sizeInWords(), syncError(), syncErrorCLCT(), syncErrorMPC0(), syncErrorMPC1(), tmbHeader2006(), tmbHeader2007(), tmbHeader2007_rev0x50c3(), tmbHeader2013(), tmbHeader2020_CCLUT(), tmbHeader2020_GEM(), tmbHeader2020_Run2(), tmbHeader2020_TMB(), and TMBMatch().