70 std::vector<HcalGenericDetId> allCells(
bool h2_mode) {
71 static std::vector<HcalGenericDetId>
result;
77 for (
int sector = 1; sector < 17; sector++) {
80 if (castortopology.
valid(cell))
83 if (castortopology.
valid(cell))
89 for (
int sector = 1; sector < 17; sector++) {
92 if (castortopology.
valid(cell))
95 if (castortopology.
valid(cell))
107 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::CastorHardcodeCalibrations->...";
115 findingRecord<CastorPedestalsRcd>();
119 findingRecord<CastorPedestalWidthsRcd>();
123 findingRecord<CastorGainsRcd>();
127 findingRecord<CastorGainWidthsRcd>();
131 findingRecord<CastorQIEDataRcd>();
135 findingRecord<CastorChannelQualityRcd>();
139 findingRecord<CastorElectronicsMapRcd>();
143 findingRecord<CastorRecoParamsRcd>();
147 findingRecord<CastorSaturationCorrsRcd>();
167 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::producePedestals-> ...";
168 auto result = std::make_unique<CastorPedestals>(
false);
169 std::vector<HcalGenericDetId>
cells = allCells(h2mode_);
170 for (std::vector<HcalGenericDetId>::const_iterator cell =
cells.begin(); cell !=
cells.end(); ++cell) {
178 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::producePedestalWidths-> ...";
179 auto result = std::make_unique<CastorPedestalWidths>(
false);
180 std::vector<HcalGenericDetId>
cells = allCells(h2mode_);
181 for (std::vector<HcalGenericDetId>::const_iterator cell =
cells.begin(); cell !=
cells.end(); ++cell) {
189 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceGains-> ...";
190 auto result = std::make_unique<CastorGains>();
191 std::vector<HcalGenericDetId>
cells = allCells(h2mode_);
192 for (std::vector<HcalGenericDetId>::const_iterator cell =
cells.begin(); cell !=
cells.end(); ++cell) {
200 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceGainWidths-> ...";
201 auto result = std::make_unique<CastorGainWidths>();
202 std::vector<HcalGenericDetId>
cells = allCells(h2mode_);
203 for (std::vector<HcalGenericDetId>::const_iterator cell =
cells.begin(); cell !=
cells.end(); ++cell) {
211 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceQIEData-> ...";
212 auto result = std::make_unique<CastorQIEData>();
213 std::vector<HcalGenericDetId>
cells = allCells(h2mode_);
214 for (std::vector<HcalGenericDetId>::const_iterator cell =
cells.begin(); cell !=
cells.end(); ++cell) {
223 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceChannelQuality-> ...";
224 auto result = std::make_unique<CastorChannelQuality>();
225 std::vector<HcalGenericDetId>
cells = allCells(h2mode_);
226 for (std::vector<HcalGenericDetId>::const_iterator cell =
cells.begin(); cell !=
cells.end(); ++cell) {
235 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceElectronicsMap-> ...";
237 auto result = std::make_unique<CastorElectronicsMap>();
243 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceRecoParams-> ...";
244 auto result = std::make_unique<CastorRecoParams>();
245 std::vector<HcalGenericDetId>
cells = allCells(h2mode_);
246 for (std::vector<HcalGenericDetId>::const_iterator cell =
cells.begin(); cell !=
cells.end(); ++cell) {
255 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceSaturationCorrs-> ...";
256 auto result = std::make_unique<CastorSaturationCorrs>();
257 std::vector<HcalGenericDetId>
cells = allCells(h2mode_);
258 for (std::vector<HcalGenericDetId>::const_iterator cell =
cells.begin(); cell !=
cells.end(); ++cell) {
CastorPedestalWidth makePedestalWidth(HcalGenericDetId fId)
CastorQIECoder makeQIECoder(HcalGenericDetId fId)
std::unique_ptr< CastorQIEData > produceQIEData(const CastorQIEDataRcd &rcd)
void makeHardcodeMap(CastorElectronicsMap &emap)
std::unique_ptr< CastorRecoParams > produceRecoParams(const CastorRecoParamsRcd &rcd)
std::unique_ptr< CastorChannelQuality > produceChannelQuality(const CastorChannelQualityRcd &rcd)
static const IOVSyncValue & endOfTime()
std::pair< Time_t, Time_t > ValidityInterval
std::unique_ptr< CastorPedestalWidths > producePedestalWidths(const CastorPedestalWidthsRcd &rcd)
CastorHardcodeCalibrations(const edm::ParameterSet &)
std::unique_ptr< CastorPedestals > producePedestals(const CastorPedestalsRcd &rcd)
std::unique_ptr< CastorSaturationCorrs > produceSaturationCorrs(const CastorSaturationCorrsRcd &rcd)
T getUntrackedParameter(std::string const &, T const &) const
std::unique_ptr< CastorGainWidths > produceGainWidths(const CastorGainWidthsRcd &rcd)
virtual bool valid(const HcalCastorDetId &id) const
static const IOVSyncValue & beginOfTime()
CastorRecoParam makeRecoParam(HcalGenericDetId fId)
std::unique_ptr< CastorElectronicsMap > produceElectronicsMap(const CastorElectronicsMapRcd &rcd)
CastorSaturationCorr makeSaturationCorr(HcalGenericDetId fId)
Namespace of DDCMS conversion namespace.
CastorGainWidth makeGainWidth(HcalGenericDetId fId)
Log< level::Info, false > LogInfo
caConstants::TupleMultiplicity const CAHitNtupletGeneratorKernelsGPU::HitToTuple const cms::cuda::AtomicPairCounter GPUCACell const *__restrict__ cells
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
CastorPedestal makePedestal(HcalGenericDetId fId, bool fSmear=false)
~CastorHardcodeCalibrations() override
TimeValue_t value() const
CastorGain makeGain(HcalGenericDetId fId, bool fSmear=false)
std::unique_ptr< CastorGains > produceGains(const CastorGainsRcd &rcd)
const EventID & eventID() const
const Timestamp & time() const
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
const char * name() const