#include <CondFormats/SiPixelObjects/src/SiPixelGainCalibrationOffline.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 &isDead, bool &isNoisy) 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 | setDataGain (float gain, const int &nRows, std::vector< char > &vped, bool thisColumnIsDead=false, bool thisColumnIsNoisy=false) |
void | setDataPedestal (float pedestal, std::vector< char > &vped, bool thisPixelIsDead=false, bool thisPixelIsNoisy=false) |
void | setDeadColumn (const int &nRows, std::vector< char > &vped) |
void | setDeadPixel (std::vector< char > &vped) |
void | setNoisyColumn (const int &nRows, std::vector< char > &vped) |
void | setNoisyPixel (std::vector< char > &vped) |
SiPixelGainCalibrationOffline () | |
SiPixelGainCalibrationOffline (float minPed, float maxPed, float minGain, float maxGain) | |
virtual | ~SiPixelGainCalibrationOffline () |
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. Stores pedestal at pixel granularity, gain at column granularity.
Implementation: <Notes on="" implementation>="">
Definition at line 27 of file SiPixelGainCalibrationOffline.h.
typedef std::vector<char>::const_iterator SiPixelGainCalibrationOffline::ContainerIterator |
Definition at line 47 of file SiPixelGainCalibrationOffline.h.
typedef std::pair<ContainerIterator, ContainerIterator> SiPixelGainCalibrationOffline::Range |
Definition at line 48 of file SiPixelGainCalibrationOffline.h.
typedef std::vector<DetRegistry> SiPixelGainCalibrationOffline::Registry |
Definition at line 49 of file SiPixelGainCalibrationOffline.h.
typedef Registry::const_iterator SiPixelGainCalibrationOffline::RegistryIterator |
Definition at line 50 of file SiPixelGainCalibrationOffline.h.
SiPixelGainCalibrationOffline::SiPixelGainCalibrationOffline | ( | ) |
Definition at line 9 of file SiPixelGainCalibrationOffline.cc.
References deadFlag_, edm::hlt::Exception, and noisyFlag_.
SiPixelGainCalibrationOffline::SiPixelGainCalibrationOffline | ( | float | minPed, |
float | maxPed, | ||
float | minGain, | ||
float | maxGain | ||
) |
Definition at line 27 of file SiPixelGainCalibrationOffline.cc.
References deadFlag_, edm::hlt::Exception, and noisyFlag_.
|
inlinevirtual |
Definition at line 55 of file SiPixelGainCalibrationOffline.h.
|
private |
Definition at line 230 of file SiPixelGainCalibrationOffline.cc.
References maxGain_, minGain_, and nBinsToUseForEncoding_.
Referenced by getGain().
|
private |
Definition at line 222 of file SiPixelGainCalibrationOffline.cc.
References maxPed_, minPed_, and nBinsToUseForEncoding_.
Referenced by getPed().
|
private |
Definition at line 196 of file SiPixelGainCalibrationOffline.cc.
References edm::hlt::Exception, maxGain_, minGain_, and nBinsToUseForEncoding_.
Referenced by setDataGain().
|
private |
Definition at line 209 of file SiPixelGainCalibrationOffline.cc.
References edm::hlt::Exception, maxPed_, minPed_, and nBinsToUseForEncoding_.
Referenced by setDataPedestal().
void SiPixelGainCalibrationOffline::getDetIds | ( | std::vector< uint32_t > & | DetIds_ | ) | const |
Definition at line 93 of file SiPixelGainCalibrationOffline.cc.
References begin, end, indexes, and AlCaHLTBitMon_ParallelJobs::p.
float SiPixelGainCalibrationOffline::getGain | ( | const int & | col, |
const int & | row, | ||
const Range & | range, | ||
const int & | nCols, | ||
bool & | isDeadColumn, | ||
bool & | isNoisyColumn | ||
) | const |
Definition at line 173 of file SiPixelGainCalibrationOffline.cc.
References cuy::col, SiPixelGainCalibrationOffline::DecodingStructure::datum, deadFlag_, decodeGain(), edm::hlt::Exception, noisyFlag_, numberOfRowsToAverageOver_, and alignCSCRings::s.
|
inline |
|
inline |
const int SiPixelGainCalibrationOffline::getNCols | ( | const uint32_t & | detID | ) | const |
Definition at line 64 of file SiPixelGainCalibrationOffline.cc.
References indexes, and AlCaHLTBitMon_ParallelJobs::p.
|
inline |
Definition at line 67 of file SiPixelGainCalibrationOffline.h.
References numberOfRowsToAverageOver_.
float SiPixelGainCalibrationOffline::getPed | ( | const int & | col, |
const int & | row, | ||
const Range & | range, | ||
const int & | nCols, | ||
bool & | isDead, | ||
bool & | isNoisy | ||
) | const |
Definition at line 149 of file SiPixelGainCalibrationOffline.cc.
References SiPixelGainCalibrationOffline::DecodingStructure::datum, deadFlag_, decodePed(), edm::hlt::Exception, noisyFlag_, numberOfRowsToAverageOver_, and alignCSCRings::s.
|
inline |
|
inline |
const SiPixelGainCalibrationOffline::Range SiPixelGainCalibrationOffline::getRange | ( | const uint32_t & | detID | ) | const |
Definition at line 73 of file SiPixelGainCalibrationOffline.cc.
References indexes, AlCaHLTBitMon_ParallelJobs::p, and v_pedestals.
const std::pair< const SiPixelGainCalibrationOffline::Range, const int > SiPixelGainCalibrationOffline::getRangeAndNCols | ( | const uint32_t & | detID | ) | const |
Definition at line 84 of file SiPixelGainCalibrationOffline.cc.
References indexes, AlCaHLTBitMon_ParallelJobs::p, and v_pedestals.
bool SiPixelGainCalibrationOffline::put | ( | const uint32_t & | detID, |
Range | input, | ||
const int & | nCols | ||
) |
Definition at line 45 of file SiPixelGainCalibrationOffline.cc.
References SiPixelGainCalibrationOffline::DetRegistry::detid, SiPixelGainCalibrationOffline::DetRegistry::ibegin, SiPixelGainCalibrationOffline::DetRegistry::iend, indexes, SiPixelGainCalibrationOffline::DetRegistry::ncols, AlCaHLTBitMon_ParallelJobs::p, sd, and v_pedestals.
void SiPixelGainCalibrationOffline::setDataGain | ( | float | gain, |
const int & | nRows, | ||
std::vector< char > & | vped, | ||
bool | thisColumnIsDead = false , |
||
bool | thisColumnIsNoisy = false |
||
) |
Definition at line 102 of file SiPixelGainCalibrationOffline.cc.
References deadFlag_, encodeGain(), edm::hlt::Exception, sistrip::extrainfo::gain_, noisyFlag_, and numberOfRowsToAverageOver_.
Referenced by setDeadColumn(), and setNoisyColumn().
void SiPixelGainCalibrationOffline::setDataPedestal | ( | float | pedestal, |
std::vector< char > & | vped, | ||
bool | thisPixelIsDead = false , |
||
bool | thisPixelIsNoisy = false |
||
) |
Definition at line 133 of file SiPixelGainCalibrationOffline.cc.
References deadFlag_, encodePed(), and noisyFlag_.
Referenced by setDeadPixel(), and setNoisyPixel().
|
inline |
Definition at line 75 of file SiPixelGainCalibrationOffline.h.
References setDataGain().
|
inline |
Definition at line 74 of file SiPixelGainCalibrationOffline.h.
References setDataPedestal().
|
inline |
Definition at line 79 of file SiPixelGainCalibrationOffline.h.
References setDataGain().
|
inline |
Definition at line 78 of file SiPixelGainCalibrationOffline.h.
References setDataPedestal().
|
private |
Definition at line 99 of file SiPixelGainCalibrationOffline.h.
Referenced by getGain(), getPed(), setDataGain(), setDataPedestal(), and SiPixelGainCalibrationOffline().
|
private |
Definition at line 94 of file SiPixelGainCalibrationOffline.h.
Referenced by getDetIds(), getNCols(), getRange(), getRangeAndNCols(), and put().
|
private |
Definition at line 95 of file SiPixelGainCalibrationOffline.h.
Referenced by decodeGain(), encodeGain(), and getGainHigh().
|
private |
Definition at line 95 of file SiPixelGainCalibrationOffline.h.
Referenced by decodePed(), encodePed(), and getPedHigh().
|
private |
Definition at line 95 of file SiPixelGainCalibrationOffline.h.
Referenced by decodeGain(), encodeGain(), and getGainLow().
|
private |
Definition at line 95 of file SiPixelGainCalibrationOffline.h.
Referenced by decodePed(), encodePed(), and getPedLow().
|
private |
Definition at line 98 of file SiPixelGainCalibrationOffline.h.
Referenced by decodeGain(), decodePed(), encodeGain(), and encodePed().
|
private |
Definition at line 100 of file SiPixelGainCalibrationOffline.h.
Referenced by getGain(), getPed(), setDataGain(), setDataPedestal(), and SiPixelGainCalibrationOffline().
|
private |
Definition at line 97 of file SiPixelGainCalibrationOffline.h.
Referenced by getGain(), getNumberOfRowsToAverageOver(), getPed(), and setDataGain().
|
private |
Definition at line 93 of file SiPixelGainCalibrationOffline.h.
Referenced by getRange(), getRangeAndNCols(), and put().