#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 | |
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 |
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.
|
inlineprivate |
Definition at line 91 of file SiPixelGainCalibrationForHLT.h.
References gainPrecision, and minGain_.
Referenced by getGain(), and getPedAndGain().
|
inlineprivate |
Definition at line 92 of file SiPixelGainCalibrationForHLT.h.
References minPed_, and pedPrecision.
Referenced by getPed(), and getPedAndGain().
|
private |
Definition at line 207 of file SiPixelGainCalibrationForHLT.cc.
References Exception, maxGain_, minGain_, and nBinsToUseForEncoding_.
Referenced by setData().
|
private |
Definition at line 220 of file SiPixelGainCalibrationForHLT.cc.
References Exception, maxPed_, minPed_, and nBinsToUseForEncoding_.
Referenced by setData().
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.
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.
|
inline |
|
inline |
const int SiPixelGainCalibrationForHLT::getNCols | ( | const uint32_t & | detID | ) | const |
Definition at line 67 of file SiPixelGainCalibrationForHLT.cc.
References indexes, and AlCaHLTBitMon_ParallelJobs::p.
|
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.
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.
|
inline |
|
inline |
const SiPixelGainCalibrationForHLT::Range SiPixelGainCalibrationForHLT::getRange | ( | const uint32_t & | detID | ) | const |
Definition at line 78 of file SiPixelGainCalibrationForHLT.cc.
References indexes, AlCaHLTBitMon_ParallelJobs::p, and v_pedestals.
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, AlCaHLTBitMon_ParallelJobs::p, and v_pedestals.
void SiPixelGainCalibrationForHLT::initialize | ( | ) |
Definition at line 42 of file SiPixelGainCalibrationForHLT.cc.
References gainPrecision, maxGain_, maxPed_, minGain_, minPed_, nBinsToUseForEncoding_, and pedPrecision.
Referenced by 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, SiPixelGainCalibrationForHLT::DetRegistry::ncols, AlCaHLTBitMon_ParallelJobs::p, sd, and v_pedestals.
|
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 AlCaHLTBitMon_QueryRunRegistry::data, deadFlag_, encodeGain(), encodePed(), sistrip::extrainfo::gain_, and noisyFlag_.
Referenced by setDeadColumn(), and setNoisyColumn().
|
inline |
Definition at line 78 of file SiPixelGainCalibrationForHLT.h.
References setData().
|
inline |
Definition at line 79 of file SiPixelGainCalibrationForHLT.h.
References setData().
|
friend |
Definition at line 105 of file SiPixelGainCalibrationForHLT.h.
|
friend |
Definition at line 105 of file SiPixelGainCalibrationForHLT.h.
|
private |
Definition at line 102 of file SiPixelGainCalibrationForHLT.h.
Referenced by getGain(), getPed(), getPedAndGain(), setData(), and SiPixelGainCalibrationForHLT().
|
private |
Definition at line 98 of file SiPixelGainCalibrationForHLT.h.
Referenced by decodeGain(), and initialize().
|
private |
Definition at line 95 of file SiPixelGainCalibrationForHLT.h.
Referenced by getDetIds(), getNCols(), getRange(), getRangeAndNCols(), and put().
|
private |
Definition at line 96 of file SiPixelGainCalibrationForHLT.h.
Referenced by encodeGain(), getGainHigh(), and initialize().
|
private |
Definition at line 96 of file SiPixelGainCalibrationForHLT.h.
Referenced by encodePed(), getPedHigh(), and initialize().
|
private |
Definition at line 96 of file SiPixelGainCalibrationForHLT.h.
Referenced by decodeGain(), encodeGain(), getGainLow(), and initialize().
|
private |
Definition at line 96 of file SiPixelGainCalibrationForHLT.h.
Referenced by decodePed(), encodePed(), getPedLow(), and initialize().
|
private |
Definition at line 101 of file SiPixelGainCalibrationForHLT.h.
Referenced by encodeGain(), encodePed(), and initialize().
|
private |
Definition at line 103 of file SiPixelGainCalibrationForHLT.h.
Referenced by getGain(), getPed(), getPedAndGain(), and setData().
|
private |
Definition at line 100 of file SiPixelGainCalibrationForHLT.h.
Referenced by getGain(), getNumberOfRowsToAverageOver(), getPed(), and getPedAndGain().
|
private |
Definition at line 98 of file SiPixelGainCalibrationForHLT.h.
Referenced by decodePed(), and initialize().
|
private |
Definition at line 94 of file SiPixelGainCalibrationForHLT.h.
Referenced by getRange(), getRangeAndNCols(), and put().