#include <CSCCLCTData.h>
Public Member Functions | |
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) | |
CSCCLCTData (int ncfebs, int ntbins, const unsigned short *e0bbuf) | |
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 [5 *6 *32] |
Static Private Attributes | |
static bool | debug = false |
Definition at line 20 of file CSCCLCTData.h.
|
explicit |
CSCCLCTData::CSCCLCTData | ( | int | ncfebs, |
int | ntbins | ||
) |
CSCCLCTData::CSCCLCTData | ( | int | ncfebs, |
int | ntbins, | ||
const unsigned short * | e0bbuf | ||
) |
void CSCCLCTData::add | ( | const CSCComparatorDigi & | digi, |
int | layer | ||
) |
TODO for packing. Doesn't do flipping yet.
Definition at line 183 of file CSCCLCTData.cc.
References dataWord(), CSCComparatorDigi::getComparator(), CSCComparatorDigi::getStrip(), CSCComparatorDigi::getTimeBinsOn(), ntbins_, CSCCLCTDataWord::set(), and strip().
Referenced by CSCEventData::add(), and selfTest().
|
inline |
Definition at line 58 of file CSCCLCTData.h.
References dataWord(), and CSCCLCTDataWord::value().
Referenced by comparatorDigis().
bool CSCCLCTData::check | ( | ) | const |
first do some checks
Definition at line 212 of file CSCCLCTData.cc.
References CSCCLCTDataWord::cfeb_, dataWord(), debug, LogTrace, ncfebs_, ntbins_, query::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 167 of file CSCCLCTData.cc.
References ncfebs_, and query::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 58 of file CSCCLCTData.cc.
References bitValue(), CSCCLCTDataWord::cfeb_, dataWord(), debug, CSCDetId::endcap(), CSCDetId::layer(), LogTrace, ntbins_, convertSQLitetoXML_cfg::output, query::result, CSCDetId::ring(), CSCDetId::station(), strip(), CSCCLCTDataWord::tbin_, and SurfaceOrientation::zplus.
|
inline |
|
inline |
Definition at line 46 of file CSCCLCTData.h.
References nlines(), and theData.
Referenced by add(), bitValue(), check(), comparatorDigis(), dataWord(), and zero().
|
inline |
Definition at line 53 of file CSCCLCTData.h.
References dataWord(), ntuplemaker::iline, and ntbins_.
void CSCCLCTData::dump | ( | void | ) | const |
|
inline |
Definition at line 41 of file CSCCLCTData.h.
References ncfebs_, and ntbins_.
Referenced by CSCCLCTData(), and dataWord().
|
static |
Definition at line 248 of file CSCCLCTData.cc.
References add(), and comparatorDigis().
|
inlinestatic |
turns on/off debug flag for this class
Definition at line 29 of file CSCCLCTData.h.
References debug, and relativeConstraints::value.
Referenced by CSCDCCUnpacker::CSCDCCUnpacker().
|
inline |
in 16-bit words
Definition at line 40 of file CSCCLCTData.h.
References size_.
Referenced by CSCTMBData::pack(), and CSCTMBData::UnpackTMB().
|
private |
Definition at line 42 of file CSCCLCTData.cc.
References dataWord(), ncfebs_, and ntbins_.
Referenced by CSCCLCTData().
|
staticprivate |
Definition at line 77 of file CSCCLCTData.h.
Referenced by check(), comparatorDigis(), and setDebug().
|
private |
Definition at line 78 of file CSCCLCTData.h.
Referenced by check(), comparatorDigis(), nlines(), and zero().
|
private |
Definition at line 79 of file CSCCLCTData.h.
Referenced by add(), check(), comparatorDigis(), dataWord(), nlines(), and zero().
|
private |
Definition at line 80 of file CSCCLCTData.h.
Referenced by CSCCLCTData(), dump(), and sizeInWords().
|
private |
Definition at line 81 of file CSCCLCTData.h.
Referenced by CSCCLCTData(), data(), dataWord(), and dump().