#include <CSCCLCTData.h>
Public Member Functions | |
void | add (const CSCComparatorDigi &digi, const CSCDetId &id) |
TODO for packing. Doesn't do flipping yet. More... | |
void | add (const CSCComparatorDigi &digi, int layer) |
TODO for packing. Doesn't do flipping yet. More... | |
bool | bitValue (int cfeb, int tbin, int layer, int distrip) |
bool | check () const |
std::vector< CSCComparatorDigi > | comparatorDigis (int layer) |
layers count from one More... | |
std::vector< CSCComparatorDigi > | comparatorDigis (uint32_t idlayer, unsigned icfeb) |
layers count from one More... | |
CSCCLCTData (const CSCTMBHeader *tmbHeader) | |
CSCCLCTData (int ncfebs, int ntbins, const unsigned short *e0bbuf, int firmware_version=2007) | |
CSCCLCTData (int ncfebs, int ntbins, int firmware_version=2007) | |
unsigned short * | data () |
CSCCLCTDataWord & | dataWord (int cfeb, int tbin, int layer) const |
CSCCLCTDataWord & | dataWord (int iline) const |
void | dump () const |
int | nlines () const |
int | sizeInWords () const |
in 16-bit words More... | |
Static Public Member Functions | |
static void | selfTest () |
static void | setDebug (const bool value) |
Private Member Functions | |
void | zero () |
Private Attributes | |
int | ncfebs_ |
int | ntbins_ |
int | size_ |
unsigned short | theData [7 *6 *32] |
int | theFirmwareVersion |
Static Private Attributes | |
static std::atomic< bool > | debug {false} |
Definition at line 24 of file CSCCLCTData.h.
|
explicit |
Definition at line 16 of file CSCCLCTData.cc.
References CSCTMBHeader::FirmwareVersion(), nlines(), size_, theFirmwareVersion, and zero().
CSCCLCTData::CSCCLCTData | ( | int | ncfebs, |
int | ntbins, | ||
int | firmware_version = 2007 |
||
) |
CSCCLCTData::CSCCLCTData | ( | int | ncfebs, |
int | ntbins, | ||
const unsigned short * | e0bbuf, | ||
int | firmware_version = 2007 |
||
) |
Definition at line 31 of file CSCCLCTData.cc.
References visDQMUpload::buf, nlines(), size_, and theData.
void CSCCLCTData::add | ( | const CSCComparatorDigi & | digi, |
const CSCDetId & | id | ||
) |
TODO for packing. Doesn't do flipping yet.
!!! Do we need to introduce format version here to accomodate 7 CFEBs
Definition at line 221 of file CSCCLCTData.cc.
References cms::cuda::assert(), dataWord(), CSCDetId::endcap(), CSCComparatorDigi::getComparator(), CSCComparatorDigi::getStrip(), CSCComparatorDigi::getTimeBinsOn(), CSCDetId::layer(), ntbins_, CSCDetId::ring(), CSCCLCTDataWord::set(), CSCDetId::station(), digitizers_cfi::strip, theFirmwareVersion, and SurfaceOrientation::zplus.
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
void CSCCLCTData::add | ( | const CSCComparatorDigi & | digi, |
int | layer | ||
) |
TODO for packing. Doesn't do flipping yet.
!!! Do we need to introduce format version here to accomodate 7 CFEBs
Definition at line 191 of file CSCCLCTData.cc.
References cms::cuda::assert(), dataWord(), CSCComparatorDigi::getComparator(), CSCComparatorDigi::getStrip(), CSCComparatorDigi::getTimeBinsOn(), ntbins_, CSCCLCTDataWord::set(), and digitizers_cfi::strip.
Referenced by CSCEventData::add(), counter.Counter::register(), SequenceTypes.Task::remove(), SequenceTypes.Task::replace(), and selfTest().
|
inline |
Definition at line 66 of file CSCCLCTData.h.
References dataWord(), and CSCCLCTDataWord::value().
Referenced by comparatorDigis().
bool CSCCLCTData::check | ( | ) | const |
first do some checks
Definition at line 295 of file CSCCLCTData.cc.
References dataWord(), debug, LogTrace, ncfebs_, ntbins_, and mps_fire::result.
Referenced by cscdqm::EventProcessor::processCSC(), and CSCTMBData::UnpackTMB().
std::vector< CSCComparatorDigi > CSCCLCTData::comparatorDigis | ( | int | layer | ) |
layers count from one
Definition at line 178 of file CSCCLCTData.cc.
References cms::cuda::assert(), ncfebs_, and mps_fire::result.
Referenced by cscdqm::EventProcessor::processCSC(), and selfTest().
std::vector< CSCComparatorDigi > CSCCLCTData::comparatorDigis | ( | uint32_t | idlayer, |
unsigned | icfeb | ||
) |
layers count from one
first do some checks
what is actually stored in comparator digis are 0/1 for left/right halfstrip for each strip
constructing four bitted words for tbits on
Definition at line 50 of file CSCCLCTData.cc.
References cms::cuda::assert(), bitValue(), dataWord(), debug, CSCDetId::endcap(), CSCDetId::layer(), LogTrace, ntbins_, convertSQLitetoXML_cfg::output, mps_fire::result, CSCDetId::ring(), CSCDetId::station(), digitizers_cfi::strip, theFirmwareVersion, and SurfaceOrientation::zplus.
|
inline |
|
inline |
Definition at line 61 of file CSCCLCTData.h.
References dataWord(), ntuplemaker::iline, and ntbins_.
|
inline |
Definition at line 49 of file CSCCLCTData.h.
References cms::cuda::assert(), ztail::d, ntuplemaker::iline, nlines(), alignCSCRings::s, and theData.
Referenced by add(), bitValue(), check(), comparatorDigis(), dataWord(), and zero().
void CSCCLCTData::dump | ( | void | ) | const |
|
inline |
Definition at line 42 of file CSCCLCTData.h.
References ncfebs_, and ntbins_.
Referenced by CSCCLCTData(), and dataWord().
|
static |
Definition at line 324 of file CSCCLCTData.cc.
References add(), cms::cuda::assert(), and comparatorDigis().
|
inlinestatic |
turns on/off debug flag for this class
Definition at line 31 of file CSCCLCTData.h.
References debug, and relativeConstraints::value.
Referenced by CSCDCCUnpacker::CSCDCCUnpacker().
|
inline |
in 16-bit words
Definition at line 41 of file CSCCLCTData.h.
References size_.
Referenced by CSCTMBData::CSCTMBData(), CSCTMBData::pack(), and CSCTMBData::UnpackTMB().
|
private |
Definition at line 40 of file CSCCLCTData.cc.
References dataWord(), ncfebs_, and ntbins_.
Referenced by CSCCLCTData().
|
staticprivate |
Definition at line 84 of file CSCCLCTData.h.
Referenced by check(), comparatorDigis(), 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(), setDebug(), and pkg.AbstractPkg::write().
|
private |
Definition at line 87 of file CSCCLCTData.h.
Referenced by check(), comparatorDigis(), nlines(), and zero().
|
private |
Definition at line 88 of file CSCCLCTData.h.
Referenced by add(), check(), comparatorDigis(), dataWord(), nlines(), and zero().
|
private |
Definition at line 89 of file CSCCLCTData.h.
Referenced by CSCCLCTData(), dump(), and sizeInWords().
|
private |
Definition at line 90 of file CSCCLCTData.h.
Referenced by CSCCLCTData(), data(), dataWord(), and dump().
|
private |
Definition at line 91 of file CSCCLCTData.h.
Referenced by add(), comparatorDigis(), and CSCCLCTData().