#include <CSCComparatorData.h>
Public Member Functions | |
void | add (const CSCComparatorDigi &digi, int layer) |
TODO for packing. Doesn't do flipping yet. More... | |
void | add (const CSCComparatorDigi &digi, const CSCDetId &id) |
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... | |
CSCComparatorData (const CSCTMBHeader *tmbHeader) | |
CSCComparatorData (int ncfebs, int ntbins, int firmware_version=2007) | |
CSCComparatorData (int ncfebs, int ntbins, const unsigned short *e0bbuf, int firmware_version=2007) | |
unsigned short * | data () |
CSCComparatorDataWord & | dataWord (int iline) const |
CSCComparatorDataWord & | dataWord (int cfeb, int tbin, int layer) 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 CSCComparatorData.h.
|
explicit |
Definition at line 17 of file CSCComparatorData.cc.
References CSCTMBHeader::FirmwareVersion(), nlines(), size_, theFirmwareVersion, and zero().
CSCComparatorData::CSCComparatorData | ( | int | ncfebs, |
int | ntbins, | ||
int | firmware_version = 2007 |
||
) |
CSCComparatorData::CSCComparatorData | ( | int | ncfebs, |
int | ntbins, | ||
const unsigned short * | e0bbuf, | ||
int | firmware_version = 2007 |
||
) |
Definition at line 33 of file CSCComparatorData.cc.
References visDQMUpload::buf, nlines(), size_, and theData.
void CSCComparatorData::add | ( | const CSCComparatorDigi & | digi, |
int | layer | ||
) |
TODO for packing. Doesn't do flipping yet.
Definition at line 195 of file CSCComparatorData.cc.
References cms::cuda::assert(), dataWord(), CSCComparatorDigi::getCFEB(), CSCComparatorDigi::getComparator(), CSCComparatorDigi::getDiStrip(), CSCComparatorDigi::getHalfStrip(), CSCComparatorDigi::getStrip(), CSCComparatorDigi::getTimeBinsOn(), nano_mu_digi_cff::layer, CSCConstants::MAX_CFEBS_RUN2, CSCConstants::MAX_NUM_HALF_STRIPS_RUN2, ntbins_, CSCConstants::NUM_DISTRIPS_PER_CFEB, CSCComparatorDataWord::set(), and nano_mu_digi_cff::strip.
Referenced by CSCEventData::add(), counter.Counter::register(), SequenceTypes._TaskBase::remove(), SequenceTypes._TaskBase::replace(), and selfTest().
void CSCComparatorData::add | ( | const CSCComparatorDigi & | digi, |
const CSCDetId & | id | ||
) |
TODO for packing. Doesn't do flipping yet.
Definition at line 227 of file CSCComparatorData.cc.
References cms::cuda::assert(), dataWord(), CSCDetId::endcap(), CSCComparatorDigi::getCFEB(), CSCComparatorDigi::getComparator(), CSCComparatorDigi::getDiStrip(), CSCComparatorDigi::getHalfStrip(), CSCComparatorDigi::getStrip(), CSCComparatorDigi::getTimeBinsOn(), nano_mu_digi_cff::layer, CSCDetId::layer(), CSCConstants::MAX_CFEBS_RUN1, CSCConstants::MAX_CFEBS_RUN2, CSCConstants::MAX_NUM_HALF_STRIPS_RUN1, CSCConstants::MAX_NUM_HALF_STRIPS_RUN2, ntbins_, CSCConstants::NUM_CFEBS_ME1A_UNGANGED, CSCConstants::NUM_CFEBS_ME1B, CSCConstants::NUM_DISTRIPS_PER_CFEB, CSCConstants::NUM_HALF_STRIPS_PER_CFEB, CSCDetId::ring(), CSCComparatorDataWord::set(), CSCDetId::station(), nano_mu_digi_cff::strip, theFirmwareVersion, and SurfaceOrientation::zplus.
Referenced by counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::replace().
|
inline |
Definition at line 66 of file CSCComparatorData.h.
References dataWord(), nano_mu_digi_cff::layer, and CSCComparatorDataWord::value().
Referenced by comparatorDigis().
bool CSCComparatorData::check | ( | ) | const |
first do some checks
Definition at line 304 of file CSCComparatorData.cc.
References dataWord(), debug, nano_mu_digi_cff::layer, LogTrace, CSCDetId::maxLayerId(), CSCDetId::minLayerId(), ncfebs_, ntbins_, and mps_fire::result.
Referenced by cscdqm::EventProcessor::processCSC(), and CSCTMBData::UnpackTMB().
std::vector< CSCComparatorDigi > CSCComparatorData::comparatorDigis | ( | int | layer | ) |
layers count from one
Definition at line 182 of file CSCComparatorData.cc.
References cms::cuda::assert(), nano_mu_digi_cff::layer, CSCDetId::maxLayerId(), CSCDetId::minLayerId(), ncfebs_, and mps_fire::result.
Referenced by cscdqm::EventProcessor::processCSC(), and selfTest().
std::vector< CSCComparatorDigi > CSCComparatorData::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 52 of file CSCComparatorData.cc.
References cms::cuda::assert(), bitValue(), dataWord(), debug, CSCDetId::endcap(), nano_mu_digi_cff::layer, CSCDetId::layer(), LogTrace, CSCDetId::maxLayerId(), CSCDetId::minLayerId(), ntbins_, CSCConstants::NUM_DISTRIPS_PER_CFEB, mps_fire::result, CSCDetId::ring(), CSCDetId::station(), nano_mu_digi_cff::strip, theFirmwareVersion, and SurfaceOrientation::zplus.
|
inline |
Definition at line 39 of file CSCComparatorData.h.
References theData.
Referenced by CSCTMBData::pack().
|
inline |
Definition at line 49 of file CSCComparatorData.h.
References cms::cuda::assert(), ztail::d, ntuplemaker::iline, nlines(), alignCSCRings::s, and theData.
Referenced by add(), bitValue(), check(), comparatorDigis(), dataWord(), and zero().
|
inline |
Definition at line 61 of file CSCComparatorData.h.
References dataWord(), ntuplemaker::iline, nano_mu_digi_cff::layer, and ntbins_.
void CSCComparatorData::dump | ( | void | ) | const |
|
inline |
Definition at line 42 of file CSCComparatorData.h.
References ncfebs_, and ntbins_.
Referenced by CSCComparatorData(), and dataWord().
|
static |
Definition at line 333 of file CSCComparatorData.cc.
References add(), cms::cuda::assert(), and comparatorDigis().
|
inlinestatic |
turns on/off debug flag for this class
Definition at line 31 of file CSCComparatorData.h.
References debug, and relativeConstraints::value.
Referenced by CSCDCCUnpacker::CSCDCCUnpacker().
|
inline |
in 16-bit words
Definition at line 41 of file CSCComparatorData.h.
References size_.
Referenced by CSCTMBData::CSCTMBData(), CSCTMBData::pack(), and CSCTMBData::UnpackTMB().
|
private |
Definition at line 42 of file CSCComparatorData.cc.
References dataWord(), nano_mu_digi_cff::layer, CSCDetId::maxLayerId(), CSCDetId::minLayerId(), ncfebs_, and ntbins_.
Referenced by CSCComparatorData().
|
staticprivate |
Definition at line 84 of file CSCComparatorData.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 CSCComparatorData.h.
Referenced by check(), comparatorDigis(), nlines(), and zero().
|
private |
Definition at line 88 of file CSCComparatorData.h.
Referenced by add(), check(), comparatorDigis(), dataWord(), nlines(), and zero().
|
private |
Definition at line 89 of file CSCComparatorData.h.
Referenced by CSCComparatorData(), dump(), and sizeInWords().
|
private |
Definition at line 90 of file CSCComparatorData.h.
Referenced by CSCComparatorData(), data(), dataWord(), and dump().
|
private |
Definition at line 91 of file CSCComparatorData.h.
Referenced by add(), comparatorDigis(), and CSCComparatorData().