20 typedef std::unique_ptr<EcalLiteDTUPedestalsMap>
ReturnType;
35 meanPedestalsGain10_ =
p.getParameter<
double>(
"MeanPedestalsGain10");
36 rmsPedestalsGain10_ =
p.getParameter<
double>(
"RMSPedestalsGain10");
37 meanPedestalsGain1_ =
p.getParameter<
double>(
"MeanPedestalsGain1");
38 rmsPedestalsGain1_ =
p.getParameter<
double>(
"RMSPedestalsGain1");
39 setWhatProduced(
this);
44 auto prod = std::make_unique<EcalLiteDTUPedestalsMap>();
49 ped.
setMean(0, meanPedestalsGain10_);
50 ped.
setRMS(0, rmsPedestalsGain10_);
52 ped.
setMean(1, meanPedestalsGain1_);
53 ped.
setRMS(1, rmsPedestalsGain1_);
55 prod->insert(std::make_pair(myEBDetId, ped));
double meanPedestalsGain10_
ReturnType produce(const EcalLiteDTUPedestalsRcd &iRecord)
EcalLiteDTUPedestalsESProducer(const edm::ParameterSet &p)
double rmsPedestalsGain10_
static constexpr unsigned int kEBChannels
double rmsPedestalsGain1_
double meanPedestalsGain1_
int setMean(unsigned int i, float value)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
static EBDetId unhashIndex(int hi)
get a DetId from a compact index for arrays
int setRMS(unsigned int i, float value)
std::unique_ptr< EcalLiteDTUPedestalsMap > ReturnType