#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 20 of file CTPPSPixelGainCalibration.cc.
References hcalRecHitTable_cff::detId, 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 37 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 49 of file CTPPSPixelGainCalibration.cc.
References ALCARECOPPSCalTrackBasedSel_cff::detid, ecalph2::gains, and setGainsPeds().
|
inline |
Definition at line 51 of file CTPPSPixelGainCalibration.h.
|
inline |
Definition at line 76 of file CTPPSPixelGainCalibration.h.
References CTPPSPixelGainCalibration::DetRegistry::detid, and indexes.
Referenced by RPixDetClusterizer::calibrate(), RPixDummyROCSimulator::ConvertChargeToHits(), and CTPPSPixelGainCalibrations::setGainCalibration().
float CTPPSPixelGainCalibration::getGain | ( | const int & | col, |
const int & | row | ||
) | const |
Definition at line 136 of file CTPPSPixelGainCalibration.cc.
References cuy::col, Exception, indexes, CTPPSPixelGainCalibration::DetRegistry::ncols, and CTPPSPixelGainCalibration::DetRegistry::nrows.
Referenced by CTPPSPixGainCalibsESAnalyzer::analyze(), RPixDetClusterizer::calibrate(), RPixDummyROCSimulator::ConvertChargeToHits(), and CTPPSPixelGainCalibrations::setGainCalibration().
|
inline |
Definition at line 72 of file CTPPSPixelGainCalibration.h.
References v_gains.
|
inline |
|
inline |
|
inline |
Definition at line 78 of file CTPPSPixelGainCalibration.h.
References CTPPSPixelGainCalibration::DetRegistry::ibegin, and indexes.
Referenced by CTPPSPixelGainCalibrations::setGainCalibration().
|
inline |
Definition at line 79 of file CTPPSPixelGainCalibration.h.
References CTPPSPixelGainCalibration::DetRegistry::iend, and indexes.
Referenced by CTPPSPixGainCalibsESAnalyzer::analyze(), and CTPPSPixelGainCalibrations::setGainCalibration().
|
inline |
Definition at line 77 of file CTPPSPixelGainCalibration.h.
References indexes, and CTPPSPixelGainCalibration::DetRegistry::ncols.
Referenced by CTPPSPixGainCalibsESAnalyzer::analyze(), RPixDummyROCSimulator::ConvertChargeToHits(), and CTPPSPixelGainCalibrations::setGainCalibration().
|
inline |
Definition at line 80 of file CTPPSPixelGainCalibration.h.
References indexes, and CTPPSPixelGainCalibration::DetRegistry::nrows.
Referenced by CTPPSPixGainCalibsESAnalyzer::analyze(), and CTPPSPixelGainCalibrations::setGainCalibration().
float CTPPSPixelGainCalibration::getPed | ( | const int & | col, |
const int & | row | ||
) | const |
Definition at line 122 of file CTPPSPixelGainCalibration.cc.
References cuy::col, Exception, indexes, CTPPSPixelGainCalibration::DetRegistry::ncols, and CTPPSPixelGainCalibration::DetRegistry::nrows.
Referenced by CTPPSPixGainCalibsESAnalyzer::analyze(), RPixDetClusterizer::calibrate(), RPixDummyROCSimulator::ConvertChargeToHits(), and CTPPSPixelGainCalibrations::setGainCalibration().
|
inline |
Definition at line 71 of file CTPPSPixelGainCalibration.h.
References v_pedestals.
|
inline |
|
inline |
|
inline |
Definition at line 53 of file CTPPSPixelGainCalibration.h.
|
inline |
Definition at line 73 of file CTPPSPixelGainCalibration.h.
References v_pedestals.
Referenced by CTPPSPixGainCalibsESAnalyzer::analyze(), and CTPPSPixelGainCalibrations::setGainCalibration().
|
inline |
Definition at line 74 of file CTPPSPixelGainCalibration.h.
References v_gains.
Referenced by CTPPSPixGainCalibsESAnalyzer::analyze(), and CTPPSPixelGainCalibrations::setGainCalibration().
void CTPPSPixelGainCalibration::putData | ( | uint32_t | ipix, |
float | ped, | ||
float | gain | ||
) |
Definition at line 84 of file CTPPSPixelGainCalibration.cc.
References CTPPSPixelGainCalibration::DetRegistry::detid, Exception, Hcal_Conditions_forGlobalTag_cff::gain, indexes, QIE10Task_cfi::ped, resetPixData(), v_gains, and v_pedestals.
Referenced by WriteCTPPSPixGainCalibrations::fillDB(), setDeadPixel(), setGainsPeds(), and setNoisyPixel().
|
private |
Definition at line 113 of file CTPPSPixelGainCalibration.cc.
References Hcal_Conditions_forGlobalTag_cff::gain, QIE10Task_cfi::ped, v_gains, and v_pedestals.
Referenced by putData().
|
private |
|
inline |
Definition at line 64 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 62 of file CTPPSPixelGainCalibration.cc.
References ALCARECOPPSCalTrackBasedSel_cff::detid, CTPPSPixelGainCalibration::DetRegistry::detid, Exception, ecalph2::gains, mps_fire::i, CTPPSPixelGainCalibration::DetRegistry::ibegin, CTPPSPixelGainCalibration::DetRegistry::iend, indexes, CTPPSPixelGainCalibration::DetRegistry::ncols, CTPPSPixelGainCalibration::DetRegistry::nrows, and putData().
Referenced by CTPPSPixelGainCalibration().
|
private |
Definition at line 105 of file CTPPSPixelGainCalibration.cc.
References ALCARECOPPSCalTrackBasedSel_cff::detid, CTPPSPixelGainCalibration::DetRegistry::detid, CTPPSPixelGainCalibration::DetRegistry::ibegin, CTPPSPixelGainCalibration::DetRegistry::iend, indexes, CTPPSPixelGainCalibration::DetRegistry::ncols, CTPPSPixelGainCalibration::DetRegistry::nrows, and v_pedestals.
Referenced by CTPPSPixelGainCalibrations::setGainCalibration().
|
inline |
Definition at line 65 of file CTPPSPixelGainCalibration.h.
References putData().
|
friend |
Definition at line 92 of file CTPPSPixelGainCalibration.h.
|
friend |
Definition at line 92 of file CTPPSPixelGainCalibration.h.
|
friend |
Definition at line 28 of file CTPPSPixelGainCalibration.h.
|
private |
Definition at line 88 of file CTPPSPixelGainCalibration.h.
Referenced by CTPPSPixelGainCalibration(), getDetId(), getGain(), getIBegin(), getIEnd(), getNCols(), getNRows(), getPed(), putData(), setGainsPeds(), and setIndexes().
|
private |
Definition at line 90 of file CTPPSPixelGainCalibration.h.
Referenced by getGainHigh().
|
private |
Definition at line 90 of file CTPPSPixelGainCalibration.h.
Referenced by getPedHigh().
|
private |
Definition at line 90 of file CTPPSPixelGainCalibration.h.
Referenced by getGainLow().
|
private |
Definition at line 90 of file CTPPSPixelGainCalibration.h.
Referenced by getPedLow().
|
private |
Definition at line 87 of file CTPPSPixelGainCalibration.h.
Referenced by getGain(), isNoisy(), putData(), and resetPixData().
|
private |
Definition at line 86 of file CTPPSPixelGainCalibration.h.
Referenced by getPed(), isDead(), putData(), resetPixData(), and setIndexes().