#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 dataWord(), CSCComparatorDigi::getComparator(), CSCComparatorDigi::getStrip(), CSCComparatorDigi::getTimeBinsOn(), ntbins_, CSCCLCTDataWord::set(), and digi_MixPreMix_cfi::strip.
Referenced by CSCEventData::add(), counter.Counter::register(), SequenceTypes.Task::remove(), SequenceTypes.Task::replace(), 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 dataWord(), CSCDetId::endcap(), CSCComparatorDigi::getComparator(), CSCComparatorDigi::getStrip(), CSCComparatorDigi::getTimeBinsOn(), CSCDetId::layer(), ntbins_, CSCDetId::ring(), CSCCLCTDataWord::set(), CSCDetId::station(), digi_MixPreMix_cfi::strip, theFirmwareVersion, and SurfaceOrientation::zplus.
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
|
inline |
Definition at line 68 of file CSCCLCTData.h.
References trackerTree::check(), debug, and FrontierConditions_GlobalTag_cff::dump.
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 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 bitValue(), CSCCLCTDataWord::cfeb_, dataWord(), debug, CSCDetId::endcap(), CSCDetId::layer(), LogTrace, ntbins_, convertSQLitetoXML_cfg::output, mps_fire::result, CSCDetId::ring(), CSCDetId::station(), digi_MixPreMix_cfi::strip, CSCCLCTDataWord::tbin_, theFirmwareVersion, and SurfaceOrientation::zplus.
|
inline |
|
inline |
Definition at line 54 of file CSCCLCTData.h.
References edmIntegrityCheck::d, ntuplemaker::iline, and alignCSCRings::s.
Referenced by add(), check(), comparatorDigis(), and zero().
|
inline |
void CSCCLCTData::dump | ( | void | ) | const |
|
inline |
Definition at line 47 of file CSCCLCTData.h.
References PVValHelper::add().
Referenced by CSCCLCTData().
|
static |
Definition at line 397 of file CSCCLCTData.cc.
References add(), and comparatorDigis().
|
inlinestatic |
turns on/off debug flag for this class
Definition at line 35 of file CSCCLCTData.h.
References debug, and CSCCLCTDataWord::value().
Referenced by CSCDCCUnpacker::CSCDCCUnpacker().
|
inline |
in 16-bit words
Definition at line 46 of file CSCCLCTData.h.
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(), rrapi.RRApi::dprint(), util.rrapi.RRApi::dprint(), pkg.AbstractPkg::generate(), util.rrapi.RRApi::get(), rrapi.RRApi::get(), pkg.AbstractPkg::get_kwds(), and pkg.AbstractPkg::write().
|
private |
Definition at line 93 of file CSCCLCTData.h.
Referenced by check(), comparatorDigis(), and zero().
|
private |
Definition at line 94 of file CSCCLCTData.h.
Referenced by add(), check(), comparatorDigis(), and zero().
|
private |
Definition at line 95 of file CSCCLCTData.h.
Referenced by CSCCLCTData(), and dump().
|
private |
Definition at line 96 of file CSCCLCTData.h.
Referenced by CSCCLCTData(), and dump().
|
private |
Definition at line 97 of file CSCCLCTData.h.
Referenced by add(), comparatorDigis(), and CSCCLCTData().