#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 | |
std::vector< char > const & | data () const |
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 |
float | getGainHigh () const |
float | getGainLow () const |
std::vector< DetRegistry > const & | getIndexes () 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 |
std::pair< float, float > | getPedAndGain (const int &col, const int &row, const Range &range, const int &nCols, bool &isDeadColumn, bool &isNoisyColumn) const |
float | getPedHigh () const |
float | 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 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) | |
~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) |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
unsigned int | deadFlag_ |
float | gainPrecision |
std::vector< DetRegistry > | indexes |
float | maxGain_ |
float | maxPed_ |
float | minGain_ |
float | minPed_ |
unsigned int | nBinsToUseForEncoding_ |
unsigned int | noisyFlag_ |
unsigned int | numberOfRowsToAverageOver_ |
float | pedPrecision |
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 for use at HLT. Stores only average gain and average pedestal per column.
Implementation: <Notes on="" implementation>="">
Definition at line 29 of file SiPixelGainCalibrationForHLT.h.
typedef std::vector<char>::const_iterator SiPixelGainCalibrationForHLT::ContainerIterator |
Definition at line 52 of file SiPixelGainCalibrationForHLT.h.
typedef std::pair<ContainerIterator, ContainerIterator> SiPixelGainCalibrationForHLT::Range |
Definition at line 53 of file SiPixelGainCalibrationForHLT.h.
typedef std::vector<DetRegistry> SiPixelGainCalibrationForHLT::Registry |
Definition at line 54 of file SiPixelGainCalibrationForHLT.h.
typedef Registry::const_iterator SiPixelGainCalibrationForHLT::RegistryIterator |
Definition at line 55 of file SiPixelGainCalibrationForHLT.h.
SiPixelGainCalibrationForHLT::SiPixelGainCalibrationForHLT | ( | ) |
Definition at line 9 of file SiPixelGainCalibrationForHLT.cc.
References deadFlag_, Exception, and initialize().
SiPixelGainCalibrationForHLT::SiPixelGainCalibrationForHLT | ( | float | minPed, |
float | maxPed, | ||
float | minGain, | ||
float | maxGain | ||
) |
Definition at line 25 of file SiPixelGainCalibrationForHLT.cc.
References deadFlag_, Exception, and initialize().
|
inline |
Definition at line 60 of file SiPixelGainCalibrationForHLT.h.
References getDetIds(), getNCols(), getRange(), getRangeAndNCols(), initialize(), input, and put().
|
inline |
Definition at line 76 of file SiPixelGainCalibrationForHLT.h.
References v_pedestals.
Referenced by setData().
|
inlineprivate |
Definition at line 94 of file SiPixelGainCalibrationForHLT.h.
References gainPrecision, and minGain_.
Referenced by getGain(), and getPedAndGain().
|
inlineprivate |
Definition at line 95 of file SiPixelGainCalibrationForHLT.h.
References minPed_, and pedPrecision.
Referenced by getPed(), and getPedAndGain().
|
private |
Definition at line 207 of file SiPixelGainCalibrationForHLT.cc.
References Exception, objects.autophobj::float, maxGain_, minGain_, nBinsToUseForEncoding_, and common_cff::precision.
Referenced by setData(), and setNoisyColumn().
|
private |
Definition at line 220 of file SiPixelGainCalibrationForHLT.cc.
References Exception, objects.autophobj::float, maxPed_, minPed_, nBinsToUseForEncoding_, and common_cff::precision.
Referenced by setData(), and setNoisyColumn().
void SiPixelGainCalibrationForHLT::getDetIds | ( | std::vector< uint32_t > & | DetIds_ | ) | const |
Definition at line 97 of file SiPixelGainCalibrationForHLT.cc.
References begin, end, indexes, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by ~SiPixelGainCalibrationForHLT().
float SiPixelGainCalibrationForHLT::getGain | ( | const int & | col, |
const int & | row, | ||
const Range & | range, | ||
const int & | nCols, | ||
bool & | isDeadColumn, | ||
bool & | isNoisyColumn | ||
) | const |
Definition at line 184 of file SiPixelGainCalibrationForHLT.cc.
References deadFlag_, decodeGain(), Exception, SiPixelGainCalibrationForHLT::DecodingStructure::gain, noisyFlag_, numberOfRowsToAverageOver_, and alignCSCRings::s.
Referenced by setNoisyColumn().
|
inline |
|
inline |
|
inline |
Definition at line 77 of file SiPixelGainCalibrationForHLT.h.
References SiPixelGainCalibrationForHLT::DecodingStructure::gain, indexes, SiPixelGainCalibrationForHLT::DecodingStructure::ped, and setData().
const int SiPixelGainCalibrationForHLT::getNCols | ( | const uint32_t & | detID | ) | const |
Definition at line 67 of file SiPixelGainCalibrationForHLT.cc.
References indexes, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by ~SiPixelGainCalibrationForHLT().
|
inline |
Definition at line 70 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 161 of file SiPixelGainCalibrationForHLT.cc.
References deadFlag_, decodePed(), Exception, noisyFlag_, numberOfRowsToAverageOver_, SiPixelGainCalibrationForHLT::DecodingStructure::ped, and alignCSCRings::s.
Referenced by setNoisyColumn().
std::pair< float, float > SiPixelGainCalibrationForHLT::getPedAndGain | ( | const int & | col, |
const int & | row, | ||
const Range & | range, | ||
const int & | nCols, | ||
bool & | isDeadColumn, | ||
bool & | isNoisyColumn | ||
) | const |
Definition at line 136 of file SiPixelGainCalibrationForHLT.cc.
References deadFlag_, decodeGain(), decodePed(), SiPixelGainCalibrationForHLT::DecodingStructure::gain, noisyFlag_, numberOfRowsToAverageOver_, SiPixelGainCalibrationForHLT::DecodingStructure::ped, and alignCSCRings::s.
Referenced by SiPixelGainCalibrationForHLTService::calibrate(), and setNoisyColumn().
|
inline |
|
inline |
const SiPixelGainCalibrationForHLT::Range SiPixelGainCalibrationForHLT::getRange | ( | const uint32_t & | detID | ) | const |
Definition at line 78 of file SiPixelGainCalibrationForHLT.cc.
References indexes, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, AlCaHLTBitMon_ParallelJobs::p, and v_pedestals.
Referenced by ~SiPixelGainCalibrationForHLT().
const std::pair< const SiPixelGainCalibrationForHLT::Range, const int > SiPixelGainCalibrationForHLT::getRangeAndNCols | ( | const uint32_t & | detID | ) | const |
Definition at line 89 of file SiPixelGainCalibrationForHLT.cc.
References indexes, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, AlCaHLTBitMon_ParallelJobs::p, and v_pedestals.
Referenced by SiPixelGainCalibrationForHLTService::calibrate(), and ~SiPixelGainCalibrationForHLT().
void SiPixelGainCalibrationForHLT::initialize | ( | ) |
Definition at line 42 of file SiPixelGainCalibrationForHLT.cc.
References gainPrecision, maxGain_, maxPed_, minGain_, minPed_, nBinsToUseForEncoding_, and pedPrecision.
Referenced by SiPixelGainCalibrationForHLT(), and ~SiPixelGainCalibrationForHLT().
bool SiPixelGainCalibrationForHLT::put | ( | const uint32_t & | detID, |
Range | input, | ||
const int & | nCols | ||
) |
Definition at line 48 of file SiPixelGainCalibrationForHLT.cc.
References SiPixelGainCalibrationForHLT::DetRegistry::detid, SiPixelGainCalibrationForHLT::DetRegistry::ibegin, SiPixelGainCalibrationForHLT::DetRegistry::iend, indexes, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, SiPixelGainCalibrationForHLT::DetRegistry::ncols, AlCaHLTBitMon_ParallelJobs::p, sd, and v_pedestals.
Referenced by SiPixelFakeGainForHLTESSource::produce(), and ~SiPixelGainCalibrationForHLT().
|
private |
void SiPixelGainCalibrationForHLT::setData | ( | float | ped, |
float | gain, | ||
std::vector< char > & | vped, | ||
bool | thisColumnIsDead = false , |
||
bool | thisColumnIsNoisy = false |
||
) |
Definition at line 106 of file SiPixelGainCalibrationForHLT.cc.
References data(), deadFlag_, encodeGain(), encodePed(), sistrip::extrainfo::gain_, and noisyFlag_.
Referenced by getIndexes(), SiPixelFakeGainForHLTESSource::produce(), setDeadColumn(), and setNoisyColumn().
|
inline |
Definition at line 81 of file SiPixelGainCalibrationForHLT.h.
References setData().
|
inline |
Definition at line 82 of file SiPixelGainCalibrationForHLT.h.
References cuy::col, encodeGain(), encodePed(), getGain(), getPed(), getPedAndGain(), and setData().
|
friend |
Definition at line 108 of file SiPixelGainCalibrationForHLT.h.
|
friend |
Definition at line 108 of file SiPixelGainCalibrationForHLT.h.
|
private |
Definition at line 105 of file SiPixelGainCalibrationForHLT.h.
Referenced by getGain(), getPed(), getPedAndGain(), setData(), and SiPixelGainCalibrationForHLT().
|
private |
Definition at line 101 of file SiPixelGainCalibrationForHLT.h.
Referenced by decodeGain(), and initialize().
|
private |
Definition at line 98 of file SiPixelGainCalibrationForHLT.h.
Referenced by getDetIds(), getIndexes(), getNCols(), getRange(), getRangeAndNCols(), and put().
|
private |
Definition at line 99 of file SiPixelGainCalibrationForHLT.h.
Referenced by encodeGain(), getGainHigh(), and initialize().
|
private |
Definition at line 99 of file SiPixelGainCalibrationForHLT.h.
Referenced by encodePed(), getPedHigh(), and initialize().
|
private |
Definition at line 99 of file SiPixelGainCalibrationForHLT.h.
Referenced by decodeGain(), encodeGain(), getGainLow(), and initialize().
|
private |
Definition at line 99 of file SiPixelGainCalibrationForHLT.h.
Referenced by decodePed(), encodePed(), getPedLow(), and initialize().
|
private |
Definition at line 104 of file SiPixelGainCalibrationForHLT.h.
Referenced by encodeGain(), encodePed(), and initialize().
|
private |
Definition at line 106 of file SiPixelGainCalibrationForHLT.h.
Referenced by getGain(), getPed(), getPedAndGain(), and setData().
|
private |
Definition at line 103 of file SiPixelGainCalibrationForHLT.h.
Referenced by getGain(), getNumberOfRowsToAverageOver(), getPed(), and getPedAndGain().
|
private |
Definition at line 101 of file SiPixelGainCalibrationForHLT.h.
Referenced by decodePed(), and initialize().
|
private |
Definition at line 97 of file SiPixelGainCalibrationForHLT.h.
Referenced by data(), getRange(), getRangeAndNCols(), and put().