#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 |
void | initialize () |
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) | |
~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) |
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. Stores pedestal at pixel granularity, gain at column granularity.
Implementation: <Notes on="" implementation>="">
Definition at line 29 of file SiPixelGainCalibrationOffline.h.
typedef std::vector<char>::const_iterator SiPixelGainCalibrationOffline::ContainerIterator |
Definition at line 51 of file SiPixelGainCalibrationOffline.h.
typedef std::pair<ContainerIterator, ContainerIterator> SiPixelGainCalibrationOffline::Range |
Definition at line 52 of file SiPixelGainCalibrationOffline.h.
typedef std::vector<DetRegistry> SiPixelGainCalibrationOffline::Registry |
Definition at line 53 of file SiPixelGainCalibrationOffline.h.
typedef Registry::const_iterator SiPixelGainCalibrationOffline::RegistryIterator |
Definition at line 54 of file SiPixelGainCalibrationOffline.h.
SiPixelGainCalibrationOffline::SiPixelGainCalibrationOffline | ( | ) |
Definition at line 9 of file SiPixelGainCalibrationOffline.cc.
References deadFlag_, Exception, and noisyFlag_.
SiPixelGainCalibrationOffline::SiPixelGainCalibrationOffline | ( | float | minPed, |
float | maxPed, | ||
float | minGain, | ||
float | maxGain | ||
) |
Definition at line 27 of file SiPixelGainCalibrationOffline.cc.
References deadFlag_, Exception, and noisyFlag_.
|
inline |
Definition at line 59 of file SiPixelGainCalibrationOffline.h.
|
private |
Definition at line 230 of file SiPixelGainCalibrationOffline.cc.
References objects.autophobj::float, maxGain_, minGain_, nBinsToUseForEncoding_, and common_cff::precision.
Referenced by getGain(), and setNoisyColumn().
|
private |
Definition at line 222 of file SiPixelGainCalibrationOffline.cc.
References objects.autophobj::float, maxPed_, minPed_, nBinsToUseForEncoding_, and common_cff::precision.
Referenced by getPed(), and setNoisyColumn().
|
private |
Definition at line 196 of file SiPixelGainCalibrationOffline.cc.
References Exception, objects.autophobj::float, maxGain_, minGain_, nBinsToUseForEncoding_, and common_cff::precision.
Referenced by setDataGain(), and setNoisyColumn().
|
private |
Definition at line 209 of file SiPixelGainCalibrationOffline.cc.
References Exception, objects.autophobj::float, maxPed_, minPed_, nBinsToUseForEncoding_, and common_cff::precision.
Referenced by setDataPedestal(), and setNoisyColumn().
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.
Referenced by initialize().
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 SiPixelGainCalibrationOffline::DecodingStructure::datum, deadFlag_, decodeGain(), Exception, noisyFlag_, numberOfRowsToAverageOver_, and alignCSCRings::s.
Referenced by setNoisyColumn().
|
inline |
Definition at line 76 of file SiPixelGainCalibrationOffline.h.
References maxGain_.
|
inline |
Definition at line 75 of file SiPixelGainCalibrationOffline.h.
References minGain_.
const int SiPixelGainCalibrationOffline::getNCols | ( | const uint32_t & | detID | ) | const |
Definition at line 64 of file SiPixelGainCalibrationOffline.cc.
References indexes, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by initialize().
|
inline |
Definition at line 74 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(), Exception, noisyFlag_, numberOfRowsToAverageOver_, and alignCSCRings::s.
Referenced by setNoisyColumn().
|
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.
Referenced by initialize().
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.
Referenced by initialize().
|
inline |
Definition at line 61 of file SiPixelGainCalibrationOffline.h.
References muonCSCDigis_cfi::gain, getDetIds(), getNCols(), getRange(), getRangeAndNCols(), input, muonCSCDigis_cfi::pedestal, put(), setDataGain(), and setDataPedestal().
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.
Referenced by initialize(), and SiPixelFakeGainOfflineESSource::produce().
|
private |
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(), Exception, sistrip::extrainfo::gain_, noisyFlag_, and numberOfRowsToAverageOver_.
Referenced by initialize(), SiPixelFakeGainOfflineESSource::produce(), 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 initialize(), SiPixelFakeGainOfflineESSource::produce(), setDeadPixel(), and setNoisyPixel().
|
inline |
Definition at line 82 of file SiPixelGainCalibrationOffline.h.
References setDataGain().
|
inline |
Definition at line 81 of file SiPixelGainCalibrationOffline.h.
References setDataPedestal().
|
inline |
Definition at line 86 of file SiPixelGainCalibrationOffline.h.
References cuy::col, decodeGain(), decodePed(), encodeGain(), encodePed(), getGain(), getPed(), and setDataGain().
|
inline |
Definition at line 85 of file SiPixelGainCalibrationOffline.h.
References setDataPedestal().
|
friend |
Definition at line 110 of file SiPixelGainCalibrationOffline.h.
|
friend |
Definition at line 110 of file SiPixelGainCalibrationOffline.h.
|
private |
Definition at line 106 of file SiPixelGainCalibrationOffline.h.
Referenced by getGain(), getPed(), setDataGain(), setDataPedestal(), and SiPixelGainCalibrationOffline().
|
private |
Definition at line 101 of file SiPixelGainCalibrationOffline.h.
Referenced by getDetIds(), getNCols(), getRange(), getRangeAndNCols(), and put().
|
private |
Definition at line 102 of file SiPixelGainCalibrationOffline.h.
Referenced by decodeGain(), encodeGain(), and getGainHigh().
|
private |
Definition at line 102 of file SiPixelGainCalibrationOffline.h.
Referenced by decodePed(), encodePed(), and getPedHigh().
|
private |
Definition at line 102 of file SiPixelGainCalibrationOffline.h.
Referenced by decodeGain(), encodeGain(), and getGainLow().
|
private |
Definition at line 102 of file SiPixelGainCalibrationOffline.h.
Referenced by decodePed(), encodePed(), and getPedLow().
|
private |
Definition at line 105 of file SiPixelGainCalibrationOffline.h.
Referenced by decodeGain(), decodePed(), encodeGain(), and encodePed().
|
private |
Definition at line 107 of file SiPixelGainCalibrationOffline.h.
Referenced by getGain(), getPed(), setDataGain(), setDataPedestal(), and SiPixelGainCalibrationOffline().
|
private |
Definition at line 104 of file SiPixelGainCalibrationOffline.h.
Referenced by getGain(), getNumberOfRowsToAverageOver(), getPed(), and setDataGain().
|
private |
Definition at line 100 of file SiPixelGainCalibrationOffline.h.
Referenced by getRange(), getRangeAndNCols(), and put().