|
|
Go to the documentation of this file.
17 : mPedestals(nullptr),
18 mPedestalWidths(nullptr),
19 mEffectivePedestals(nullptr),
20 mEffectivePedestalWidths(nullptr),
25 mElectronicsMap(nullptr),
26 mFrontEndMap(nullptr),
28 mL1TriggerObjects(nullptr),
32 mLutMetadata(nullptr),
33 mSiPMParameters(nullptr),
34 mSiPMCharacteristics(nullptr),
35 mTPChannelParameters(nullptr),
36 mTPParameters(nullptr),
40 mCalibWidthSet(nullptr) {}
67 return (*
mCalibSet.load(std::memory_order_acquire)).getCalibrations(fId);
72 return (*
mCalibWidthSet.load(std::memory_order_acquire)).getCalibrationWidths(fId);
77 return mCalibSet.load(std::memory_order_acquire);
91 if (!
mCalibSet.load(std::memory_order_acquire)) {
101 for (std::vector<DetId>::const_iterator
id = ids.begin();
id != ids.end(); ++
id) {
106 ptr->setCalibrations(*
id, tool);
111 bool exchanged =
mCalibSet.compare_exchange_strong(expect, cptr, std::memory_order_acq_rel);
133 for (std::vector<DetId>::const_iterator
id = ids.begin();
id != ids.end(); ++
id) {
138 ptr->setCalibrationWidths(*
id, tool);
143 bool exchanged =
mCalibWidthSet.compare_exchange_strong(expect, cptr, std::memory_order_acq_rel);
161 if (!coder || !shape)
164 for (
int i = 0;
i < 4;
i++) {
170 int x1 = (
int)std::floor(
x);
171 int x2 = (
int)std::floor(
x + 1);
182 bool effPedestalInADC)
const {
195 bool effconverted =
convertPedestals(fId, effpedestal, effPedTrue, effPedestalInADC);
197 if (
pedestal && effpedestal &&
converted && effconverted &&
gain && respcorr && timecorr && lutcorr) {
218 if (!coder || !shape)
221 for (
int i = 0;
i < 4;
i++) {
228 unsigned x1 = static_cast<unsigned>(std::floor(
y));
229 unsigned x2 = static_cast<unsigned>(std::floor(
y + 1.));
230 unsigned iun = static_cast<unsigned>(
i);
233 pedTrueWidth[
i] = (
y2 -
y1) *
x;
241 bool effPedestalInADC)
const {
250 float pedTrueWidth[4];
253 float effPedTrueWidth[4];
254 bool effconverted =
convertPedestalWidths(fId, effpedestalwidth, effpedestal, effPedTrueWidth, effPedestalInADC);
255 if (pedestalwidth && effpedestalwidth && gainwidth &&
converted && effconverted) {
392 bool throwOnFail)
const {
const HcalFrontEndMap * mFrontEndMap
const HcalZSThresholds * mZSThresholds
const HcalTPParameters * mTPParameters
const HcalL1TriggerObjects * mL1TriggerObjects
const HcalCalibrationWidths & getHcalCalibrationWidths(const HcalGenericDetId &fId) const
const HcalTimeCorr * getHcalTimeCorr(const HcalGenericDetId &fId) const
const HcalGainWidth * getGainWidth(const HcalGenericDetId &fId) const
const HcalSiPMCharacteristics * getHcalSiPMCharacteristics() const
float charge(const HcalQIEShape &fShape, unsigned fAdc, unsigned fCapId) const
ADC [0..127] + capid [0..3] -> fC conversion.
bool makeHcalCalibration(const HcalGenericDetId &fId, HcalCalibrations *fObject, bool pedestalInADC, bool effPedestalInADC) const
const HcalSiPMParameters * mSiPMParameters
const HcalTPChannelParameters * mTPChannelParameters
const HcalPedestal * getPedestal(const HcalGenericDetId &fId) const
const HcalElectronicsMap * mElectronicsMap
const HcalGain * getGain(const HcalGenericDetId &fId) const
const HcalPFCorrs * mPFCorrs
const Item * getValues(DetId fId, bool throwOnFail=true) const
const HcalQIEShape * getHcalShape(const HcalGenericDetId &fId) const
const HcalTimeCorrs * mTimeCorrs
const HcalElectronicsMap * getHcalMapping() const
const HcalCalibrations & getHcalCalibrations(const HcalGenericDetId &fId) const
const HcalQIECoder * getCoder(DetId fId) const
get QIE parameters
const HcalMCParam * getHcalMCParam(const HcalGenericDetId &fId) const
const HcalQIECoder * getHcalCoder(const HcalGenericDetId &fId) const
const HcalCalibrationWidthsSet * getHcalCalibrationWidthsSet() const
const HcalPedestalWidth * getPedestalWidth(const HcalGenericDetId &fId) const
bool convertPedestalWidths(const HcalGenericDetId &fId, const HcalPedestalWidth *pedestalwidth, const HcalPedestal *pedestal, float *pedTrueWidth, bool inADC) const
const HcalZSThreshold * getHcalZSThreshold(const HcalGenericDetId &fId) const
const HcalRespCorrs * mRespCorrs
std::atomic< HcalCalibrationWidthsSet const * > mCalibWidthSet
const HcalPedestalWidths * mEffectivePedestalWidths
const HcalQIEShape & getShape(int qieType) const
get basic shape
const HcalPedestals * mEffectivePedestals
const HcalTPParameters * getHcalTPParameters() const
const HcalLutMetadata * mLutMetadata
const HcalRecoParam * getHcalRecoParam(const HcalGenericDetId &fId) const
const HcalQIEType * getHcalQIEType(const HcalGenericDetId &fId) const
const HcalRecoParams * mRecoParams
const HcalMCParams * mMCParams
const HcalPFCorr * getHcalPFCorr(const HcalGenericDetId &fId) const
bool makeHcalCalibrationWidth(const HcalGenericDetId &fId, HcalCalibrationWidths *fObject, bool pedestalInADC, bool effPedestalInADC) const
const HcalPedestals * mPedestals
void buildCalibrations() const
std::vector< DetId > getAllChannels() const
const HcalTopology * topo() const
const HcalRespCorr * getHcalRespCorr(const HcalGenericDetId &fId) const
bool convertPedestals(const HcalGenericDetId &fId, const HcalPedestal *pedestal, float *pedTrue, bool inADC) const
const HcalCalibrationsSet * getHcalCalibrationsSet() const
void buildCalibWidths() const
const HcalTopology * getTopologyUsed() const
const HcalGainWidths * mGainWidths
std::atomic< HcalCalibrationsSet const * > mCalibSet
const HcalQIEData * mQIEData
#define TYPELOOKUP_DATA_REG(_dataclass_)
const float * getValues() const
get value for all capId = 0..3
const HcalPedestalWidths * mPedestalWidths
const HcalPedestal * getEffectivePedestal(const HcalGenericDetId &fId) const
const HcalChannelQuality * mChannelQuality
const HcalPedestalWidth * getEffectivePedestalWidth(const HcalGenericDetId &fId) const
const HcalSiPMParameter * getHcalSiPMParameter(const HcalGenericDetId &fId) const
const HcalChannelStatus * getHcalChannelStatus(const HcalGenericDetId &fId) const
const HcalLUTCorrs * mLUTCorrs
const HcalLutMetadata * getHcalLutMetadata() const
const HcalSiPMCharacteristics * mSiPMCharacteristics
const HcalTPChannelParameter * getHcalTPChannelParameter(const HcalGenericDetId &fId, bool throwOnFail=true) const
float getWidth(int fCapId) const
get width (sqrt(sigma_i_i)) for capId = 0..3
const HcalLUTCorr * getHcalLUTCorr(const HcalGenericDetId &fId) const
const HcalL1TriggerObject * getHcalL1TriggerObject(const HcalGenericDetId &fId) const
const HcalQIETypes * mQIETypes
const HcalFrontEndMap * getHcalFrontEndMapping() const