#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.
CSCCLCTData::CSCCLCTData | ( | int | ncfebs, |
int | ntbins, | ||
int | firmware_version = 2007 |
||
) |
Definition at line 27 of file CSCCLCTData.cc.
CSCCLCTData::CSCCLCTData | ( | int | ncfebs, |
int | ntbins, | ||
const unsigned short * | e0bbuf, | ||
int | firmware_version = 2007 |
||
) |
Definition at line 37 of file CSCCLCTData.cc.
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.
Referenced by counter.Counter::register().
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.
Referenced by counter.Counter::register().
|
inline |
bool CSCCLCTData::check | ( | ) | const |
first do some checks
Definition at line 359 of file CSCCLCTData.cc.
std::vector< CSCComparatorDigi > CSCCLCTData::comparatorDigis | ( | int | layer | ) |
layers count from one
Definition at line 206 of file CSCCLCTData.cc.
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.
|
inline |
|
inline |
Definition at line 54 of file CSCCLCTData.h.
References assert(), ztail::d, ntuplemaker::iline, nlines(), alignCSCRings::s, and theData.
Referenced by bitValue(), and dataWord().
|
inline |
Definition at line 63 of file CSCCLCTData.h.
References dataWord(), ntuplemaker::iline, and ntbins_.
void CSCCLCTData::dump | ( | void | ) | const |
Definition at line 387 of file CSCCLCTData.cc.
|
inline |
Definition at line 47 of file CSCCLCTData.h.
References ncfebs_, and ntbins_.
Referenced by dataWord().
|
static |
Definition at line 397 of file CSCCLCTData.cc.
|
inlinestatic |
turns on/off debug flag for this class
Definition at line 35 of file CSCCLCTData.h.
References debug, and relativeConstraints::value.
|
inline |
|
private |
Definition at line 49 of file CSCCLCTData.cc.
|
staticprivate |
Definition at line 90 of file CSCCLCTData.h.
Referenced by setDebug().
|
private |
Definition at line 93 of file CSCCLCTData.h.
Referenced by nlines().
|
private |
Definition at line 94 of file CSCCLCTData.h.
Referenced by dataWord(), and nlines().
|
private |
Definition at line 95 of file CSCCLCTData.h.
Referenced by sizeInWords().
|
private |
Definition at line 96 of file CSCCLCTData.h.
Referenced by data(), and dataWord().
|
private |
Definition at line 97 of file CSCCLCTData.h.