33 catiaGainRatio_ = p.
getParameter<
double>(
"CATIAGainRatio");
34 setWhatProduced(
this);
38 auto prod = std::make_unique<EcalCATIAGainRatios>();
39 for (
int iChannel = 0; iChannel <
kEBChannels; iChannel++) {
41 double val = catiaGainRatio_;
42 prod->setValue(myEBDetId.
rawId(),
val);
constexpr uint32_t rawId() const
get the raw id
std::unique_ptr< EcalCATIAGainRatios > ReturnType
static constexpr unsigned int kEBChannels
EcalCATIAGainRatiosESProducer(const edm::ParameterSet &p)
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
static EBDetId unhashIndex(int hi)
get a DetId from a compact index for arrays
ReturnType produce(const EcalCATIAGainRatiosRcd &iRecord)