Go to the documentation of this file. 1 #ifndef DQM_SiStripMonitorHardware_SiStripSpyUtilities_H
2 #define DQM_SiStripMonitorHardware_SiStripSpyUtilities_H
58 bool aPrintDebug =
false);
61 uint16_t& firstHeaderBit,
68 static const uint16_t
range(
const Frame& aFrame);
84 const uint16_t aFirstBits);
89 const uint16_t aFirstBits);
93 static void fedIndex(uint32_t aFedIndex, uint16_t& aFedId, uint16_t& aFedChannel);
95 static std::pair<uint16_t, uint32_t>
findMajorityValue(std::vector<uint16_t>&
values,
const uint16_t aFedId = 0);
98 std::vector<uint32_t>& fedMajoritiesToFill);
120 #endif // DQM_SiStripMonitorHardware_SiStripSpyUtilities_H
static const bool isValid(const Frame &aFrame, const FrameQuality &aQuality, const uint16_t aExpectedPos)
edm::ESHandle< SiStripNoises > noiseHandle_
static const std::pair< bool, bool > findAPVErrorBits(const edm::DetSetVector< SiStripRawDigi >::detset &channelDigis, const uint16_t threshold, const uint16_t aFirstBits)
std::pair< uint8_t, uint8_t > apvAddress
static const std::pair< uint8_t, uint8_t > findAPVAddresses(const edm::DetSetVector< SiStripRawDigi >::detset &channelDigis, const uint16_t threshold, const uint16_t aFirstBits)
edm::ESHandle< SiStripNoises > getNoiseHandle(const edm::EventSetup &eventSetup)
const SiStripDetCabling * getDetCabling(const edm::EventSetup &)
Updates the det cabling object from the DB.
edm::ESHandle< SiStripPedestals > getPedestalHandle(const edm::EventSetup &eventSetup)
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses,...
static const uint16_t findHeaderBits(const edm::DetSetVector< SiStripRawDigi >::detset &channelDigis, const uint16_t threshold)
uint32_t cacheIdDet_
DB cache ID used to establish if the cabling has changed during the run.
static void fillFEDMajorities(const std::map< uint32_t, uint32_t > &channelValues, std::vector< uint32_t > &fedMajoritiesToFill)
const SiStripDetCabling * detCabling_
The cabling object.
static const Frame extractFrameInfo(const edm::DetSetVector< SiStripRawDigi >::detset &channelDigis, bool aPrintDebug=false)
static const uint16_t range(const Frame &aFrame)
static std::pair< uint16_t, uint32_t > findMajorityValue(std::vector< uint16_t > &values, const uint16_t aFedId=0)
static const uint16_t threshold(const Frame &aFrame)
const SiStripFedCabling * cabling_
The cabling object.
const SiStripFedCabling * getCabling(const edm::EventSetup &)
Updates the cabling object from the DB.
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)
std::pair< bool, bool > apvErrorBit
edm::ESHandle< SiStripPedestals > pedsHandle_
static std::string print(const Frame &aFrame, std::string aErr)
static const uint8_t extractAPVaddress(const Frame &aFrame)
uint32_t cacheId_
DB cache ID used to establish if the cabling has changed during the run.
static void fedIndex(uint32_t aFedIndex, uint16_t &aFedId, uint16_t &aFedChannel)