38 std::vector<HcalGenericDetId> allCells(
bool h2_mode) {
39 static std::vector<HcalGenericDetId>
result;
45 for (
int sector = 1; sector < 17; sector++) {
48 if (castortopology.
valid(cell))
51 if (castortopology.
valid(cell))
57 for (
int sector = 1; sector < 17; sector++) {
60 if (castortopology.
valid(cell))
63 if (castortopology.
valid(cell))
75 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::CastorHardcodeCalibrations->...";
83 findingRecord<CastorPedestalsRcd>();
87 findingRecord<CastorPedestalWidthsRcd>();
91 findingRecord<CastorGainsRcd>();
95 findingRecord<CastorGainWidthsRcd>();
99 findingRecord<CastorQIEDataRcd>();
103 findingRecord<CastorChannelQualityRcd>();
107 findingRecord<CastorElectronicsMapRcd>();
111 findingRecord<CastorRecoParamsRcd>();
115 findingRecord<CastorSaturationCorrsRcd>();
135 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::producePedestals-> ...";
136 auto result = std::make_unique<CastorPedestals>(
false);
137 std::vector<HcalGenericDetId>
cells = allCells(h2mode_);
138 for (std::vector<HcalGenericDetId>::const_iterator cell =
cells.begin(); cell !=
cells.end(); ++cell) {
146 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::producePedestalWidths-> ...";
147 auto result = std::make_unique<CastorPedestalWidths>(
false);
148 std::vector<HcalGenericDetId>
cells = allCells(h2mode_);
149 for (std::vector<HcalGenericDetId>::const_iterator cell =
cells.begin(); cell !=
cells.end(); ++cell) {
157 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceGains-> ...";
158 auto result = std::make_unique<CastorGains>();
159 std::vector<HcalGenericDetId>
cells = allCells(h2mode_);
160 for (std::vector<HcalGenericDetId>::const_iterator cell =
cells.begin(); cell !=
cells.end(); ++cell) {
168 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceGainWidths-> ...";
169 auto result = std::make_unique<CastorGainWidths>();
170 std::vector<HcalGenericDetId>
cells = allCells(h2mode_);
171 for (std::vector<HcalGenericDetId>::const_iterator cell =
cells.begin(); cell !=
cells.end(); ++cell) {
179 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceQIEData-> ...";
180 auto result = std::make_unique<CastorQIEData>();
181 std::vector<HcalGenericDetId>
cells = allCells(h2mode_);
182 for (std::vector<HcalGenericDetId>::const_iterator cell =
cells.begin(); cell !=
cells.end(); ++cell) {
191 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceChannelQuality-> ...";
192 auto result = std::make_unique<CastorChannelQuality>();
193 std::vector<HcalGenericDetId>
cells = allCells(h2mode_);
194 for (std::vector<HcalGenericDetId>::const_iterator cell =
cells.begin(); cell !=
cells.end(); ++cell) {
203 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceElectronicsMap-> ...";
205 auto result = std::make_unique<CastorElectronicsMap>();
211 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceRecoParams-> ...";
212 auto result = std::make_unique<CastorRecoParams>();
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::produceSaturationCorrs-> ...";
224 auto result = std::make_unique<CastorSaturationCorrs>();
225 std::vector<HcalGenericDetId>
cells = allCells(h2mode_);
226 for (std::vector<HcalGenericDetId>::const_iterator cell =
cells.begin(); cell !=
cells.end(); ++cell) {