17 mPedestals (0), mPedestalWidths (0),
18 mGains (0), mGainWidths (0),
19 mQieShapeCache (0), mQIEData(0),
27 mUpdateCalibrations (
true), mUpdateCalibWidths(
true)
72 for (std::vector<DetId>::const_iterator
id=ids.begin();
id!=ids.end(); ++id) {
94 for (std::vector<DetId>::const_iterator
id=ids.begin();
id!=ids.end(); ++id) {
115 if (pedestal && gain && shape && coder && respcorr && timecorr && lutcorr) {
117 for (
int i=0;
i<4;
i++) {
119 int x1=(int)std::floor(x);
120 int x2=(int)std::floor(x+1);
122 float y2=coder->
charge(*shape,x2,
i);
123 float y1=coder->
charge(*shape,x1,
i);
124 pedTrue[
i]=(y2-y1)*(x-x1)+y1;
130 if (pedestal && gain && respcorr && timecorr && lutcorr) {
147 if (pedestalwidth && gainwidth && shape && coder) {
148 float pedTrueWidth[4];
149 for (
int i=0;
i<4;
i++) {
153 float y2=coder->
charge(*shape,1,
i);
154 float y1=coder->
charge(*shape,0,
i);
155 pedTrueWidth[
i]=(y2-y1)*x;
161 if (pedestalwidth && gainwidth) {
162 float pedestalWidth [4];
163 for (
int i = 0;
i < 4;
i++) pedestalWidth [
i] = pedestalwidth->
getWidth (
i);
const HcalLUTCorrs * mLUTCorrs
const HcalGainWidth * getGainWidth(const HcalGenericDetId &fId) const
const HcalQIECoder * getCoder(DetId fId) const
get QIE parameters
const HcalChannelStatus * getHcalChannelStatus(const HcalGenericDetId &fId) const
const HcalL1TriggerObjects * mL1TriggerObjects
const HcalPFCorrs * mPFCorrs
const Item * getValues(DetId fId, bool throwOnFail=true) const
const HcalChannelQuality * mChannelQuality
const HcalLutMetadata * mLutMetadata
const float * getValues() const
get value for all capId = 0..3
const HcalPedestalWidth * getPedestalWidth(const HcalGenericDetId &fId) const
const HcalRespCorr * getHcalRespCorr(const HcalGenericDetId &fId) const
const HcalLUTCorr * getHcalLUTCorr(const HcalGenericDetId &fId) const
const HcalTimeCorr * getHcalTimeCorr(const HcalGenericDetId &fId) const
void buildCalibWidths() const
HcalCalibrationsSet mCalibSet
std::vector< DetId > getAllChannels() const
const HcalL1TriggerObject * getHcalL1TriggerObject(const HcalGenericDetId &fId) const
bool makeHcalCalibration(const HcalGenericDetId &fId, HcalCalibrations *fObject, bool pedestalInADC) const
const HcalQIEShape & getShape(DetId fId) const
get basic shape
const HcalLutMetadata * getHcalLutMetadata() const
bool makeHcalCalibrationWidth(const HcalGenericDetId &fId, HcalCalibrationWidths *fObject, bool pedestalInADC) const
void setCalibrationWidths(const DetId id, const HcalCalibrationWidths &ca)
const float * getValues() const
get value for all capId = 0..3
const HcalPedestalWidths * mPedestalWidths
const HcalRespCorrs * mRespCorrs
const HcalCalibrationWidths & getHcalCalibrationWidths(const HcalGenericDetId &fId) const
HcalDbService(const edm::ParameterSet &)
const HcalZSThreshold * getHcalZSThreshold(const HcalGenericDetId &fId) const
const HcalElectronicsMap * mElectronicsMap
const HcalGainWidths * mGainWidths
const HcalTimeCorrs * mTimeCorrs
#define TYPELOOKUP_DATA_REG(_dataclass_)
const HcalCalibrationWidths & getCalibrationWidths(const DetId id) const
HcalCalibrationWidthsSet mCalibWidthSet
const HcalPFCorr * getHcalPFCorr(const HcalGenericDetId &fId) const
const HcalTopology * getTopologyUsed() const
const HcalZSThresholds * mZSThresholds
const HcalQIEData * mQIEData
const HcalCalibrations & getCalibrations(const DetId id) const
const HcalGain * getGain(const HcalGenericDetId &fId) const
float getWidth(int fCapId) const
get width (sqrt(sigma_i_i)) for capId = 0..3
const HcalQIECoder * getHcalCoder(const HcalGenericDetId &fId) const
const HcalQIEShape * getHcalShape(const HcalGenericDetId &fId) const
void buildCalibrations() const
void setCalibrations(const DetId id, const HcalCalibrations &ca)
const HcalElectronicsMap * getHcalMapping() const
const float * getValues() const
get value for all capId = 0..3
const HcalPedestals * mPedestals
const HcalCalibrations & getHcalCalibrations(const HcalGenericDetId &fId) const
const HcalPedestal * getPedestal(const HcalGenericDetId &fId) const
const HcalTopology * topo() const
float charge(const HcalQIEShape &fShape, unsigned fAdc, unsigned fCapId) const
ADC [0..127] + capid [0..3] -> fC conversion.