28 typedef std::unique_ptr<HcalChannelPropertiesVec>
ReturnType2;
53 prod->setTopo(&htopo);
78 ReturnType2 prod = std::make_unique<HcalChannelPropertiesVec>(htopo.ncells());
79 std::array<HcalPipelinePedestalAndGain, 4> pedsAndGains;
86 for (
const auto cell : ids) {
87 const auto rawId = cell.rawId();
98 for (
int capid = 0; capid < 4; ++capid) {
101 calib.effpedestal(capid),
103 calib.respcorrgain(capid),
104 calibWidth.
gain(capid));
112 const unsigned linearId = htopo.detId2denseId(cell);
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
double pedestal(int fCapId) const
get pedestal width for capid=0..3
HcalChannelPropertiesEP(const edm::ParameterSet &)
const std::vector< DetId > & getValidDetIds(DetId::Detector det=DetId::Detector(0), int subdet=0) const override
Get a list of valid detector ids (for the given subdetector)
edm::ESGetToken< HcalDbService, HcalDbRecord > condToken_
std::unique_ptr< HcalRecoParams > ReturnType1
ReturnType2 produce2(const HcalChannelPropertiesRecord &rcd)
edm::ESGetToken< HcalSeverityLevelComputer, HcalSeverityLevelComputerRcd > sevToken_
double effpedestal(int fCapId) const
get effective pedestal width for capid=0..3
edm::ESGetToken< HcalRecoParams, HcalChannelPropertiesAuxRecord > myParamsToken_
const Item * getValues(DetId fId, bool throwOnFail=true) const
edm::ESGetToken< HcalRecoParams, HcalRecoParamsRcd > paramsToken_
~HcalChannelPropertiesEP() override
HcalChannelPropertiesEP & operator=(const HcalChannelPropertiesEP &)=delete
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
std::unique_ptr< HcalChannelPropertiesVec > ReturnType2
HcalChannelPropertiesEP()=delete
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > topoToken_
uint32_t getValue() const
double gain(int fCapId) const
get gain width for capid=0..3
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
ReturnType1 produce1(const HcalChannelPropertiesAuxRecord &rcd)
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcd > qualToken_
const DepRecordT getRecord() const
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const