#include <SiPixelGainCalibrationForHLTService.h>
|
void | calibrate (uint32_t detID, DigiIterator b, DigiIterator e, float conversionFactor, float offset, int *electron) |
|
float | getGain (const uint32_t &detID, const int &col, const int &row) |
|
float | getPedestal (const uint32_t &detID, const int &col, const int &row) |
|
bool | isDead (const uint32_t &detID, const int &col, const int &row) |
|
bool | isDeadColumn (const uint32_t &detID, const int &col, const int &row) |
|
bool | isNoisy (const uint32_t &detID, const int &col, const int &row) |
|
bool | isNoisyColumn (const uint32_t &detID, const int &col, const int &row) |
|
| SiPixelGainCalibrationForHLTService (const edm::ParameterSet &conf) |
|
| ~SiPixelGainCalibrationForHLTService () |
|
std::vector< uint32_t > | getDetIds () |
|
double | getGainHigh () |
|
double | getGainLow () |
|
double | getPedHigh () |
|
double | getPedLow () |
|
void | setESObjects (const edm::EventSetup &es) |
|
| SiPixelGainCalibrationServicePayloadGetter (const edm::ParameterSet &conf) |
|
virtual | ~SiPixelGainCalibrationServicePayloadGetter () |
|
| SiPixelGainCalibrationServiceBase () |
|
virtual | ~SiPixelGainCalibrationServiceBase () |
|
|
typedef edm::DetSet< PixelDigi >
::const_iterator | DigiIterator |
|
float | getGainByColumn (const uint32_t &detID, const int &col, const int &row, bool &isDeadColumn, bool &isNoisyColumn) |
|
float | getGainByPixel (const uint32_t &detID, const int &col, const int &row, bool &isDeadPixel, bool &isNoisyPixel) |
|
float | getPedestalByColumn (const uint32_t &detID, const int &col, const int &row, bool &isDeadColumn, bool &isNoisyColumn) |
|
float | getPedestalByPixel (const uint32_t &detID, const int &col, const int &row, bool &isDeadPixel, bool &isNoisyPixel) |
|
void | throwExepctionForBadRead (std::string payload, const uint32_t &detID, const int &col, const int &row, double value=-1) const |
|
edm::ParameterSet | conf_ |
|
bool | ESetupInit_ |
|
double | gainHigh_ |
|
double | gainLow_ |
|
int | numberOfRowsAveragedOver_ |
|
int | old_cols |
|
uint32_t | old_detID |
|
SiPixelGainCalibrationForHLT::Range | old_range |
|
int | oldAveragedBlockDataGain_ |
|
int | oldAveragedBlockDataPed_ |
|
int | oldColumnIndexGain_ |
|
int | oldColumnIndexPed_ |
|
float | oldColumnValueGain_ |
|
float | oldColumnValuePed_ |
|
bool | oldThisColumnIsDeadGain_ |
|
bool | oldThisColumnIsDeadPed_ |
|
bool | oldThisColumnIsNoisyGain_ |
|
bool | oldThisColumnIsNoisyPed_ |
|
edm::ESHandle
< SiPixelGainCalibrationForHLT > | ped |
|
double | pedHigh_ |
|
double | pedLow_ |
|
SiPixelGainCalibrationForHLTService::SiPixelGainCalibrationForHLTService |
( |
const edm::ParameterSet & |
conf | ) |
|
|
inlineexplicit |
SiPixelGainCalibrationForHLTService::~SiPixelGainCalibrationForHLTService |
( |
| ) |
|
|
inline |
void SiPixelGainCalibrationForHLTService::calibrate |
( |
uint32_t |
detID, |
|
|
DigiIterator |
b, |
|
|
DigiIterator |
e, |
|
|
float |
conversionFactor, |
|
|
float |
offset, |
|
|
int * |
electron |
|
) |
| |
|
virtual |
Reimplemented from SiPixelGainCalibrationServiceBase.
Definition at line 20 of file SiPixelGainCalibrationForHLTService.cc.
References assert(), cuy::col, alignCSCRings::e, i, isDeadColumn(), isNoisyColumn(), SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::numberOfRowsAveragedOver_, SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::ped, and EcalCondDBWriter_cfi::pedestal.
23 std::tie(range,cols) =
ped->getRangeAndNCols(detID);
27 int oldCol=-1, oldAveragedBlock=-1;
30 int col = di->column();
32 if ( (col!=oldCol) | ( averagedBlock != oldAveragedBlock) ) {
33 oldCol=
col; oldAveragedBlock= averagedBlock;
34 std::tie(pedestal,gain) =
ped->getPedAndGain(col, row, range, cols, isDeadColumn,
isNoisyColumn);
38 float vcal = di->adc() * gain - pedestal*gain;
int numberOfRowsAveragedOver_
edm::DetSet< PixelDigi >::const_iterator DigiIterator
bool isDeadColumn(const uint32_t &detID, const int &col, const int &row)
std::pair< ContainerIterator, ContainerIterator > Range
edm::ESHandle< SiPixelGainCalibrationForHLT > ped
bool isNoisyColumn(const uint32_t &detID, const int &col, const int &row)
float SiPixelGainCalibrationForHLTService::getGain |
( |
const uint32_t & |
detID, |
|
|
const int & |
col, |
|
|
const int & |
row |
|
) |
| |
|
virtual |
Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >.
Definition at line 62 of file SiPixelGainCalibrationForHLTService.cc.
References SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::getGainByColumn(), isDead(), isNoisy(), and SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::throwExepctionForBadRead().
67 if (isDead || isNoisy)
float getGainByColumn(const uint32_t &detID, const int &col, const int &row, bool &isDeadColumn, bool &isNoisyColumn)
void throwExepctionForBadRead(std::string payload, const uint32_t &detID, const int &col, const int &row, double value=-1) const
bool isDead(const uint32_t &detID, const int &col, const int &row)
bool isNoisy(const uint32_t &detID, const int &col, const int &row)
float SiPixelGainCalibrationForHLTService::getPedestal |
( |
const uint32_t & |
detID, |
|
|
const int & |
col, |
|
|
const int & |
row |
|
) |
| |
|
virtual |
Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >.
Definition at line 49 of file SiPixelGainCalibrationForHLTService.cc.
References SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::getPedestalByColumn(), isDead(), isNoisy(), and SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::throwExepctionForBadRead().
54 if (isDead || isNoisy)
float getPedestalByColumn(const uint32_t &detID, const int &col, const int &row, bool &isDeadColumn, bool &isNoisyColumn)
void throwExepctionForBadRead(std::string payload, const uint32_t &detID, const int &col, const int &row, double value=-1) const
bool isDead(const uint32_t &detID, const int &col, const int &row)
bool isNoisy(const uint32_t &detID, const int &col, const int &row)
bool SiPixelGainCalibrationForHLTService::isDead |
( |
const uint32_t & |
detID, |
|
|
const int & |
col, |
|
|
const int & |
row |
|
) |
| |
|
virtual |
Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >.
Definition at line 75 of file SiPixelGainCalibrationForHLTService.cc.
References alignCSCRings::e, SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::getPedestalByColumn(), isNoisy(), and cms::Exception::what().
Referenced by getGain(), getPedestal(), isDeadColumn(), isNoisy(), and isNoisyColumn().
86 edm::LogInfo(
"SiPixelGainCalibrationForHLTService") <<
"Attempting to check if nonexistant pixel is dead. Exception message: " << e.
what();
virtual char const * what() const
float getPedestalByColumn(const uint32_t &detID, const int &col, const int &row, bool &isDeadColumn, bool &isNoisyColumn)
bool isDead(const uint32_t &detID, const int &col, const int &row)
bool isNoisy(const uint32_t &detID, const int &col, const int &row)
bool SiPixelGainCalibrationForHLTService::isDeadColumn |
( |
const uint32_t & |
detID, |
|
|
const int & |
col, |
|
|
const int & |
row |
|
) |
| |
|
virtual |
Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >.
Definition at line 109 of file SiPixelGainCalibrationForHLTService.cc.
References alignCSCRings::e, SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::getGainByColumn(), isDead(), isNoisy(), and cms::Exception::what().
Referenced by calibrate().
120 edm::LogInfo(
"SiPixelGainCalibrationForHLTService") <<
"Attempting to check if nonexistant pixel is dead. Exception message: " << e.
what();
virtual char const * what() const
float getGainByColumn(const uint32_t &detID, const int &col, const int &row, bool &isDeadColumn, bool &isNoisyColumn)
bool isDead(const uint32_t &detID, const int &col, const int &row)
bool isNoisy(const uint32_t &detID, const int &col, const int &row)
bool SiPixelGainCalibrationForHLTService::isNoisy |
( |
const uint32_t & |
detID, |
|
|
const int & |
col, |
|
|
const int & |
row |
|
) |
| |
|
virtual |
Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >.
Definition at line 92 of file SiPixelGainCalibrationForHLTService.cc.
References alignCSCRings::e, SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::getPedestalByColumn(), isDead(), and cms::Exception::what().
Referenced by getGain(), getPedestal(), isDead(), isDeadColumn(), and isNoisyColumn().
103 edm::LogInfo(
"SiPixelGainCalibrationForHLTService") <<
"Attempting to check if nonexistant pixel is noisy. Exception message: " << e.
what();
virtual char const * what() const
float getPedestalByColumn(const uint32_t &detID, const int &col, const int &row, bool &isDeadColumn, bool &isNoisyColumn)
bool isDead(const uint32_t &detID, const int &col, const int &row)
bool isNoisy(const uint32_t &detID, const int &col, const int &row)
bool SiPixelGainCalibrationForHLTService::isNoisyColumn |
( |
const uint32_t & |
detID, |
|
|
const int & |
col, |
|
|
const int & |
row |
|
) |
| |
|
virtual |
Implements SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >.
Definition at line 126 of file SiPixelGainCalibrationForHLTService.cc.
References alignCSCRings::e, SiPixelGainCalibrationServicePayloadGetter< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >::getGainByColumn(), isDead(), isNoisy(), and cms::Exception::what().
Referenced by calibrate().
137 edm::LogInfo(
"SiPixelGainCalibrationForHLTService") <<
"Attempting to check if nonexistant pixel is noisy. Exception message: " << e.
what();
virtual char const * what() const
float getGainByColumn(const uint32_t &detID, const int &col, const int &row, bool &isDeadColumn, bool &isNoisyColumn)
bool isDead(const uint32_t &detID, const int &col, const int &row)
bool isNoisy(const uint32_t &detID, const int &col, const int &row)