#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 25 of file SiStripSpyUtilities.h.
sistrip::SpyUtilities::SpyUtilities | ( | ) |
Definition at line 21 of file SiStripSpyUtilities.cc.
sistrip::SpyUtilities::~SpyUtilities | ( | ) |
Definition at line 34 of file SiStripSpyUtilities.cc.
References cabling_, and detCabling_.
|
static |
Definition at line 196 of file SiStripSpyUtilities.cc.
References sistrip::SpyUtilities::Frame::apvAddress, and sistrip::SpyUtilities::Frame::apvErrorBit.
|
static |
Definition at line 121 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 >::end(), findAPVAddresses(), findAPVErrorBits(), findHeaderBits(), findTrailerBits(), sistrip::SpyUtilities::Frame::firstHeaderBit, sistrip::SpyUtilities::Frame::firstTrailerBit, bookConverter::max, min(), edm::DetSet< T >::size(), and threshold().
Referenced by SiStripSpyMonitorModule::analyze(), sistrip::SpyDigiConverter::extractPayloadDigis(), and getMajorityHeader().
|
static |
Definition at line 433 of file SiStripSpyUtilities.cc.
References sistrip::FED_ID_MAX, sistrip::FED_ID_MIN, sistrip::FEDCH_PER_FED, and sistrip::invalid_.
Referenced by sistrip::FEDEmulatorModule::produce().
|
static |
Definition at line 485 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 376 of file SiStripSpyUtilities.cc.
References edm::DetSet< T >::begin(), prof2calltree::count, edm::DetSet< T >::end(), i, sistrip::SPY_SAMPLES_PER_CHANNEL, and threshold().
Referenced by extractFrameInfo().
|
static |
Definition at line 344 of file SiStripSpyUtilities.cc.
References edm::DetSet< T >::begin(), prof2calltree::count, edm::DetSet< T >::end(), if(), sistrip::SPY_SAMPLES_PER_CHANNEL, and threshold().
Referenced by extractFrameInfo().
|
static |
Definition at line 275 of file SiStripSpyUtilities.cc.
References edm::DetSet< T >::begin(), prof2calltree::count, edm::DetSet< T >::end(), sistrip::SPY_SAMPLES_PER_CHANNEL, and threshold().
Referenced by extractFrameInfo().
|
static |
Definition at line 450 of file SiStripSpyUtilities.cc.
References prof2calltree::count, and python.multivaluedict::sort().
Referenced by fillFEDMajorities(), getMajorityHeader(), and sistrip::SpyDigiConverter::processFED().
|
static |
Definition at line 305 of file SiStripSpyUtilities.cc.
References edm::DetSet< T >::begin(), prof2calltree::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 40 of file SiStripSpyUtilities.cc.
References trackerHits::c, cabling_, cacheId_, edm::EventSetup::get(), and edm::ESHandle< class >::product().
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 78 of file SiStripSpyUtilities.cc.
References trackerHits::c, cacheIdDet_, detCabling_, edm::EventSetup::get(), and edm::ESHandle< class >::product().
Referenced by SiStripSpyDisplayModule::analyze().
|
static |
Definition at line 209 of file SiStripSpyUtilities.cc.
References edm::DetSetVector< T >::begin(), edm::DetSetVector< T >::end(), extractFrameInfo(), findMajorityValue(), sistrip::SpyUtilities::Frame::firstHeaderBit, 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 107 of file SiStripSpyUtilities.cc.
References edm::EventSetup::get(), noiseCacheId_, and noiseHandle_.
Referenced by sistrip::FEDEmulatorModule::produce().
edm::ESHandle< SiStripPedestals > sistrip::SpyUtilities::getPedestalHandle | ( | const edm::EventSetup & | eventSetup | ) |
Definition at line 94 of file SiStripSpyUtilities.cc.
References edm::EventSetup::get(), pedsCacheId_, and pedsHandle_.
Referenced by sistrip::FEDEmulatorModule::produce().
|
static |
Definition at line 242 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 sistrip::SpyDigiConverter::extractPayloadDigis().
|
static |
Definition at line 410 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.
Referenced by sistrip::SpyDigiConverter::extractPayloadDigis().
|
static |
Definition at line 185 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 191 of file SiStripSpyUtilities.cc.
References range().
Referenced by SiStripSpyMonitorModule::analyze(), extractFrameInfo(), findAPVAddresses(), findAPVErrorBits(), findHeaderBits(), and findTrailerBits().
|
private |
The cabling object.
Definition at line 112 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 113 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 117 of file SiStripSpyUtilities.h.
Referenced by getDetCabling().
|
private |
The cabling object.
Definition at line 116 of file SiStripSpyUtilities.h.
Referenced by getDetCabling(), and ~SpyUtilities().
|
private |
Definition at line 124 of file SiStripSpyUtilities.h.
Referenced by getNoiseHandle().
|
private |
Definition at line 125 of file SiStripSpyUtilities.h.
Referenced by getNoiseHandle().
|
private |
Definition at line 120 of file SiStripSpyUtilities.h.
Referenced by getPedestalHandle().
|
private |
Definition at line 121 of file SiStripSpyUtilities.h.
Referenced by getPedestalHandle().