Go to the documentation of this file.
21 typedef std::unique_ptr<EcalLiteDTUPedestalsMap>
ReturnType;
38 meanPedestalsGain10_ =
p.getParameter<
double>(
"MeanPedestalsGain10");
39 rmsPedestalsGain10_ =
p.getParameter<
double>(
"RMSPedestalsGain10");
40 meanPedestalsGain1_ =
p.getParameter<
double>(
"MeanPedestalsGain1");
41 rmsPedestalsGain1_ =
p.getParameter<
double>(
"RMSPedestalsGain1");
42 auto cc = setWhatProduced(
this);
48 auto prod = std::make_unique<EcalLiteDTUPedestalsMap>();
53 ped.
setMean(0, meanPedestalsGain10_);
54 ped.
setRMS(0, rmsPedestalsGain10_);
56 ped.
setMean(1, meanPedestalsGain1_);
57 ped.
setRMS(1, rmsPedestalsGain1_);
59 prod->insert(std::make_pair(myEBDetId, ped));
double meanPedestalsGain10_
static EBDetId unhashIndex(int hi)
get a DetId from a compact index for arrays
EcalLiteDTUPedestalsESProducer(const edm::ParameterSet &p)
std::unique_ptr< EcalLiteDTUPedestalsMap > ReturnType
double rmsPedestalsGain10_
double meanPedestalsGain1_
ReturnType produce(const EcalLiteDTUPedestalsRcd &iRecord)
int setMean(unsigned int i, float value)
edm::ESGetToken< EcalLiteDTUPedestalsMap, EcalLiteDTUPedestalsRcd > pedestalToken_
int setRMS(unsigned int i, float value)
double rmsPedestalsGain1_
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
static constexpr unsigned int kEBChannels