1 #ifndef DQM_SiStripMonitorHardware_SiStripSpyUtilities_H 2 #define DQM_SiStripMonitorHardware_SiStripSpyUtilities_H 19 namespace SpyUtilities {
42 bool aPrintDebug =
false);
45 uint16_t& firstHeaderBit,
68 const uint16_t aFirstBits);
72 const uint16_t aFirstBits);
76 void fedIndex(uint32_t aFedIndex, uint16_t& aFedId, uint16_t& aFedChannel);
81 std::vector<uint32_t>& fedMajoritiesToFill);
86 #endif // DQM_SiStripMonitorHardware_SiStripSpyUtilities_H const uint16_t findHeaderBits(const edm::DetSetVector< SiStripRawDigi >::detset &channelDigis, const uint16_t threshold)
void fillFEDMajorities(const std::map< uint32_t, uint32_t > &channelValues, std::vector< uint32_t > &fedMajoritiesToFill)
std::pair< uint8_t, uint8_t > apvAddress
const bool isValid(const Frame &aFrame, const FrameQuality &aQuality, const uint16_t aExpectedPos)
std::string print(const Frame &aFrame, std::string aErr)
const Frame extractFrameInfo(const edm::DetSetVector< SiStripRawDigi >::detset &channelDigis, bool aPrintDebug=false)
void fedIndex(uint32_t aFedIndex, uint16_t &aFedId, uint16_t &aFedChannel)
const uint16_t threshold(const Frame &aFrame)
const uint16_t range(const Frame &aFrame)
std::pair< bool, bool > apvErrorBit
void getMajorityHeader(const edm::DetSetVector< SiStripRawDigi > *aInputDigis, uint16_t &firstHeaderBit, bool printResult=true)
const uint8_t extractAPVaddress(const Frame &aFrame)
std::pair< uint16_t, uint32_t > findMajorityValue(std::vector< uint16_t > &values, const uint16_t aFedId=0)
const std::pair< bool, bool > findAPVErrorBits(const edm::DetSetVector< SiStripRawDigi >::detset &channelDigis, const uint16_t threshold, const uint16_t aFirstBits)
const uint16_t findTrailerBits(const edm::DetSetVector< SiStripRawDigi >::detset &channelDigis, const uint16_t threshold)
const std::pair< uint8_t, uint8_t > findAPVAddresses(const edm::DetSetVector< SiStripRawDigi >::detset &channelDigis, const uint16_t threshold, const uint16_t aFirstBits)