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();
91 const HcalQIECoder* channelCoder = cond.getHcalCoder(cell);
92 const HcalQIEShape* shape = cond.getHcalShape(channelCoder);
98 for (
int capid = 0; capid < 4; ++capid) {
104 calibWidth.
gain(capid));
109 const bool taggedBadByDb = severity.dropChannel(digistatus->
getValue());
112 const unsigned linearId = htopo.detId2denseId(cell);
114 HcalChannelProperties(&calib, param_ts, channelCoder, shape, siPMParameter, pedsAndGains, taggedBadByDb);
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
double gain(int fCapId) const
get gain 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)
double effpedestal(int fCapId) const
get effective pedestal width for capid=0..3
edm::ESGetToken< HcalSeverityLevelComputer, HcalSeverityLevelComputerRcd > sevToken_
edm::ESGetToken< HcalRecoParams, HcalChannelPropertiesAuxRecord > myParamsToken_
edm::ESGetToken< HcalRecoParams, HcalRecoParamsRcd > paramsToken_
~HcalChannelPropertiesEP() override
HcalChannelPropertiesEP & operator=(const HcalChannelPropertiesEP &)=delete
double pedestal(int fCapId) const
get pedestal width for capid=0..3
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
const DepRecordT getRecord() const
std::unique_ptr< HcalChannelPropertiesVec > ReturnType2
constexpr double effpedestal(int fCapId) const
get effective pedestal for capid=0..3
HcalChannelPropertiesEP()=delete
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > topoToken_
constexpr double pedestal(int fCapId) const
get pedestal for capid=0..3
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
ReturnType1 produce1(const HcalChannelPropertiesAuxRecord &rcd)
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcd > qualToken_
uint32_t getValue() const
constexpr double respcorrgain(int fCapId) const
get response corrected gain for capid=0..3