#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 | addALCT0 (const CSCALCTDigi &digi) |
void | addALCT1 (const CSCALCTDigi &digi) |
void | addCLCT0 (const CSCCLCTDigi &digi) |
Needed before data packing. More... | |
void | addCLCT1 (const CSCCLCTDigi &digi) |
void | addCorrelatedLCT0 (const CSCCorrelatedLCTDigi &digi) |
void | addCorrelatedLCT1 (const CSCCorrelatedLCTDigi &digi) |
uint16_t | ALCTMatchTime () const |
uint16_t | ALCTOnly () const |
uint16_t | Bxn0Diff () const |
uint16_t | Bxn1Diff () const |
uint16_t | BXNCount () const |
bool | check () const |
std::vector< CSCCLCTDigi > | CLCTDigis (uint32_t idlayer) |
returns CLCT digis More... | |
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 | L1ANumber () const |
uint16_t | NCFEBs () const |
unsigned short int | NHeaderFrames () const |
uint16_t | NTBins () const |
void | setEventInformation (const CSCDMBHeader &dmbHeader) |
fills fields like bxn and l1a More... | |
void | setNCFEBs (uint16_t ncfebs) |
uint16_t | sizeInBytes () const |
unsigned short int | sizeInWords () const |
CSCTMBHeader2006 | tmbHeader2006 () const |
CSCTMBHeader2007 | tmbHeader2007 () const |
will throw if the cast fails More... | |
CSCTMBHeader2013 | tmbHeader2013 () const |
uint16_t | TMBMatch () const |
Static Public Member Functions | |
static void | selfTest () |
tests that packing and unpacking give same results More... | |
static void | setDebug (const bool value) |
Private Attributes | |
int | theFirmwareVersion |
boost::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 24 of file CSCTMBHeader.h.
CSCTMBHeader::CSCTMBHeader | ( | int | firmwareVersion, |
int | firmwareRevision | ||
) |
!!! Put actual firmware revision code
Definition at line 20 of file CSCTMBHeader.cc.
References theHeaderFormat.
CSCTMBHeader::CSCTMBHeader | ( | const CSCTMBStatusDigi & | digi | ) |
CSCTMBHeader::CSCTMBHeader | ( | const unsigned short * | buf | ) |
first determine the format
!!! Put actual firmware revision code
Definition at line 60 of file CSCTMBHeader.cc.
References 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 127 of file CSCTMBHeader.cc.
References addCLCT0(), and addCLCT1().
Referenced by CSCEventData::add(), and counter.Counter::register().
void CSCTMBHeader::add | ( | const std::vector< CSCCorrelatedLCTDigi > & | digis | ) |
Definition at line 137 of file CSCTMBHeader.cc.
References addCorrelatedLCT0(), and addCorrelatedLCT1().
Referenced by counter.Counter::register().
|
inline |
Definition at line 126 of file CSCTMBHeader.h.
References theHeaderFormat.
|
inline |
Definition at line 127 of file CSCTMBHeader.h.
References theHeaderFormat.
|
inline |
Needed before data packing.
for data packing
Definition at line 124 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by add(), and selfTest().
|
inline |
Definition at line 125 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 131 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by add(), and selfTest().
|
inline |
Definition at line 44 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by CSCOfflineMonitor::doBXMonitor(), CSCValidation::doTimeMonitoring(), and cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 50 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 57 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 60 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 41 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by CSCOfflineMonitor::doBXMonitor(), CSCValidation::doTimeMonitoring(), and cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 116 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by CSCTMBData::UnpackTMB().
|
inline |
returns CLCT digis
Definition at line 90 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC(), selfTest(), and CSCEventData::selfTest().
|
inline |
Definition at line 47 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
returns CorrelatedLCT digis
Definition at line 96 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by selfTest(), and CSCEventData::selfTest().
|
inline |
Definition at line 109 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cuy.FindIssue::__init__(), CSCTMBData::pack(), and selfTest().
|
inline |
Definition at line 38 of file CSCTMBHeader.h.
References theHeaderFormat.
|
inline |
Definition at line 37 of file CSCTMBHeader.h.
References theFirmwareVersion.
Referenced by CSCCLCTData::CSCCLCTData(), and CSCTMBData::UnpackTMB().
|
inline |
Definition at line 64 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 80 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC(), and CSCTMBData::UnpackTMB().
|
inline |
Definition at line 105 of file CSCTMBHeader.h.
References theHeaderFormat.
|
inline |
Definition at line 77 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by CSCTMBData::UnpackTMB().
|
static |
tests that packing and unpacking give same results
Definition at line 177 of file CSCTMBHeader.cc.
References addCLCT0(), addCLCT1(), addCorrelatedLCT0(), addCorrelatedLCT1(), assert(), CLCTDigis(), CorrelatedLCTDigis(), gather_cfg::cout, cscPackerCompare(), data(), debug, DetId::rawId(), and relativeConstraints::station.
|
inlinestatic |
turns on/off debug flag for this class
Definition at line 114 of file CSCTMBHeader.h.
References debug, and relativeConstraints::value.
Referenced by CSCDCCUnpacker::CSCDCCUnpacker().
|
inline |
fills fields like bxn and l1a
Definition at line 32 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by CSCEventData::checkTMBClasses(), and CSCEventData::setEventInformation().
|
inline |
Definition at line 84 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by CSCEventData::checkTMBClasses(), CSCTMBData::CSCTMBData(), and CSCEventData::setEventInformation().
|
inline |
Definition at line 68 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 103 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by CSCTMBData::CSCTMBData(), CSCTMBData::pack(), and CSCTMBData::UnpackTMB().
CSCTMBHeader2006 CSCTMBHeader::tmbHeader2006 | ( | ) | const |
Definition at line 166 of file CSCTMBHeader.cc.
References Exception, mps_fire::result, and theHeaderFormat.
CSCTMBHeader2007 CSCTMBHeader::tmbHeader2007 | ( | ) | const |
will throw if the cast fails
Definition at line 145 of file CSCTMBHeader.cc.
References Exception, mps_fire::result, and theHeaderFormat.
CSCTMBHeader2013 CSCTMBHeader::tmbHeader2013 | ( | ) | const |
Definition at line 155 of file CSCTMBHeader.cc.
References Exception, mps_fire::result, and theHeaderFormat.
|
inline |
Definition at line 53 of file CSCTMBHeader.h.
References theHeaderFormat.
Referenced by cscdqm::EventProcessor::processCSC().
|
friend |
Definition at line 241 of file CSCTMBHeader.cc.
|
staticprivate |
Definition at line 152 of file CSCTMBHeader.h.
Referenced by rrapi.RRApi::__init__(), rrapi.RRApi::dprint(), pkg.AbstractPkg::generate(), rrapi.RRApi::get(), pkg.AbstractPkg::get_kwds(), 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 addALCT0(), addALCT1(), addCLCT0(), addCLCT1(), addCorrelatedLCT0(), addCorrelatedLCT1(), ALCTMatchTime(), ALCTOnly(), Bxn0Diff(), Bxn1Diff(), BXNCount(), check(), CLCTDigis(), CLCTOnly(), CorrelatedLCTDigis(), CSCTMBHeader(), data(), FirmwareRevision(), L1ANumber(), NCFEBs(), NHeaderFrames(), NTBins(), operator<<(), setEventInformation(), setNCFEBs(), sizeInBytes(), sizeInWords(), tmbHeader2006(), tmbHeader2007(), tmbHeader2013(), and TMBMatch().