#include <CondFormats/SiPixelObjects/src/SiPixelGainCalibrationForHLT.cc>
Classes | |
struct | DecodingStructure |
struct | DetRegistry |
class | StrictWeakOrdering |
Public Types | |
typedef std::vector< char > ::const_iterator | ContainerIterator |
typedef std::pair < ContainerIterator, ContainerIterator > | Range |
typedef std::vector< DetRegistry > | Registry |
typedef Registry::const_iterator | RegistryIterator |
Public Member Functions | |
void | getDetIds (std::vector< uint32_t > &DetIds_) const |
float | getGain (const int &col, const int &row, const Range &range, const int &nCols, bool &isDeadColumn, bool &isNoisyColumn) const |
double | getGainHigh () const |
double | getGainLow () const |
const int | getNCols (const uint32_t &detID) const |
unsigned int | getNumberOfRowsToAverageOver () const |
float | getPed (const int &col, const int &row, const Range &range, const int &nCols, bool &isDeadColumn, bool &isNoisyColumn) const |
double | getPedHigh () const |
double | getPedLow () const |
const Range | getRange (const uint32_t &detID) const |
const std::pair< const Range, const int > | getRangeAndNCols (const uint32_t &detID) const |
bool | put (const uint32_t &detID, Range input, const int &nCols) |
void | setData (float ped, float gain, std::vector< char > &vped, bool thisColumnIsDead=false, bool thisColumnIsNoisy=false) |
void | setDeadColumn (const int &nRows, std::vector< char > &vped) |
void | setNoisyColumn (const int &nRows, std::vector< char > &vped) |
SiPixelGainCalibrationForHLT () | |
SiPixelGainCalibrationForHLT (float minPed, float maxPed, float minGain, float maxGain) | |
virtual | ~SiPixelGainCalibrationForHLT () |
Private Member Functions | |
float | decodeGain (unsigned int gain) const |
float | decodePed (unsigned int ped) const |
float | encodeGain (const float &gain) |
float | encodePed (const float &ped) |
Private Attributes | |
unsigned int | deadFlag_ |
std::vector< DetRegistry > | indexes |
float | maxGain_ |
float | maxPed_ |
float | minGain_ |
float | minPed_ |
unsigned int | nBinsToUseForEncoding_ |
unsigned int | noisyFlag_ |
unsigned int | numberOfRowsToAverageOver_ |
std::vector< char > | v_pedestals |
Description: Gain calibration object for the Silicon Pixel detector for use at HLT. Stores only average gain and average pedestal per column.
Implementation: <Notes on="" implementation>="">
Definition at line 27 of file SiPixelGainCalibrationForHLT.h.
typedef std::vector<char>::const_iterator SiPixelGainCalibrationForHLT::ContainerIterator |
Definition at line 48 of file SiPixelGainCalibrationForHLT.h.
typedef std::pair<ContainerIterator, ContainerIterator> SiPixelGainCalibrationForHLT::Range |
Definition at line 49 of file SiPixelGainCalibrationForHLT.h.
typedef std::vector<DetRegistry> SiPixelGainCalibrationForHLT::Registry |
Definition at line 50 of file SiPixelGainCalibrationForHLT.h.
typedef Registry::const_iterator SiPixelGainCalibrationForHLT::RegistryIterator |
Definition at line 51 of file SiPixelGainCalibrationForHLT.h.
SiPixelGainCalibrationForHLT::SiPixelGainCalibrationForHLT | ( | ) |
Definition at line 9 of file SiPixelGainCalibrationForHLT.cc.
References deadFlag_, and edm::hlt::Exception.
SiPixelGainCalibrationForHLT::SiPixelGainCalibrationForHLT | ( | float | minPed, |
float | maxPed, | ||
float | minGain, | ||
float | maxGain | ||
) |
Definition at line 24 of file SiPixelGainCalibrationForHLT.cc.
References deadFlag_, and edm::hlt::Exception.
|
inlinevirtual |
Definition at line 56 of file SiPixelGainCalibrationForHLT.h.
|
private |
Definition at line 206 of file SiPixelGainCalibrationForHLT.cc.
References maxGain_, minGain_, and nBinsToUseForEncoding_.
Referenced by getGain().
|
private |
Definition at line 198 of file SiPixelGainCalibrationForHLT.cc.
References maxPed_, minPed_, and nBinsToUseForEncoding_.
Referenced by getPed().
|
private |
Definition at line 172 of file SiPixelGainCalibrationForHLT.cc.
References edm::hlt::Exception, maxGain_, minGain_, and nBinsToUseForEncoding_.
Referenced by setData().
|
private |
Definition at line 185 of file SiPixelGainCalibrationForHLT.cc.
References edm::hlt::Exception, maxPed_, minPed_, and nBinsToUseForEncoding_.
Referenced by setData().
void SiPixelGainCalibrationForHLT::getDetIds | ( | std::vector< uint32_t > & | DetIds_ | ) | const |
Definition at line 88 of file SiPixelGainCalibrationForHLT.cc.
References begin, end, indexes, and L1TEmulatorMonitor_cff::p.
float SiPixelGainCalibrationForHLT::getGain | ( | const int & | col, |
const int & | row, | ||
const Range & | range, | ||
const int & | nCols, | ||
bool & | isDeadColumn, | ||
bool & | isNoisyColumn | ||
) | const |
Definition at line 149 of file SiPixelGainCalibrationForHLT.cc.
References deadFlag_, decodeGain(), edm::hlt::Exception, SiPixelGainCalibrationForHLT::DecodingStructure::gain, noisyFlag_, numberOfRowsToAverageOver_, and asciidump::s.
|
inline |
|
inline |
const int SiPixelGainCalibrationForHLT::getNCols | ( | const uint32_t & | detID | ) | const |
Definition at line 58 of file SiPixelGainCalibrationForHLT.cc.
References indexes, and L1TEmulatorMonitor_cff::p.
|
inline |
Definition at line 64 of file SiPixelGainCalibrationForHLT.h.
References numberOfRowsToAverageOver_.
float SiPixelGainCalibrationForHLT::getPed | ( | const int & | col, |
const int & | row, | ||
const Range & | range, | ||
const int & | nCols, | ||
bool & | isDeadColumn, | ||
bool & | isNoisyColumn | ||
) | const |
Definition at line 126 of file SiPixelGainCalibrationForHLT.cc.
References deadFlag_, decodePed(), edm::hlt::Exception, noisyFlag_, numberOfRowsToAverageOver_, SiPixelGainCalibrationForHLT::DecodingStructure::ped, and asciidump::s.
|
inline |
|
inline |
const SiPixelGainCalibrationForHLT::Range SiPixelGainCalibrationForHLT::getRange | ( | const uint32_t & | detID | ) | const |
Definition at line 69 of file SiPixelGainCalibrationForHLT.cc.
References indexes, L1TEmulatorMonitor_cff::p, and v_pedestals.
const std::pair< const SiPixelGainCalibrationForHLT::Range, const int > SiPixelGainCalibrationForHLT::getRangeAndNCols | ( | const uint32_t & | detID | ) | const |
Definition at line 80 of file SiPixelGainCalibrationForHLT.cc.
References indexes, L1TEmulatorMonitor_cff::p, and v_pedestals.
bool SiPixelGainCalibrationForHLT::put | ( | const uint32_t & | detID, |
Range | input, | ||
const int & | nCols | ||
) |
Definition at line 39 of file SiPixelGainCalibrationForHLT.cc.
References SiPixelGainCalibrationForHLT::DetRegistry::detid, SiPixelGainCalibrationForHLT::DetRegistry::ibegin, SiPixelGainCalibrationForHLT::DetRegistry::iend, indexes, SiPixelGainCalibrationForHLT::DetRegistry::ncols, L1TEmulatorMonitor_cff::p, and v_pedestals.
void SiPixelGainCalibrationForHLT::setData | ( | float | ped, |
float | gain, | ||
std::vector< char > & | vped, | ||
bool | thisColumnIsDead = false , |
||
bool | thisColumnIsNoisy = false |
||
) |
Definition at line 97 of file SiPixelGainCalibrationForHLT.cc.
References runTheMatrix::data, deadFlag_, encodeGain(), encodePed(), sistrip::extrainfo::gain_, and noisyFlag_.
Referenced by setDeadColumn(), and setNoisyColumn().
|
inline |
Definition at line 72 of file SiPixelGainCalibrationForHLT.h.
References setData().
|
inline |
Definition at line 73 of file SiPixelGainCalibrationForHLT.h.
References setData().
|
private |
Definition at line 91 of file SiPixelGainCalibrationForHLT.h.
Referenced by getGain(), getPed(), setData(), and SiPixelGainCalibrationForHLT().
|
private |
Definition at line 86 of file SiPixelGainCalibrationForHLT.h.
Referenced by getDetIds(), getNCols(), getRange(), getRangeAndNCols(), and put().
|
private |
Definition at line 87 of file SiPixelGainCalibrationForHLT.h.
Referenced by decodeGain(), encodeGain(), and getGainHigh().
|
private |
Definition at line 87 of file SiPixelGainCalibrationForHLT.h.
Referenced by decodePed(), encodePed(), and getPedHigh().
|
private |
Definition at line 87 of file SiPixelGainCalibrationForHLT.h.
Referenced by decodeGain(), encodeGain(), and getGainLow().
|
private |
Definition at line 87 of file SiPixelGainCalibrationForHLT.h.
Referenced by decodePed(), encodePed(), and getPedLow().
|
private |
Definition at line 90 of file SiPixelGainCalibrationForHLT.h.
Referenced by decodeGain(), decodePed(), encodeGain(), and encodePed().
|
private |
Definition at line 92 of file SiPixelGainCalibrationForHLT.h.
|
private |
Definition at line 89 of file SiPixelGainCalibrationForHLT.h.
Referenced by getGain(), getNumberOfRowsToAverageOver(), and getPed().
|
private |
Definition at line 85 of file SiPixelGainCalibrationForHLT.h.
Referenced by getRange(), getRangeAndNCols(), and put().