Go to the documentation of this file.
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);
const CastorChannelQuality * mChannelQuality
const Item * getValues(DetId fId, bool throwOnFail=true) const
const CastorPedestals * mPedestals
bool makeCastorCalibration(const HcalGenericDetId &fId, CastorCalibrations *fObject, bool pedestalInADC) const
CastorCalibrationsSet mCalibSet
const CastorPedestalWidth * getPedestalWidth(const HcalGenericDetId &fId) const
void setCalibrationWidths(const DetId id, const CastorCalibrationWidths &ca)
const CastorGainWidths * mGainWidths
void setCalibrations(const DetId id, const CastorCalibrations &ca)
const CastorQIECoder * getCastorCoder(const HcalGenericDetId &fId) const
float getWidth(int fCapId) const
get width (sqrt(sigma_i_i)) for capId = 0..3
std::vector< DetId > getAllChannels() const
const CastorPedestal * getPedestal(const HcalGenericDetId &fId) const
CastorCalibrationWidthsSet mCalibWidthSet
const CastorPedestalWidths * mPedestalWidths
const CastorGainWidth * getGainWidth(const HcalGenericDetId &fId) const
const float * getValues() const
get value for all capId = 0..3
const CastorQIEShape * getCastorShape() const
float charge(const CastorQIEShape &fShape, unsigned fAdc, unsigned fCapId) const
ADC [0..127] + capid [0..3] -> fC conversion.
const CastorQIECoder * getCoder(DetId fId) const
get QIE parameters
const CastorGain * getGain(const HcalGenericDetId &fId) const
bool makeCastorCalibrationWidth(const HcalGenericDetId &fId, CastorCalibrationWidths *fObject, bool pedestalInADC) const
#define TYPELOOKUP_DATA_REG(_dataclass_)
const CastorQIEData * mQIEData
const CastorGains * mGains
const CastorElectronicsMap * mElectronicsMap
const CastorChannelStatus * getCastorChannelStatus(const HcalGenericDetId &fId) const
const CastorElectronicsMap * getCastorMapping() const
const CastorQIEShape & getShape() const
get basic shape