#include <CSCCLCTData.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... | |
CSCCLCTData (const CSCTMBHeader *tmbHeader) | |
CSCCLCTData (int ncfebs, int ntbins, int firmware_version=2007) | |
CSCCLCTData (int ncfebs, int ntbins, const unsigned short *e0bbuf, int firmware_version=2007) | |
unsigned short * | data () |
CSCCLCTDataWord & | dataWord (int iline) const |
CSCCLCTDataWord & | 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 26 of file CSCCLCTData.h.
|
explicit |
Definition at line 17 of file CSCCLCTData.cc.
References CSCTMBHeader::FirmwareVersion(), nlines(), NULL, 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 |
||
) |
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 222 of file CSCCLCTData.cc.
References assert(), dataWord(), CSCComparatorDigi::getComparator(), CSCComparatorDigi::getStrip(), CSCComparatorDigi::getTimeBinsOn(), ntbins_, and CSCCLCTDataWord::set().
Referenced by CSCEventData::add(), counter.Counter::register(), and selfTest().
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 259 of file CSCCLCTData.cc.
References assert(), dataWord(), CSCDetId::endcap(), CSCComparatorDigi::getComparator(), CSCComparatorDigi::getStrip(), CSCComparatorDigi::getTimeBinsOn(), CSCDetId::layer(), ntbins_, CSCDetId::ring(), CSCCLCTDataWord::set(), CSCDetId::station(), theFirmwareVersion, and SurfaceOrientation::zplus.
Referenced by counter.Counter::register().
|
inline |
Definition at line 68 of file CSCCLCTData.h.
References dataWord(), and CSCCLCTDataWord::value().
Referenced by comparatorDigis().
bool CSCCLCTData::check | ( | ) | const |
first do some checks
Definition at line 359 of file CSCCLCTData.cc.
References CSCCLCTDataWord::cfeb_, dataWord(), debug, LogTrace, ncfebs_, ntbins_, mps_fire::result, and CSCCLCTDataWord::tbin_.
Referenced by cscdqm::EventProcessor::processCSC(), and CSCTMBData::UnpackTMB().
std::vector< CSCComparatorDigi > CSCCLCTData::comparatorDigis | ( | int | layer | ) |
layers count from one
Definition at line 206 of file CSCCLCTData.cc.
References 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 65 of file CSCCLCTData.cc.
References assert(), bitValue(), CSCCLCTDataWord::cfeb_, dataWord(), debug, CSCDetId::endcap(), CSCDetId::layer(), LogTrace, ntbins_, convertSQLitetoXML_cfg::output, mps_fire::result, CSCDetId::ring(), CSCDetId::station(), CSCCLCTDataWord::tbin_, theFirmwareVersion, and SurfaceOrientation::zplus.
|
inline |
Definition at line 44 of file CSCCLCTData.h.
References theData.
Referenced by cuy.FindIssue::__init__(), and CSCTMBData::pack().
|
inline |
Definition at line 54 of file CSCCLCTData.h.
References assert(), ztail::d, ntuplemaker::iline, nlines(), alignCSCRings::s, and theData.
Referenced by add(), bitValue(), check(), comparatorDigis(), dataWord(), and zero().
|
inline |
Definition at line 63 of file CSCCLCTData.h.
References dataWord(), ntuplemaker::iline, and ntbins_.
void CSCCLCTData::dump | ( | void | ) | const |
|
inline |
Definition at line 47 of file CSCCLCTData.h.
References ncfebs_, and ntbins_.
Referenced by CSCCLCTData(), and dataWord().
|
static |
Definition at line 397 of file CSCCLCTData.cc.
References add(), assert(), and comparatorDigis().
|
inlinestatic |
turns on/off debug flag for this class
Definition at line 35 of file CSCCLCTData.h.
References debug, and relativeConstraints::value.
Referenced by CSCDCCUnpacker::CSCDCCUnpacker().
|
inline |
in 16-bit words
Definition at line 46 of file CSCCLCTData.h.
References size_.
Referenced by CSCTMBData::CSCTMBData(), CSCTMBData::pack(), and CSCTMBData::UnpackTMB().
|
private |
Definition at line 49 of file CSCCLCTData.cc.
References dataWord(), ncfebs_, and ntbins_.
Referenced by CSCCLCTData().
|
staticprivate |
Definition at line 90 of file CSCCLCTData.h.
Referenced by check(), comparatorDigis(), util.rrapi.RRApi::dprint(), rrapi.RRApi::dprint(), pkg.AbstractPkg::generate(), rrapi.RRApi::get(), util.rrapi.RRApi::get(), pkg.AbstractPkg::get_kwds(), setDebug(), and pkg.AbstractPkg::write().
|
private |
Definition at line 93 of file CSCCLCTData.h.
Referenced by check(), comparatorDigis(), nlines(), and zero().
|
private |
Definition at line 94 of file CSCCLCTData.h.
Referenced by add(), check(), comparatorDigis(), dataWord(), nlines(), and zero().
|
private |
Definition at line 95 of file CSCCLCTData.h.
Referenced by CSCCLCTData(), dump(), and sizeInWords().
|
private |
Definition at line 96 of file CSCCLCTData.h.
Referenced by CSCCLCTData(), data(), dataWord(), and dump().
|
private |
Definition at line 97 of file CSCCLCTData.h.
Referenced by add(), comparatorDigis(), and CSCCLCTData().