#include <CondFormats/SiPixelObjects/src/SiPixelGainCalibration.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 &isDead, bool &isNoisy) 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 |
void | initialize () |
bool | put (const uint32_t &detID, Range input, const int &nCols) |
void | setData (float ped, float gain, std::vector< char > &vped, bool thisPixelIsDead=false, bool thisPixelIsNoisy=false) |
void | setDeadPixel (std::vector< char > &vped) |
void | setNoisyPixel (std::vector< char > &vped) |
SiPixelGainCalibration () | |
SiPixelGainCalibration (float minPed, float maxPed, float minGain, float maxGain) | |
~SiPixelGainCalibration () | |
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) |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
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 |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
Description: Gain calibration object for the Silicon Pixel detector. Store gain/pedestal information at pixel granularity
Implementation: <Notes on="" implementation>="">
Definition at line 29 of file SiPixelGainCalibration.h.
typedef std::vector<char>::const_iterator SiPixelGainCalibration::ContainerIterator |
Definition at line 53 of file SiPixelGainCalibration.h.
typedef std::pair<ContainerIterator, ContainerIterator> SiPixelGainCalibration::Range |
Definition at line 54 of file SiPixelGainCalibration.h.
typedef std::vector<DetRegistry> SiPixelGainCalibration::Registry |
Definition at line 55 of file SiPixelGainCalibration.h.
typedef Registry::const_iterator SiPixelGainCalibration::RegistryIterator |
Definition at line 56 of file SiPixelGainCalibration.h.
SiPixelGainCalibration::SiPixelGainCalibration | ( | ) |
Definition at line 9 of file SiPixelGainCalibration.cc.
References deadFlag_, and Exception.
SiPixelGainCalibration::SiPixelGainCalibration | ( | float | minPed, |
float | maxPed, | ||
float | minGain, | ||
float | maxGain | ||
) |
Definition at line 24 of file SiPixelGainCalibration.cc.
References deadFlag_, and Exception.
|
inline |
Definition at line 61 of file SiPixelGainCalibration.h.
|
private |
Definition at line 188 of file SiPixelGainCalibration.cc.
References objects.autophobj::float, maxGain_, minGain_, and nBinsToUseForEncoding_.
Referenced by getGain(), and setNoisyPixel().
|
private |
Definition at line 180 of file SiPixelGainCalibration.cc.
References objects.autophobj::float, maxPed_, minPed_, and nBinsToUseForEncoding_.
Referenced by getPed(), and setNoisyPixel().
|
private |
Definition at line 154 of file SiPixelGainCalibration.cc.
References Exception, objects.autophobj::float, maxGain_, minGain_, and nBinsToUseForEncoding_.
Referenced by setData(), and setNoisyPixel().
|
private |
Definition at line 167 of file SiPixelGainCalibration.cc.
References Exception, objects.autophobj::float, maxPed_, minPed_, and nBinsToUseForEncoding_.
Referenced by setData(), and setNoisyPixel().
void SiPixelGainCalibration::getDetIds | ( | std::vector< uint32_t > & | DetIds_ | ) | const |
Definition at line 87 of file SiPixelGainCalibration.cc.
References begin, end, indexes, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by initialize().
float SiPixelGainCalibration::getGain | ( | const int & | col, |
const int & | row, | ||
const Range & | range, | ||
const int & | nCols, | ||
bool & | isDead, | ||
bool & | isNoisy | ||
) | const |
Definition at line 139 of file SiPixelGainCalibration.cc.
References deadFlag_, decodeGain(), Exception, SiPixelGainCalibration::DecodingStructure::gain, noisyFlag_, and alignCSCRings::s.
Referenced by setNoisyPixel().
|
inline |
|
inline |
const int SiPixelGainCalibration::getNCols | ( | const uint32_t & | detID | ) | const |
Definition at line 58 of file SiPixelGainCalibration.cc.
References indexes, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by initialize().
|
inline |
Definition at line 71 of file SiPixelGainCalibration.h.
References numberOfRowsToAverageOver_.
float SiPixelGainCalibration::getPed | ( | const int & | col, |
const int & | row, | ||
const Range & | range, | ||
const int & | nCols, | ||
bool & | isDead, | ||
bool & | isNoisy | ||
) | const |
Definition at line 124 of file SiPixelGainCalibration.cc.
References deadFlag_, decodePed(), Exception, noisyFlag_, SiPixelGainCalibration::DecodingStructure::ped, and alignCSCRings::s.
Referenced by setNoisyPixel().
|
inline |
Definition at line 75 of file SiPixelGainCalibration.h.
References SiPixelGainCalibration::DecodingStructure::gain, maxPed_, SiPixelGainCalibration::DecodingStructure::ped, and setData().
|
inline |
const SiPixelGainCalibration::Range SiPixelGainCalibration::getRange | ( | const uint32_t & | detID | ) | const |
Definition at line 67 of file SiPixelGainCalibration.cc.
References indexes, AlCaHLTBitMon_ParallelJobs::p, and v_pedestals.
Referenced by initialize().
const std::pair< const SiPixelGainCalibration::Range, const int > SiPixelGainCalibration::getRangeAndNCols | ( | const uint32_t & | detID | ) | const |
Definition at line 78 of file SiPixelGainCalibration.cc.
References indexes, AlCaHLTBitMon_ParallelJobs::p, and v_pedestals.
Referenced by initialize().
|
inline |
Definition at line 63 of file SiPixelGainCalibration.h.
References getDetIds(), getNCols(), getRange(), getRangeAndNCols(), input, and put().
bool SiPixelGainCalibration::put | ( | const uint32_t & | detID, |
Range | input, | ||
const int & | nCols | ||
) |
Definition at line 39 of file SiPixelGainCalibration.cc.
References SiPixelGainCalibration::DetRegistry::detid, SiPixelGainCalibration::DetRegistry::ibegin, SiPixelGainCalibration::DetRegistry::iend, indexes, SiPixelGainCalibration::DetRegistry::ncols, AlCaHLTBitMon_ParallelJobs::p, sd, and v_pedestals.
Referenced by initialize(), and SiPixelFakeGainESSource::produce().
|
private |
void SiPixelGainCalibration::setData | ( | float | ped, |
float | gain, | ||
std::vector< char > & | vped, | ||
bool | thisPixelIsDead = false , |
||
bool | thisPixelIsNoisy = false |
||
) |
Definition at line 96 of file SiPixelGainCalibration.cc.
References data, deadFlag_, encodeGain(), encodePed(), sistrip::extrainfo::gain_, and noisyFlag_.
Referenced by getPedHigh(), SiPixelFakeGainESSource::produce(), setDeadPixel(), and setNoisyPixel().
|
inline |
Definition at line 80 of file SiPixelGainCalibration.h.
References setData().
|
inline |
Definition at line 81 of file SiPixelGainCalibration.h.
References cuy::col, decodeGain(), decodePed(), encodeGain(), encodePed(), getGain(), getPed(), and setData().
|
friend |
Definition at line 103 of file SiPixelGainCalibration.h.
|
friend |
Definition at line 103 of file SiPixelGainCalibration.h.
|
private |
Definition at line 99 of file SiPixelGainCalibration.h.
Referenced by getGain(), getPed(), setData(), and SiPixelGainCalibration().
|
private |
Definition at line 94 of file SiPixelGainCalibration.h.
Referenced by getDetIds(), getNCols(), getRange(), getRangeAndNCols(), and put().
|
private |
Definition at line 95 of file SiPixelGainCalibration.h.
Referenced by decodeGain(), encodeGain(), and getGainHigh().
|
private |
Definition at line 95 of file SiPixelGainCalibration.h.
Referenced by decodePed(), encodePed(), and getPedHigh().
|
private |
Definition at line 95 of file SiPixelGainCalibration.h.
Referenced by decodeGain(), encodeGain(), and getGainLow().
|
private |
Definition at line 95 of file SiPixelGainCalibration.h.
Referenced by decodePed(), encodePed(), and getPedLow().
|
private |
Definition at line 98 of file SiPixelGainCalibration.h.
Referenced by decodeGain(), decodePed(), encodeGain(), and encodePed().
|
private |
Definition at line 100 of file SiPixelGainCalibration.h.
|
private |
Definition at line 97 of file SiPixelGainCalibration.h.
Referenced by getNumberOfRowsToAverageOver().
|
private |
Definition at line 93 of file SiPixelGainCalibration.h.
Referenced by getRange(), getRangeAndNCols(), and put().