CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Static Public Member Functions | Private Attributes
sistrip::SpyUtilities Class Reference

#include <SiStripSpyUtilities.h>

Classes

struct  Frame
 
struct  FrameQuality
 

Public Member Functions

const SiStripFedCablinggetCabling (const edm::EventSetup &)
 Updates the cabling object from the DB. More...
 
const SiStripDetCablinggetDetCabling (const edm::EventSetup &)
 Updates the det cabling object from the DB. More...
 
edm::ESHandle< SiStripNoisesgetNoiseHandle (const edm::EventSetup &eventSetup)
 
edm::ESHandle< SiStripPedestalsgetPedestalHandle (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 SiStripFedCablingcabling_
 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 SiStripDetCablingdetCabling_
 The cabling object. More...
 
uint32_t noiseCacheId_
 
edm::ESHandle< SiStripNoisesnoiseHandle_
 
uint32_t pedsCacheId_
 
edm::ESHandle< SiStripPedestalspedsHandle_
 

Detailed Description

Definition at line 25 of file SiStripSpyUtilities.h.

Constructor & Destructor Documentation

sistrip::SpyUtilities::SpyUtilities ( )

Definition at line 21 of file SiStripSpyUtilities.cc.

sistrip::SpyUtilities::~SpyUtilities ( )

Definition at line 34 of file SiStripSpyUtilities.cc.

Member Function Documentation

const uint8_t sistrip::SpyUtilities::extractAPVaddress ( const Frame aFrame)
static

Definition at line 196 of file SiStripSpyUtilities.cc.

const SpyUtilities::Frame sistrip::SpyUtilities::extractFrameInfo ( const edm::DetSetVector< SiStripRawDigi >::detset &  channelDigis,
bool  aPrintDebug = false 
)
static

Definition at line 121 of file SiStripSpyUtilities.cc.

void sistrip::SpyUtilities::fedIndex ( uint32_t  aFedIndex,
uint16_t &  aFedId,
uint16_t &  aFedChannel 
)
static

Definition at line 433 of file SiStripSpyUtilities.cc.

void sistrip::SpyUtilities::fillFEDMajorities ( const std::map< uint32_t, uint32_t > &  channelValues,
std::vector< uint32_t > &  fedMajoritiesToFill 
)
static

Definition at line 485 of file SiStripSpyUtilities.cc.

const std::pair< uint8_t, uint8_t > sistrip::SpyUtilities::findAPVAddresses ( const edm::DetSetVector< SiStripRawDigi >::detset &  channelDigis,
const uint16_t  threshold,
const uint16_t  aFirstBits 
)
static

Definition at line 376 of file SiStripSpyUtilities.cc.

const std::pair< bool, bool > sistrip::SpyUtilities::findAPVErrorBits ( const edm::DetSetVector< SiStripRawDigi >::detset &  channelDigis,
const uint16_t  threshold,
const uint16_t  aFirstBits 
)
static

Definition at line 344 of file SiStripSpyUtilities.cc.

const uint16_t sistrip::SpyUtilities::findHeaderBits ( const edm::DetSetVector< SiStripRawDigi >::detset &  channelDigis,
const uint16_t  threshold 
)
static

Definition at line 275 of file SiStripSpyUtilities.cc.

std::pair< uint16_t, uint32_t > sistrip::SpyUtilities::findMajorityValue ( std::vector< uint16_t > &  values,
const uint16_t  aFedId = 0 
)
static

Definition at line 450 of file SiStripSpyUtilities.cc.

const uint16_t sistrip::SpyUtilities::findTrailerBits ( const edm::DetSetVector< SiStripRawDigi >::detset &  channelDigis,
const uint16_t  threshold 
)
static

Definition at line 305 of file SiStripSpyUtilities.cc.

const SiStripFedCabling * sistrip::SpyUtilities::getCabling ( const edm::EventSetup setup)

Updates the cabling object from the DB.

Definition at line 40 of file SiStripSpyUtilities.cc.

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.

void sistrip::SpyUtilities::getMajorityHeader ( const edm::DetSetVector< SiStripRawDigi > *  aInputDigis,
uint16_t &  firstHeaderBit,
bool  printResult = true 
)
static

Definition at line 209 of file SiStripSpyUtilities.cc.

edm::ESHandle< SiStripNoises > sistrip::SpyUtilities::getNoiseHandle ( const edm::EventSetup eventSetup)

Definition at line 107 of file SiStripSpyUtilities.cc.

edm::ESHandle< SiStripPedestals > sistrip::SpyUtilities::getPedestalHandle ( const edm::EventSetup eventSetup)

Definition at line 94 of file SiStripSpyUtilities.cc.

const bool sistrip::SpyUtilities::isValid ( const Frame aFrame,
const FrameQuality aQuality,
const uint16_t  aExpectedPos 
)
static

Definition at line 242 of file SiStripSpyUtilities.cc.

Referenced by core.AutoHandle.AutoHandle::ReallyLoad().

std::string sistrip::SpyUtilities::print ( const Frame aFrame,
std::string  aErr 
)
static

Definition at line 410 of file SiStripSpyUtilities.cc.

const uint16_t sistrip::SpyUtilities::range ( const Frame aFrame)
static

Definition at line 185 of file SiStripSpyUtilities.cc.

const uint16_t sistrip::SpyUtilities::threshold ( const Frame aFrame)
static

Definition at line 191 of file SiStripSpyUtilities.cc.

Member Data Documentation

const SiStripFedCabling* sistrip::SpyUtilities::cabling_
private

The cabling object.

Definition at line 112 of file SiStripSpyUtilities.h.

uint32_t sistrip::SpyUtilities::cacheId_
private

DB cache ID used to establish if the cabling has changed during the run.

Definition at line 113 of file SiStripSpyUtilities.h.

uint32_t sistrip::SpyUtilities::cacheIdDet_
private

DB cache ID used to establish if the cabling has changed during the run.

Definition at line 117 of file SiStripSpyUtilities.h.

const SiStripDetCabling* sistrip::SpyUtilities::detCabling_
private

The cabling object.

Definition at line 116 of file SiStripSpyUtilities.h.

uint32_t sistrip::SpyUtilities::noiseCacheId_
private

Definition at line 124 of file SiStripSpyUtilities.h.

edm::ESHandle<SiStripNoises> sistrip::SpyUtilities::noiseHandle_
private

Definition at line 125 of file SiStripSpyUtilities.h.

uint32_t sistrip::SpyUtilities::pedsCacheId_
private

Definition at line 120 of file SiStripSpyUtilities.h.

edm::ESHandle<SiStripPedestals> sistrip::SpyUtilities::pedsHandle_
private

Definition at line 121 of file SiStripSpyUtilities.h.