#include <CondFormats/CTPPSRedoutObjects/src/CTPPSPixelGainCalibration.cc>
Classes | |
struct | DetRegistry |
Public Member Functions | |
CTPPSPixelGainCalibration () | |
CTPPSPixelGainCalibration (const uint32_t &detId, const uint32_t &sensorSize, const uint32_t &nCols) | |
CTPPSPixelGainCalibration (float minPed, float maxPed, float minGain, float maxGain) | |
CTPPSPixelGainCalibration (const uint32_t &detid, const std::vector< float > &peds, const std::vector< float > &gains, float minPed=0., float maxPed=255., float minGain=0., float maxGain=255.) | |
uint32_t | getDetId () const |
float | getGain (const int &col, const int &row) const |
float | getGain (const uint32_t ipix) const |
double | getGainHigh () const |
double | getGainLow () const |
uint32_t | getIBegin () const |
uint32_t | getIEnd () const |
uint32_t | getNCols () const |
uint32_t | getNRows () const |
float | getPed (const int &col, const int &row) const |
float | getPed (const uint32_t ipix) const |
double | getPedHigh () const |
double | getPedLow () const |
void | initialize () |
bool | isDead (const uint32_t ipix) const |
bool | isNoisy (const uint32_t ipix) const |
void | putData (uint32_t ipix, float ped, float gain) |
void | setDeadPixel (int ipix) |
void | setGainsPeds (const uint32_t &detId, const std::vector< float > &peds, const std::vector< float > &gains) |
void | setNoisyPixel (int ipix) |
~CTPPSPixelGainCalibration () | |
Private Member Functions | |
void | resetPixData (uint32_t ipix, float ped, float gain) |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
void | setIndexes (const uint32_t &detId) |
Private Attributes | |
DetRegistry | indexes |
float | maxGain_ |
float | maxPed_ |
float | minGain_ |
float | minPed_ |
std::vector< float > | v_gains |
std::vector< float > | v_pedestals |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
class | CTPPSPixelGainCalibrations |
Description: Gain calibration object for the CTPPS 3D Pixels. Store gain/pedestal information at pixel granularity
Implementation: <Notes on="" implementation>="">
Definition at line 27 of file CTPPSPixelGainCalibration.h.
CTPPSPixelGainCalibration::CTPPSPixelGainCalibration | ( | ) |
Definition at line 9 of file CTPPSPixelGainCalibration.cc.
References CTPPSPixelGainCalibration::DetRegistry::detid, CTPPSPixelGainCalibration::DetRegistry::ibegin, CTPPSPixelGainCalibration::DetRegistry::iend, indexes, CTPPSPixelGainCalibration::DetRegistry::ncols, and CTPPSPixelGainCalibration::DetRegistry::nrows.
CTPPSPixelGainCalibration::CTPPSPixelGainCalibration | ( | const uint32_t & | detId, |
const uint32_t & | sensorSize = 24960 , |
||
const uint32_t & | nCols = 156 |
||
) |
Definition at line 25 of file CTPPSPixelGainCalibration.cc.
References CTPPSPixelGainCalibration::DetRegistry::detid, CTPPSPixelGainCalibration::DetRegistry::ibegin, CTPPSPixelGainCalibration::DetRegistry::iend, indexes, CTPPSPixelGainCalibration::DetRegistry::ncols, and CTPPSPixelGainCalibration::DetRegistry::nrows.
CTPPSPixelGainCalibration::CTPPSPixelGainCalibration | ( | float | minPed, |
float | maxPed, | ||
float | minGain, | ||
float | maxGain | ||
) |
Definition at line 44 of file CTPPSPixelGainCalibration.cc.
References CTPPSPixelGainCalibration::DetRegistry::detid, CTPPSPixelGainCalibration::DetRegistry::ibegin, CTPPSPixelGainCalibration::DetRegistry::iend, indexes, CTPPSPixelGainCalibration::DetRegistry::ncols, and CTPPSPixelGainCalibration::DetRegistry::nrows.
CTPPSPixelGainCalibration::CTPPSPixelGainCalibration | ( | const uint32_t & | detid, |
const std::vector< float > & | peds, | ||
const std::vector< float > & | gains, | ||
float | minPed = 0. , |
||
float | maxPed = 255. , |
||
float | minGain = 0. , |
||
float | maxGain = 255. |
||
) |
Definition at line 61 of file CTPPSPixelGainCalibration.cc.
References setGainsPeds().
|
inline |
Definition at line 48 of file CTPPSPixelGainCalibration.h.
|
inline |
Definition at line 78 of file CTPPSPixelGainCalibration.h.
References CTPPSPixelGainCalibration::DetRegistry::detid, and indexes.
Referenced by CTPPSPixelGainCalibrations::setGainCalibration().
float CTPPSPixelGainCalibration::getGain | ( | const int & | col, |
const int & | row | ||
) | const |
Definition at line 165 of file CTPPSPixelGainCalibration.cc.
References Exception, indexes, CTPPSPixelGainCalibration::DetRegistry::ncols, and CTPPSPixelGainCalibration::DetRegistry::nrows.
Referenced by CTPPSPixelGainCalibrations::setGainCalibration(), and setNoisyPixel().
|
inline |
Definition at line 74 of file CTPPSPixelGainCalibration.h.
References v_gains.
|
inline |
|
inline |
|
inline |
Definition at line 80 of file CTPPSPixelGainCalibration.h.
References CTPPSPixelGainCalibration::DetRegistry::ibegin, and indexes.
Referenced by CTPPSPixelGainCalibrations::setGainCalibration().
|
inline |
Definition at line 81 of file CTPPSPixelGainCalibration.h.
References CTPPSPixelGainCalibration::DetRegistry::iend, and indexes.
Referenced by CTPPSPixelGainCalibrations::setGainCalibration().
|
inline |
Definition at line 79 of file CTPPSPixelGainCalibration.h.
References indexes, and CTPPSPixelGainCalibration::DetRegistry::ncols.
Referenced by CTPPSPixelGainCalibrations::setGainCalibration().
|
inline |
Definition at line 82 of file CTPPSPixelGainCalibration.h.
References indexes, CTPPSPixelGainCalibration::DetRegistry::nrows, resetPixData(), and setIndexes().
Referenced by CTPPSPixelGainCalibrations::setGainCalibration().
float CTPPSPixelGainCalibration::getPed | ( | const int & | col, |
const int & | row | ||
) | const |
Definition at line 128 of file CTPPSPixelGainCalibration.cc.
References Exception, indexes, CTPPSPixelGainCalibration::DetRegistry::ncols, and CTPPSPixelGainCalibration::DetRegistry::nrows.
Referenced by CTPPSPixelGainCalibrations::setGainCalibration(), and setNoisyPixel().
|
inline |
Definition at line 73 of file CTPPSPixelGainCalibration.h.
References v_pedestals.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 75 of file CTPPSPixelGainCalibration.h.
References v_pedestals.
Referenced by CTPPSPixelGainCalibrations::setGainCalibration().
|
inline |
Definition at line 76 of file CTPPSPixelGainCalibration.h.
References v_gains.
Referenced by CTPPSPixelGainCalibrations::setGainCalibration().
void CTPPSPixelGainCalibration::putData | ( | uint32_t | ipix, |
float | ped, | ||
float | gain | ||
) |
Definition at line 90 of file CTPPSPixelGainCalibration.cc.
References CTPPSPixelGainCalibration::DetRegistry::detid, Exception, indexes, resetPixData(), v_gains, and v_pedestals.
Referenced by setDeadPixel(), setGainsPeds(), and setNoisyPixel().
|
private |
Definition at line 119 of file CTPPSPixelGainCalibration.cc.
References muonCSCDigis_cfi::gain, v_gains, and v_pedestals.
Referenced by getNRows(), and putData().
|
private |
|
inline |
Definition at line 61 of file CTPPSPixelGainCalibration.h.
References putData().
void CTPPSPixelGainCalibration::setGainsPeds | ( | const uint32_t & | detId, |
const std::vector< float > & | peds, | ||
const std::vector< float > & | gains | ||
) |
Definition at line 72 of file CTPPSPixelGainCalibration.cc.
References CTPPSPixelGainCalibration::DetRegistry::detid, Exception, mps_fire::i, CTPPSPixelGainCalibration::DetRegistry::ibegin, CTPPSPixelGainCalibration::DetRegistry::iend, indexes, CTPPSPixelGainCalibration::DetRegistry::ncols, CTPPSPixelGainCalibration::DetRegistry::nrows, and putData().
Referenced by CTPPSPixelGainCalibration(), and initialize().
|
private |
Definition at line 111 of file CTPPSPixelGainCalibration.cc.
References CTPPSPixelGainCalibration::DetRegistry::detid, CTPPSPixelGainCalibration::DetRegistry::ibegin, CTPPSPixelGainCalibration::DetRegistry::iend, indexes, CTPPSPixelGainCalibration::DetRegistry::ncols, CTPPSPixelGainCalibration::DetRegistry::nrows, and v_pedestals.
Referenced by getNRows(), and CTPPSPixelGainCalibrations::setGainCalibration().
|
inline |
Definition at line 62 of file CTPPSPixelGainCalibration.h.
References cuy::col, muonCSCDigis_cfi::gain, getGain(), getPed(), and putData().
|
friend |
Definition at line 94 of file CTPPSPixelGainCalibration.h.
|
friend |
Definition at line 94 of file CTPPSPixelGainCalibration.h.
|
friend |
Definition at line 28 of file CTPPSPixelGainCalibration.h.
|
private |
Definition at line 90 of file CTPPSPixelGainCalibration.h.
Referenced by CTPPSPixelGainCalibration(), getDetId(), getGain(), getIBegin(), getIEnd(), getNCols(), getNRows(), getPed(), putData(), setGainsPeds(), and setIndexes().
|
private |
Definition at line 92 of file CTPPSPixelGainCalibration.h.
Referenced by getGainHigh().
|
private |
Definition at line 92 of file CTPPSPixelGainCalibration.h.
Referenced by getPedHigh().
|
private |
Definition at line 92 of file CTPPSPixelGainCalibration.h.
Referenced by getGainLow().
|
private |
Definition at line 92 of file CTPPSPixelGainCalibration.h.
Referenced by getPedLow().
|
private |
Definition at line 89 of file CTPPSPixelGainCalibration.h.
Referenced by getGain(), isNoisy(), putData(), and resetPixData().
|
private |
Definition at line 88 of file CTPPSPixelGainCalibration.h.
Referenced by getPed(), isDead(), putData(), resetPixData(), and setIndexes().