17 : mPedestals(nullptr),
18 mPedestalWidths(nullptr),
22 mChannelQuality(nullptr),
23 mElectronicsMap(nullptr) {}
27 bool pedestalInADC)
const {
37 for (
int i = 0;
i < 4;
i++) {
39 int x1 = (
int)std::floor(
x);
40 int x2 = (
int)std::floor(
x + 1);
71 for (std::vector<DetId>::const_iterator
id = ids.begin();
id != ids.end(); ++
id) {
95 for (std::vector<DetId>::const_iterator
id = ids.begin();
id != ids.end(); ++
id) {
108 bool pedestalInADC)
const {
115 if (pedestalwidth && gainwidth && shape && coder) {
116 float pedTrueWidth[4];
117 for (
int i = 0;
i < 4;
i++) {
123 pedTrueWidth[
i] = (
y2 -
y1) *
x;
129 if (pedestalwidth && gainwidth) {
130 float pedestalWidth[4];
131 for (
int i = 0;
i < 4;
i++)
132 pedestalWidth[
i] = pedestalwidth->
getWidth(
i);
float charge(const CastorQIEShape &fShape, unsigned fAdc, unsigned fCapId) const
ADC [0..127] + capid [0..3] -> fC conversion.
const Item * getValues(DetId fId, bool throwOnFail=true) const
void setCalibrationWidths(const DetId id, const CastorCalibrationWidths &ca)
const CastorQIEData * mQIEData
const CastorPedestals * mPedestals
const float * getValues() const
get value for all capId = 0..3
const CastorGainWidth * getGainWidth(const HcalGenericDetId &fId) const
const CastorGainWidths * mGainWidths
std::vector< DetId > getAllChannels() const
const CastorQIEShape * getCastorShape() const
const CastorElectronicsMap * mElectronicsMap
CastorCalibrationsSet mCalibSet
void setCalibrations(const DetId id, const CastorCalibrations &ca)
const CastorGain * getGain(const HcalGenericDetId &fId) const
bool makeCastorCalibrationWidth(const HcalGenericDetId &fId, CastorCalibrationWidths *fObject, bool pedestalInADC) const
const CastorElectronicsMap * getCastorMapping() const
#define TYPELOOKUP_DATA_REG(_dataclass_)
const CastorPedestalWidths * mPedestalWidths
const CastorPedestalWidth * getPedestalWidth(const HcalGenericDetId &fId) const
const CastorPedestal * getPedestal(const HcalGenericDetId &fId) const
const CastorChannelQuality * mChannelQuality
const CastorGains * mGains
CastorCalibrationWidthsSet mCalibWidthSet
const CastorQIEShape & getShape() const
get basic shape
const CastorChannelStatus * getCastorChannelStatus(const HcalGenericDetId &fId) const
const CastorQIECoder * getCoder(DetId fId) const
get QIE parameters
const CastorQIECoder * getCastorCoder(const HcalGenericDetId &fId) const
float getWidth(int fCapId) const
get width (sqrt(sigma_i_i)) for capId = 0..3
bool makeCastorCalibration(const HcalGenericDetId &fId, CastorCalibrations *fObject, bool pedestalInADC) const