#include <SiStripSpyUtilities.h>
Classes | |
struct | Frame |
struct | FrameQuality |
Public Member Functions | |
const SiStripFedCabling * | getCabling (const edm::EventSetup &) |
Updates the cabling object from the DB. More... | |
const SiStripDetCabling * | getDetCabling (const edm::EventSetup &) |
Updates the det cabling object from the DB. More... | |
edm::ESHandle< SiStripNoises > | getNoiseHandle (const edm::EventSetup &eventSetup) |
edm::ESHandle< SiStripPedestals > | getPedestalHandle (const edm::EventSetup &eventSetup) |
SpyUtilities () | |
~SpyUtilities () | |
Static Public Member Functions | |
static const uint8_t | extractAPVaddress (const Frame &aFrame) |
static const Frame | extractFrameInfo (const edm::DetSetVector< SiStripRawDigi >::detset &channelDigis, bool aPrintDebug=false) |
static void | fedIndex (uint32_t aFedIndex, uint16_t &aFedId, uint16_t &aFedChannel) |
static void | fillFEDMajorities (const std::map< uint32_t, uint32_t > &channelValues, std::vector< uint32_t > &fedMajoritiesToFill) |
static const std::pair< uint8_t, uint8_t > | findAPVAddresses (const edm::DetSetVector< SiStripRawDigi >::detset &channelDigis, const uint16_t threshold, const uint16_t aFirstBits) |
static const std::pair< bool, bool > | findAPVErrorBits (const edm::DetSetVector< SiStripRawDigi >::detset &channelDigis, const uint16_t threshold, const uint16_t aFirstBits) |
static const uint16_t | findHeaderBits (const edm::DetSetVector< SiStripRawDigi >::detset &channelDigis, const uint16_t threshold) |
static std::pair< uint16_t, uint32_t > | findMajorityValue (std::vector< uint16_t > &values, const uint16_t aFedId=0) |
static const uint16_t | findTrailerBits (const edm::DetSetVector< SiStripRawDigi >::detset &channelDigis, const uint16_t threshold) |
static void | getMajorityHeader (const edm::DetSetVector< SiStripRawDigi > *aInputDigis, uint16_t &firstHeaderBit, bool printResult=true) |
static const bool | isValid (const Frame &aFrame, const FrameQuality &aQuality, const uint16_t aExpectedPos) |
static std::string | print (const Frame &aFrame, std::string aErr) |
static const uint16_t | range (const Frame &aFrame) |
static const uint16_t | threshold (const Frame &aFrame) |
Private Attributes | |
const SiStripFedCabling * | cabling_ |
The cabling object. More... | |
uint32_t | cacheId_ |
DB cache ID used to establish if the cabling has changed during the run. More... | |
uint32_t | cacheIdDet_ |
DB cache ID used to establish if the cabling has changed during the run. More... | |
const SiStripDetCabling * | detCabling_ |
The cabling object. More... | |
uint32_t | noiseCacheId_ |
edm::ESHandle< SiStripNoises > | noiseHandle_ |
uint32_t | pedsCacheId_ |
edm::ESHandle< SiStripPedestals > | pedsHandle_ |
Definition at line 24 of file SiStripSpyUtilities.h.
sistrip::SpyUtilities::SpyUtilities | ( | ) |
Definition at line 20 of file SiStripSpyUtilities.cc.
sistrip::SpyUtilities::~SpyUtilities | ( | ) |
Definition at line 30 of file SiStripSpyUtilities.cc.
References cabling_, and detCabling_.
|
static |
Definition at line 185 of file SiStripSpyUtilities.cc.
References sistrip::SpyUtilities::Frame::apvAddress, and sistrip::SpyUtilities::Frame::apvErrorBit.
|
static |
Definition at line 109 of file SiStripSpyUtilities.cc.
References sistrip::SpyUtilities::Frame::apvAddress, sistrip::SpyUtilities::Frame::apvErrorBit, sistrip::SpyUtilities::Frame::baseline, edm::DetSet< T >::begin(), sistrip::SpyUtilities::Frame::detId, edm::DetSet< T >::detId(), sistrip::SpyUtilities::Frame::digitalHigh, sistrip::SpyUtilities::Frame::digitalLow, edm::DetSet< T >::empty(), edm::DetSet< T >::end(), findAPVAddresses(), findAPVErrorBits(), findHeaderBits(), findTrailerBits(), sistrip::SpyUtilities::Frame::firstHeaderBit, sistrip::SpyUtilities::Frame::firstTrailerBit, edm::isDebugEnabled(), LogDebug, SiStripPI::max, min(), edm::DetSet< T >::size(), threshold(), and heppy_batch::val.
Referenced by SiStripSpyMonitorModule::analyze(), sistrip::SpyDigiConverter::extractPayloadDigis(), and getMajorityHeader().
|
static |
Definition at line 398 of file SiStripSpyUtilities.cc.
References sistrip::FED_ID_MAX, sistrip::FEDCH_PER_FED, and sistrip::invalid_.
Referenced by sistrip::FEDEmulatorModule::produce().
|
static |
Definition at line 439 of file SiStripSpyUtilities.cc.
References sistrip::FED_ID_MAX, sistrip::FED_ID_MIN, sistrip::FEDCH_PER_FED, and findMajorityValue().
Referenced by sistrip::SpyEventMatcher::getCounters().
|
static |
Definition at line 348 of file SiStripSpyUtilities.cc.
References edm::DetSet< T >::begin(), submitPVResolutionJobs::count, edm::DetSet< T >::end(), mps_fire::i, sistrip::SPY_SAMPLES_PER_CHANNEL, and threshold().
Referenced by extractFrameInfo().
|
static |
Definition at line 314 of file SiStripSpyUtilities.cc.
References edm::DetSet< T >::begin(), submitPVResolutionJobs::count, edm::DetSet< T >::end(), sistrip::SPY_SAMPLES_PER_CHANNEL, and threshold().
Referenced by extractFrameInfo().
|
static |
Definition at line 245 of file SiStripSpyUtilities.cc.
References edm::DetSet< T >::begin(), submitPVResolutionJobs::count, edm::DetSet< T >::end(), sistrip::SPY_SAMPLES_PER_CHANNEL, and threshold().
Referenced by extractFrameInfo().
|
static |
Definition at line 409 of file SiStripSpyUtilities.cc.
References submitPVResolutionJobs::count, and contentValuesCheck::values.
Referenced by fillFEDMajorities(), getMajorityHeader(), and sistrip::SpyDigiConverter::processFED().
|
static |
Definition at line 276 of file SiStripSpyUtilities.cc.
References edm::DetSet< T >::begin(), submitPVResolutionJobs::count, edm::DetSet< T >::end(), sistrip::SPY_SAMPLES_PER_CHANNEL, sistrip::STRIPS_PER_FEDCH, and threshold().
Referenced by extractFrameInfo().
const SiStripFedCabling * sistrip::SpyUtilities::getCabling | ( | const edm::EventSetup & | setup | ) |
Updates the cabling object from the DB.
Definition at line 37 of file SiStripSpyUtilities.cc.
References HltBtagPostValidation_cff::c, cabling_, cacheId_, get, and singleTopDQM_cfi::setup.
Referenced by SiStripSpyMonitorModule::analyze(), sistrip::SpyDigiConverterModule::produce(), sistrip::SpyUnpackerModule::produce(), and sistrip::FEDEmulatorModule::produce().
const SiStripDetCabling * sistrip::SpyUtilities::getDetCabling | ( | const edm::EventSetup & | setup | ) |
Updates the det cabling object from the DB.
Definition at line 73 of file SiStripSpyUtilities.cc.
References HltBtagPostValidation_cff::c, cacheIdDet_, detCabling_, get, and singleTopDQM_cfi::setup.
Referenced by SiStripSpyDisplayModule::analyze().
|
static |
Definition at line 195 of file SiStripSpyUtilities.cc.
References edm::DetSetVector< T >::begin(), edm::DetSetVector< T >::end(), extractFrameInfo(), findMajorityValue(), sistrip::SpyUtilities::Frame::firstHeaderBit, cmsCodeRulesChecker::printResult, edm::DetSetVector< T >::size(), and sistrip::STRIPS_PER_FEDCH.
Referenced by SiStripSpyMonitorModule::analyze(), and sistrip::SpyDigiConverterModule::produce().
edm::ESHandle< SiStripNoises > sistrip::SpyUtilities::getNoiseHandle | ( | const edm::EventSetup & | eventSetup | ) |
Definition at line 98 of file SiStripSpyUtilities.cc.
References edm::EventSetup::get(), get, noiseCacheId_, and noiseHandle_.
Referenced by sistrip::FEDEmulatorModule::produce().
edm::ESHandle< SiStripPedestals > sistrip::SpyUtilities::getPedestalHandle | ( | const edm::EventSetup & | eventSetup | ) |
Definition at line 87 of file SiStripSpyUtilities.cc.
References edm::EventSetup::get(), get, pedsCacheId_, and pedsHandle_.
Referenced by sistrip::FEDEmulatorModule::produce().
|
static |
Definition at line 222 of file SiStripSpyUtilities.cc.
References sistrip::SpyUtilities::Frame::apvErrorBit, sistrip::SpyUtilities::Frame::digitalHigh, sistrip::SpyUtilities::Frame::digitalLow, sistrip::SpyUtilities::Frame::firstHeaderBit, sistrip::SpyUtilities::Frame::firstTrailerBit, sistrip::SpyUtilities::FrameQuality::maxDigiRange, sistrip::SpyUtilities::FrameQuality::maxTickHeight, sistrip::SpyUtilities::FrameQuality::maxZeroLight, sistrip::SpyUtilities::FrameQuality::minTickHeight, sistrip::SpyUtilities::FrameQuality::minZeroLight, range(), and sistrip::STRIPS_PER_FEDCH.
Referenced by ntupleDataFormat._Object::_checkIsValid(), sistrip::SpyDigiConverter::extractPayloadDigis(), and core.AutoHandle.AutoHandle::ReallyLoad().
|
static |
Definition at line 381 of file SiStripSpyUtilities.cc.
References sistrip::SpyUtilities::Frame::apvAddress, sistrip::SpyUtilities::Frame::apvErrorBit, sistrip::SpyUtilities::Frame::baseline, sistrip::SpyUtilities::Frame::detId, sistrip::SpyUtilities::Frame::digitalHigh, sistrip::SpyUtilities::Frame::digitalLow, sistrip::SpyUtilities::Frame::firstHeaderBit, and sistrip::SpyUtilities::Frame::firstTrailerBit.
|
static |
Definition at line 174 of file SiStripSpyUtilities.cc.
References sistrip::SpyUtilities::Frame::digitalHigh, and sistrip::SpyUtilities::Frame::digitalLow.
Referenced by SiStripSpyMonitorModule::analyze(), SPYHistograms::fillDetailedHistograms(), isValid(), and threshold().
|
static |
Definition at line 181 of file SiStripSpyUtilities.cc.
References range().
Referenced by SiStripSpyMonitorModule::analyze(), extractFrameInfo(), findAPVAddresses(), findAPVErrorBits(), findHeaderBits(), and findTrailerBits().
|
private |
The cabling object.
Definition at line 102 of file SiStripSpyUtilities.h.
Referenced by getCabling(), and ~SpyUtilities().
|
private |
DB cache ID used to establish if the cabling has changed during the run.
Definition at line 103 of file SiStripSpyUtilities.h.
Referenced by getCabling().
|
private |
DB cache ID used to establish if the cabling has changed during the run.
Definition at line 107 of file SiStripSpyUtilities.h.
Referenced by getDetCabling().
|
private |
The cabling object.
Definition at line 106 of file SiStripSpyUtilities.h.
Referenced by getDetCabling(), and ~SpyUtilities().
|
private |
Definition at line 114 of file SiStripSpyUtilities.h.
Referenced by getNoiseHandle().
|
private |
Definition at line 115 of file SiStripSpyUtilities.h.
Referenced by getNoiseHandle().
|
private |
Definition at line 110 of file SiStripSpyUtilities.h.
Referenced by getPedestalHandle().
|
private |
Definition at line 111 of file SiStripSpyUtilities.h.
Referenced by getPedestalHandle().