#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 49 of file SiPixelGainCalibrationOffline.h.
typedef std::pair<ContainerIterator, ContainerIterator> SiPixelGainCalibrationOffline::Range |
Definition at line 50 of file SiPixelGainCalibrationOffline.h.
typedef std::vector<DetRegistry> SiPixelGainCalibrationOffline::Registry |
Definition at line 51 of file SiPixelGainCalibrationOffline.h.
typedef Registry::const_iterator SiPixelGainCalibrationOffline::RegistryIterator |
Definition at line 52 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 28 of file SiPixelGainCalibrationOffline.cc.
References deadFlag_, Exception, and noisyFlag_.
|
inline |
Definition at line 57 of file SiPixelGainCalibrationOffline.h.
|
private |
Definition at line 243 of file SiPixelGainCalibrationOffline.cc.
References nano_mu_digi_cff::float, PedestalClient_cfi::gain, maxGain_, minGain_, nBinsToUseForEncoding_, and hcalRecHitTable_cff::precision.
Referenced by getGain().
|
private |
Definition at line 237 of file SiPixelGainCalibrationOffline.cc.
References nano_mu_digi_cff::float, maxPed_, minPed_, nBinsToUseForEncoding_, and hcalRecHitTable_cff::precision.
Referenced by getPed().
|
private |
Definition at line 215 of file SiPixelGainCalibrationOffline.cc.
References Exception, nano_mu_digi_cff::float, PedestalClient_cfi::gain, maxGain_, minGain_, nBinsToUseForEncoding_, and hcalRecHitTable_cff::precision.
Referenced by setDataGain().
|
private |
Definition at line 226 of file SiPixelGainCalibrationOffline.cc.
References Exception, nano_mu_digi_cff::float, maxPed_, minPed_, nBinsToUseForEncoding_, and hcalRecHitTable_cff::precision.
Referenced by setDataPedestal().
void SiPixelGainCalibrationOffline::getDetIds | ( | std::vector< uint32_t > & | DetIds_ | ) | const |
Definition at line 99 of file SiPixelGainCalibrationOffline.cc.
References mps_fire::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 185 of file SiPixelGainCalibrationOffline.cc.
References cuy::col, deadFlag_, decodeGain(), Exception, noisyFlag_, numberOfRowsToAverageOver_, and FastTimerService_cff::range.
|
inline |
Definition at line 80 of file SiPixelGainCalibrationOffline.h.
References maxGain_.
|
inline |
Definition at line 79 of file SiPixelGainCalibrationOffline.h.
References minGain_.
const int SiPixelGainCalibrationOffline::getNCols | ( | const uint32_t & | detID | ) | const |
Definition at line 67 of file SiPixelGainCalibrationOffline.cc.
References indexes, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and AlCaHLTBitMon_ParallelJobs::p.
|
inline |
Definition at line 78 of file SiPixelGainCalibrationOffline.h.
References numberOfRowsToAverageOver_.
Referenced by SiPixelGainCalibrationReadDQMFile::fillDatabase().
float SiPixelGainCalibrationOffline::getPed | ( | const int & | col, |
const int & | row, | ||
const Range & | range, | ||
const int & | nCols, | ||
bool & | isDead, | ||
bool & | isNoisy | ||
) | const |
Definition at line 158 of file SiPixelGainCalibrationOffline.cc.
References cuy::col, deadFlag_, decodePed(), Exception, noisyFlag_, numberOfRowsToAverageOver_, and FastTimerService_cff::range.
|
inline |
|
inline |
const SiPixelGainCalibrationOffline::Range SiPixelGainCalibrationOffline::getRange | ( | const uint32_t & | detID | ) | const |
Definition at line 77 of file SiPixelGainCalibrationOffline.cc.
References indexes, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, AlCaHLTBitMon_ParallelJobs::p, and v_pedestals.
const std::pair< const SiPixelGainCalibrationOffline::Range, const int > SiPixelGainCalibrationOffline::getRangeAndNCols | ( | const uint32_t & | detID | ) | const |
Definition at line 88 of file SiPixelGainCalibrationOffline.cc.
References indexes, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, AlCaHLTBitMon_ParallelJobs::p, and v_pedestals.
|
inline |
Definition at line 59 of file SiPixelGainCalibrationOffline.h.
bool SiPixelGainCalibrationOffline::put | ( | const uint32_t & | detID, |
Range | input, | ||
const int & | nCols | ||
) |
Definition at line 47 of file SiPixelGainCalibrationOffline.cc.
References SiPixelGainCalibrationOffline::DetRegistry::detid, SiPixelGainCalibrationOffline::DetRegistry::ibegin, SiPixelGainCalibrationOffline::DetRegistry::iend, indexes, input, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, SiPixelGainCalibrationOffline::DetRegistry::ncols, AlCaHLTBitMon_ParallelJobs::p, and v_pedestals.
Referenced by SiPixelGainCalibrationReadDQMFile::fillDatabase().
|
private |
void SiPixelGainCalibrationOffline::setDataGain | ( | float | gain, |
const int & | nRows, | ||
std::vector< char > & | vped, | ||
bool | thisColumnIsDead = false , |
||
bool | thisColumnIsNoisy = false |
||
) |
Definition at line 108 of file SiPixelGainCalibrationOffline.cc.
References deadFlag_, encodeGain(), Exception, PedestalClient_cfi::gain, sistrip::extrainfo::gain_, noisyFlag_, and numberOfRowsToAverageOver_.
Referenced by SiPixelGainCalibrationReadDQMFile::fillDatabase(), setDeadColumn(), and setNoisyColumn().
void SiPixelGainCalibrationOffline::setDataPedestal | ( | float | pedestal, |
std::vector< char > & | vped, | ||
bool | thisPixelIsDead = false , |
||
bool | thisPixelIsNoisy = false |
||
) |
Definition at line 140 of file SiPixelGainCalibrationOffline.cc.
References deadFlag_, encodePed(), noisyFlag_, and EcalCondDBWriter_cfi::pedestal.
Referenced by SiPixelGainCalibrationReadDQMFile::fillDatabase(), setDeadPixel(), and setNoisyPixel().
|
inline |
Definition at line 86 of file SiPixelGainCalibrationOffline.h.
References setDataGain().
Referenced by SiPixelGainCalibrationReadDQMFile::fillDatabase().
|
inline |
Definition at line 85 of file SiPixelGainCalibrationOffline.h.
References setDataPedestal().
Referenced by SiPixelGainCalibrationReadDQMFile::fillDatabase().
|
inline |
Definition at line 92 of file SiPixelGainCalibrationOffline.h.
References setDataGain().
|
inline |
Definition at line 91 of file SiPixelGainCalibrationOffline.h.
References setDataPedestal().
|
friend |
Definition at line 122 of file SiPixelGainCalibrationOffline.h.
|
friend |
Definition at line 122 of file SiPixelGainCalibrationOffline.h.
|
private |
Definition at line 119 of file SiPixelGainCalibrationOffline.h.
Referenced by getGain(), getPed(), setDataGain(), setDataPedestal(), and SiPixelGainCalibrationOffline().
|
private |
Definition at line 112 of file SiPixelGainCalibrationOffline.h.
Referenced by getDetIds(), getNCols(), getRange(), getRangeAndNCols(), and put().
|
private |
Definition at line 113 of file SiPixelGainCalibrationOffline.h.
Referenced by decodeGain(), encodeGain(), and getGainHigh().
|
private |
Definition at line 113 of file SiPixelGainCalibrationOffline.h.
Referenced by decodePed(), encodePed(), and getPedHigh().
|
private |
Definition at line 113 of file SiPixelGainCalibrationOffline.h.
Referenced by decodeGain(), encodeGain(), and getGainLow().
|
private |
Definition at line 113 of file SiPixelGainCalibrationOffline.h.
Referenced by decodePed(), encodePed(), and getPedLow().
|
private |
Definition at line 118 of file SiPixelGainCalibrationOffline.h.
Referenced by decodeGain(), decodePed(), encodeGain(), and encodePed().
|
private |
Definition at line 120 of file SiPixelGainCalibrationOffline.h.
Referenced by getGain(), getPed(), setDataGain(), setDataPedestal(), and SiPixelGainCalibrationOffline().
|
private |
Definition at line 116 of file SiPixelGainCalibrationOffline.h.
Referenced by getGain(), getNumberOfRowsToAverageOver(), getPed(), and setDataGain().
|
private |
Definition at line 111 of file SiPixelGainCalibrationOffline.h.
Referenced by getRange(), getRangeAndNCols(), and put().