#include <CSCGEMData.h>
Public Member Functions | |
void | addEtaPadCluster (const GEMPadDigiCluster &digi, int gem_chamber, int eta_roll) |
Add and pack GEMPadDigiCluster digis. More... | |
bool | check () const |
CSCGEMData (int ntbins=12, int gem_fibers_mask=0xf) | |
default constructor More... | |
CSCGEMData (const unsigned short *c04buf, int length, int gem_fibers_mask=0xf) | |
unsigned short * | data () |
std::vector< GEMPadDigiCluster > | digis (int gem_chamber) const |
std::vector< GEMPadDigiCluster > | etaDigis (int gem_chamber, int eta, int correctionToALCTbx) const |
int | gemFibersMask () const |
int | nTbins () const |
int | numGEMEnabledFibers () const |
int | numGEMs () const |
void | print () const |
int | sizeInWords () const |
Static Public Member Functions | |
static void | setDebug (bool debugValue) |
turns on the debug flag for this class More... | |
Private Member Functions | |
int | getPartitionNumber (int address, int nPads) const |
int | getPartitionStripNumber (int address, int nPads, int etaPart) const |
Private Attributes | |
int | gems_enabled_ |
int | ngems_ |
int | ntbins_ |
int | size_ |
unsigned short | theData [8 *2 *32+2] |
Static Private Attributes | |
static std::atomic< bool > | debug {false} |
Definition at line 11 of file CSCGEMData.h.
CSCGEMData::CSCGEMData | ( | int | ntbins = 12 , |
int | gem_fibers_mask = 0xf |
||
) |
default constructor
initialize GEM data
Definition at line 18 of file CSCGEMData.cc.
References gems_enabled_, mps_fire::i, ngems_, ntbins_, size_, and theData.
CSCGEMData::CSCGEMData | ( | const unsigned short * | c04buf, |
int | length, | ||
int | gem_fibers_mask = 0xf |
||
) |
Definition at line 40 of file CSCGEMData.cc.
References visDQMUpload::buf, gems_enabled_, ngems_, ntbins_, size_, and theData.
void CSCGEMData::addEtaPadCluster | ( | const GEMPadDigiCluster & | digi, |
int | gem_chamber, | ||
int | eta_roll | ||
) |
Add and pack GEMPadDigiCluster digis.
Add/pack GEMPadDigiCluster digi trigger objects per eta/roll gem_chamber - GEM GE11 layer gemA/B [0,1] eta_roll - GEM eta/roll 8 rolls per GEM layer [0-7]
Check that bx < GEM data max allocated tbins and that gem_chamber/layer is in 0,1 range
search for first free/empty cluster word
fill free cluster word if it was found
Definition at line 191 of file CSCGEMData.cc.
References GEMPadDigiCluster::bx(), simKBmtfDigis_cfi::bx, PVValHelper::eta, ntbins_, GEMPadDigiCluster::pads(), and theData.
Referenced by CSCEventData::add().
|
inline |
|
inline |
std::vector< GEMPadDigiCluster > CSCGEMData::digis | ( | int | gem_chamber | ) | const |
GEM data format v2
GEM data format v1 It is not used in the production Keeping this commented code just for v1 unpacking algo reference
Definition at line 67 of file CSCGEMData.cc.
References debug, TauDecayModes::dec, PVValHelper::eta, mps_fire::i, LogTrace, beam_dqm_sourceclient-live_cfg::maxClusters, ntbins_, mps_fire::result, theData, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by cscdqm::EventProcessor::processCSC().
std::vector< GEMPadDigiCluster > CSCGEMData::etaDigis | ( | int | gem_chamber, |
int | eta_roll, | ||
int | alctMatchTime | ||
) | const |
Unpack GEMPadDigiCluster digi trigger objects per eta/roll gem_chamber - GEM GE11 layer gemA/B [0,1] eta_roll - GEM eta/roll 8 rolls per GEM layer [0-7]
GEM data format v2
Definition at line 148 of file CSCGEMData.cc.
References debug, TauDecayModes::dec, PVValHelper::eta, mps_fire::i, LogTrace, beam_dqm_sourceclient-live_cfg::maxClusters, ntbins_, mps_fire::result, GEMPadDigiCluster::setAlctMatchTime(), theData, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
|
private |
|
private |
Definition at line 63 of file CSCGEMData.cc.
|
inline |
|
inline |
|
inline |
Definition at line 22 of file CSCGEMData.h.
Referenced by cscdqm::EventProcessor::processCSC().
void CSCGEMData::print | ( | void | ) | const |
Definition at line 54 of file CSCGEMData.cc.
References mps_splice::line, LogTrace, size_, and theData.
|
inlinestatic |
turns on the debug flag for this class
Definition at line 32 of file CSCGEMData.h.
References debug.
|
inline |
Definition at line 21 of file CSCGEMData.h.
References size_.
Referenced by CSCTMBData::CSCTMBData(), CSCTMBData::pack(), and CSCTMBData::UnpackTMB().
|
staticprivate |
Definition at line 46 of file CSCGEMData.h.
Referenced by digis(), util.rrapi.RRApi::dprint(), rrapi.RRApi::dprint(), etaDigis(), 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 50 of file CSCGEMData.h.
Referenced by CSCGEMData(), and gemFibersMask().
|
private |
Definition at line 51 of file CSCGEMData.h.
Referenced by CSCGEMData(), and numGEMEnabledFibers().
|
private |
Definition at line 49 of file CSCGEMData.h.
Referenced by addEtaPadCluster(), CSCGEMData(), digis(), etaDigis(), and nTbins().
|
private |
Definition at line 52 of file CSCGEMData.h.
Referenced by check(), CSCGEMData(), print(), and sizeInWords().
|
private |
Definition at line 53 of file CSCGEMData.h.
Referenced by addEtaPadCluster(), check(), CSCGEMData(), data(), digis(), etaDigis(), and print().