37 const std::vector<HcalGenericDetId>& allCells(
const HcalTopology& hcaltopology,
40 static std::vector<HcalGenericDetId>
result;
55 if (hcaltopology.
valid(cell)) {
58 edm::LogVerbatim(
"HcalCalib") <<
" HcalHardcodedCalibrations: det|eta|phi|depth = " << det <<
"|" <<
eta 70 if (zdctopology.
valid(zcell)) {
77 if (zdctopology.
valid(zcell)) {
87 if (zdctopology.
valid(zcell)) {
94 if (zdctopology.
valid(zcell)) {
104 if (zdctopology.
valid(zcell)) {
111 if (zdctopology.
valid(zcell)) {
121 if (zdctopology.
valid(zcell)) {
128 if (zdctopology.
valid(zcell)) {
146 if (hcaltopology.
validHT(cell)) {
149 edm::LogVerbatim(
"HcalCalib") <<
" HcalHardcodedCalibrations: eta|phi|depth|vers = " <<
eta <<
"|" 150 <<
phi <<
"|" <<
depth <<
"|" << vers;
164 : hb_recalibration(nullptr),
165 he_recalibration(nullptr),
166 hf_recalibration(nullptr),
170 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::HcalHardcodeCalibrations->...";
173 if (iConfig.
exists(
"GainWidthsForTrigPrims"))
202 bool hb_recalib = iConfig.
getParameter<
bool>(
"HBRecalibration");
203 bool he_recalib = iConfig.
getParameter<
bool>(
"HERecalibration");
204 bool hf_recalib = iConfig.
getParameter<
bool>(
"HFRecalibration");
207 std::make_unique<HBHERecalibration>(
iLumi,
213 std::make_unique<HBHERecalibration>(
iLumi,
236 findingRecord<HcalPedestalsRcd>();
242 findingRecord<HcalPedestalWidthsRcd>();
248 findingRecord<HcalPedestalsRcd>();
255 findingRecord<HcalPedestalWidthsRcd>();
261 findingRecord<HcalGainsRcd>();
267 findingRecord<HcalGainWidthsRcd>();
273 findingRecord<HcalPFCutsRcd>();
279 findingRecord<HcalQIEDataRcd>();
285 findingRecord<HcalQIETypesRcd>();
291 findingRecord<HcalChannelQualityRcd>();
297 findingRecord<HcalElectronicsMapRcd>();
303 findingRecord<HcalZSThresholdsRcd>();
315 findingRecord<HcalRespCorrsRcd>();
321 findingRecord<HcalLUTCorrsRcd>();
327 findingRecord<HcalPFCorrsRcd>();
333 findingRecord<HcalTimeCorrsRcd>();
339 findingRecord<HcalL1TriggerObjectsRcd>();
345 findingRecord<HcalValidationCorrsRcd>();
351 findingRecord<HcalLutMetadataRcd>();
355 findingRecord<HcalDcsRcd>();
359 findingRecord<HcalDcsMapRcd>();
365 findingRecord<HcalRecoParamsRcd>();
371 findingRecord<HcalLongRecoParamsRcd>();
377 findingRecord<HcalZDCLowGainFractionsRcd>();
383 findingRecord<HcalMCParamsRcd>();
389 findingRecord<HcalFlagHFDigiTimeParamsRcd>();
395 findingRecord<HcalFrontEndMapRcd>();
401 findingRecord<HcalSiPMParametersRcd>();
405 findingRecord<HcalSiPMCharacteristicsRcd>();
411 findingRecord<HcalTPChannelParametersRcd>();
415 findingRecord<HcalTPParametersRcd>();
443 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produce" << seff <<
"Pedestals-> ...";
446 auto const& zdcTopo = rec.
get(zdctoken);
447 auto result = std::make_unique<HcalPedestals>(&topo,
false);
449 for (
auto cell :
cells) {
463 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produce" << seff <<
"PedestalWidths-> ...";
466 auto const& zdcTopo = rec.
get(zdctoken);
467 auto result = std::make_unique<HcalPedestalWidths>(&topo,
false);
469 for (
auto cell :
cells) {
500 auto result = std::make_unique<HcalGains>(&topo);
502 for (
auto cell :
cells) {
511 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceGainWidths-> ...";
515 auto result = std::make_unique<HcalGainWidths>(&topo);
517 for (
auto cell :
cells) {
526 }
else if (!cell.isHcalTrigTowerDetId()) {
540 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::producePFCuts-> ...";
544 auto result = std::make_unique<HcalPFCuts>(&topo);
546 for (
auto cell :
cells) {
548 if (!cell.isHcalTrigTowerDetId()) {
558 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceQIEData-> ...";
563 auto result = std::make_unique<HcalQIEData>(&topo);
565 for (
auto cell :
cells) {
574 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceQIETypes-> ...";
579 auto result = std::make_unique<HcalQIETypes>(&topo);
581 for (
auto cell :
cells) {
590 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceChannelQuality-> ...";
595 auto result = std::make_unique<HcalChannelQuality>(&topo);
597 for (
auto cell :
cells) {
606 if (!(cell.isHcalZDCDetId())) {
614 bool isHEP17 = (
iphi >= 63) && (
iphi <= 66) && (
ieta > 0);
616 bool is18d1 = (absieta == 18) && (
depth == 1);
632 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceRespCorrs-> ...";
639 std::vector<std::vector<int>> m_segmentation;
640 int maxEta = topo.lastHBHERing();
641 m_segmentation.resize(
maxEta);
643 topo.getDepthSegmentation(
i + 1, m_segmentation[
i]);
655 auto result = std::make_unique<HcalRespCorrs>(&topo);
657 for (
const auto& cell :
cells) {
679 edm::LogVerbatim(
"HcalCalib") <<
"HB ieta, depth = " << ieta_ <<
", " << depth_ <<
" corr = " <<
corr;
686 edm::LogVerbatim(
"HcalCalib") <<
"HE ieta, depth = " << ieta_ <<
", " << depth_ <<
" corr = " <<
corr;
693 edm::LogVerbatim(
"HcalCalib") <<
"HF ieta, depth = " << ieta_ <<
", " << depth_ <<
" corr = " <<
corr;
705 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceLUTCorrs-> ...";
710 auto result = std::make_unique<HcalLUTCorrs>(&topo);
712 for (
auto cell :
cells) {
721 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::producePFCorrs-> ...";
726 auto result = std::make_unique<HcalPFCorrs>(&topo);
728 for (
auto cell :
cells) {
737 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceTimeCorrs-> ...";
742 auto result = std::make_unique<HcalTimeCorrs>(&topo);
744 for (
auto cell :
cells) {
753 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceZSThresholds-> ...";
758 auto result = std::make_unique<HcalZSThresholds>(&topo);
760 for (
auto cell :
cells) {
770 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceL1TriggerObjects-> ...";
775 auto result = std::make_unique<HcalL1TriggerObjects>(&topo);
777 for (
auto cell :
cells) {
782 result->setTagString(
"hardcoded");
783 result->setAlgoString(
"hardcoded");
789 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceElectronicsMap-> ...";
801 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceValidationCorrs-> ...";
806 auto result = std::make_unique<HcalValidationCorrs>(&topo);
808 for (
auto cell :
cells) {
817 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceLutMetadata-> ...";
822 auto result = std::make_unique<HcalLutMetadata>(&topo);
825 result->setNominalGain(0.177);
828 for (
const auto& cell :
cells) {
833 if (cell.isHcalTrigTowerDetId()) {
846 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceDcsValues-> ...";
848 auto result = std::make_unique<HcalDcsValues>();
854 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceDcsMap-> ...";
861 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceRecoParams-> ...";
866 auto result = std::make_unique<HcalRecoParams>(&topo);
868 for (
auto cell :
cells) {
877 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceTimingParams-> ...";
882 auto result = std::make_unique<HcalTimingParams>(&topo);
884 for (
auto cell :
cells) {
893 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceLongRecoParams-> ...";
898 auto result = std::make_unique<HcalLongRecoParams>(&topo);
900 std::vector<unsigned int> mSignal;
901 mSignal.push_back(4);
902 mSignal.push_back(5);
903 mSignal.push_back(6);
904 std::vector<unsigned int> mNoise;
908 for (
auto cell :
cells) {
909 if (cell.isHcalZDCDetId()) {
920 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceZDCLowGainFractions-> ...";
925 auto result = std::make_unique<HcalZDCLowGainFractions>(&topo);
927 for (
auto cell :
cells) {
936 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceMCParams-> ...";
940 auto result = std::make_unique<HcalMCParams>(&topo);
942 for (
auto cell :
cells) {
952 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceFlagHFDigiTimeParams-> ...";
957 auto result = std::make_unique<HcalFlagHFDigiTimeParams>(&topo);
960 std::vector<double> coef;
961 coef.push_back(0.93);
962 coef.push_back(-0.38275);
963 coef.push_back(-0.012667);
965 for (
auto cell :
cells) {
980 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceFrontEndMap-> ...";
992 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceSiPMParameters-> ...";
997 auto result = std::make_unique<HcalSiPMParameters>(&topo);
999 for (
auto cell :
cells) {
1009 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceSiPMCharacteristics-> ...";
1017 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceTPChannelParameters-> ...";
1022 auto result = std::make_unique<HcalTPChannelParameters>(&topo);
1024 for (
auto cell :
cells) {
1037 edm::LogVerbatim(
"HCAL") <<
"HcalHardcodeCalibrations::produceTPParameters-> ...";
1039 auto result = std::make_unique<HcalTPParameters>();
1046 desc.add<
double>(
"iLumi", -1.);
1047 desc.add<
bool>(
"HBRecalibration",
false);
1048 desc.add<
double>(
"HBreCalibCutoff", 20.);
1050 desc.add<
bool>(
"HERecalibration",
false);
1051 desc.add<
double>(
"HEreCalibCutoff", 20.);
1053 desc.add<
bool>(
"HFRecalibration",
false);
1054 desc.add<
bool>(
"GainWidthsForTrigPrims",
false);
1055 desc.add<
bool>(
"useHBUpgrade",
false);
1056 desc.add<
bool>(
"useHEUpgrade",
false);
1057 desc.add<
bool>(
"useHFUpgrade",
false);
1058 desc.add<
bool>(
"useHOUpgrade",
true);
1059 desc.add<
bool>(
"testHFQIE10",
false);
1060 desc.add<
bool>(
"testHEPlan1",
false);
1061 desc.add<
bool>(
"killHE",
false);
1062 desc.add<
bool>(
"useLayer0Weight",
false);
1063 desc.add<
bool>(
"useIeta18depth1",
true);
1064 desc.addUntracked<std::vector<std::string>>(
"toGet", std::vector<std::string>());
1065 desc.addUntracked<
bool>(
"fromDDD",
false);
1068 desc_hb.
add<std::vector<double>>(
"gain", std::vector<double>({0.19}));
1069 desc_hb.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0}));
1070 desc_hb.add<
double>(
"pedestal", 3.0);
1071 desc_hb.add<
double>(
"pedestalWidth", 0.55);
1072 desc_hb.add<
int>(
"zsThreshold", 8);
1073 desc_hb.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.49, 1.8, 7.2, 37.9}));
1074 desc_hb.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.912, 0.917, 0.922, 0.923}));
1075 desc_hb.add<
int>(
"qieType", 0);
1076 desc_hb.add<
int>(
"mcShape", 125);
1077 desc_hb.add<
int>(
"recoShape", 105);
1078 desc_hb.add<
double>(
"photoelectronsToAnalog", 0.0);
1079 desc_hb.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.0}));
1080 desc_hb.add<std::vector<double>>(
"noiseCorrelation", std::vector<double>({0.0}));
1081 desc_hb.add<
bool>(
"doRadiationDamage",
false);
1082 desc_hb.add<
double>(
"noiseThreshold", 0.0);
1083 desc_hb.add<
double>(
"seedThreshold", 0.1);
1087 desc_hbRaddam.
add<
double>(
"temperatureBase", 20.0);
1088 desc_hbRaddam.add<
double>(
"temperatureNew", -5.0);
1089 desc_hbRaddam.add<
double>(
"intlumiOffset", 150);
1090 desc_hbRaddam.add<
double>(
"depVsTemp", 0.0631);
1091 desc_hbRaddam.add<
double>(
"intlumiToNeutrons", 3.67e8);
1092 desc_hbRaddam.add<std::vector<double>>(
"depVsNeutrons", {5.69e-11, 7.90e-11});
1095 desc_hbUpgrade.
add<std::vector<double>>(
"gain", std::vector<double>({0.00111111111111}));
1096 desc_hbUpgrade.add<std::vector<double>>(
"gainWidth", std::vector<double>({0}));
1097 desc_hbUpgrade.add<
double>(
"pedestal", 18.0);
1098 desc_hbUpgrade.add<
double>(
"pedestalWidth", 5.0);
1099 desc_hbUpgrade.add<
int>(
"zsThreshold", 3);
1100 desc_hbUpgrade.add<std::vector<double>>(
"qieOffset", std::vector<double>({0.0, 0.0, 0.0, 0.0}));
1101 desc_hbUpgrade.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.333, 0.333, 0.333, 0.333}));
1102 desc_hbUpgrade.add<
int>(
"qieType", 2);
1103 desc_hbUpgrade.add<
int>(
"mcShape", 206);
1104 desc_hbUpgrade.add<
int>(
"recoShape", 206);
1105 desc_hbUpgrade.add<
double>(
"photoelectronsToAnalog", 57.5);
1106 desc_hbUpgrade.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.055}));
1107 desc_hbUpgrade.add<std::vector<double>>(
"noiseCorrelation", std::vector<double>({0.26}));
1108 desc_hbUpgrade.add<
bool>(
"doRadiationDamage",
true);
1110 desc_hbUpgrade.
add<
double>(
"noiseThreshold", 0.0);
1111 desc_hbUpgrade.add<
double>(
"seedThreshold", 0.1);
1115 desc_he.
add<std::vector<double>>(
"gain", std::vector<double>({0.23}));
1116 desc_he.add<std::vector<double>>(
"gainWidth", std::vector<double>({0}));
1117 desc_he.add<
double>(
"pedestal", 3.0);
1118 desc_he.add<
double>(
"pedestalWidth", 0.79);
1119 desc_he.add<
int>(
"zsThreshold", 9);
1120 desc_he.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.38, 2.0, 7.6, 39.6}));
1121 desc_he.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.912, 0.916, 0.92, 0.922}));
1122 desc_he.add<
int>(
"qieType", 0);
1123 desc_he.add<
int>(
"mcShape", 125);
1124 desc_he.add<
int>(
"recoShape", 105);
1125 desc_he.add<
double>(
"photoelectronsToAnalog", 0.0);
1126 desc_he.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.0}));
1127 desc_he.add<std::vector<double>>(
"noiseCorrelation", std::vector<double>({0.0}));
1128 desc_he.add<
bool>(
"doRadiationDamage",
false);
1129 desc_he.add<
double>(
"noiseThreshold", 0.0);
1130 desc_he.add<
double>(
"seedThreshold", 0.1);
1134 desc_heRaddam.
add<
double>(
"temperatureBase", 20.0);
1135 desc_heRaddam.add<
double>(
"temperatureNew", 5.0);
1136 desc_heRaddam.add<
double>(
"intlumiOffset", 75);
1137 desc_heRaddam.add<
double>(
"depVsTemp", 0.0631);
1138 desc_heRaddam.add<
double>(
"intlumiToNeutrons", 2.92e8);
1139 desc_heRaddam.add<std::vector<double>>(
"depVsNeutrons", {5.69e-11, 7.90e-11});
1142 desc_heUpgrade.
add<std::vector<double>>(
"gain", std::vector<double>({0.00111111111111}));
1143 desc_heUpgrade.add<std::vector<double>>(
"gainWidth", std::vector<double>({0}));
1144 desc_heUpgrade.add<
double>(
"pedestal", 18.0);
1145 desc_heUpgrade.add<
double>(
"pedestalWidth", 5.0);
1146 desc_heUpgrade.add<
int>(
"zsThreshold", 3);
1147 desc_heUpgrade.add<std::vector<double>>(
"qieOffset", std::vector<double>({0.0, 0.0, 0.0, 0.0}));
1148 desc_heUpgrade.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.333, 0.333, 0.333, 0.333}));
1149 desc_heUpgrade.add<
int>(
"qieType", 2);
1150 desc_heUpgrade.add<
int>(
"mcShape", 206);
1151 desc_heUpgrade.add<
int>(
"recoShape", 206);
1152 desc_heUpgrade.add<
double>(
"photoelectronsToAnalog", 57.5);
1153 desc_heUpgrade.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.055}));
1154 desc_heUpgrade.add<std::vector<double>>(
"noiseCorrelation", std::vector<double>({0.26}));
1155 desc_heUpgrade.add<
bool>(
"doRadiationDamage",
true);
1157 desc_heUpgrade.
add<
double>(
"noiseThreshold", 0.0);
1158 desc_heUpgrade.add<
double>(
"seedThreshold", 0.1);
1162 desc_hf.
add<std::vector<double>>(
"gain", std::vector<double>({0.14, 0.135}));
1163 desc_hf.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0, 0.0}));
1164 desc_hf.add<
double>(
"pedestal", 3.0);
1165 desc_hf.add<
double>(
"pedestalWidth", 0.84);
1166 desc_hf.add<
int>(
"zsThreshold", -9999);
1167 desc_hf.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.87, 1.4, 7.8, -29.6}));
1168 desc_hf.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.359, 0.358, 0.36, 0.367}));
1169 desc_hf.add<
int>(
"qieType", 0);
1170 desc_hf.add<
int>(
"mcShape", 301);
1171 desc_hf.add<
int>(
"recoShape", 301);
1172 desc_hf.add<
double>(
"photoelectronsToAnalog", 0.0);
1173 desc_hf.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.0}));
1174 desc_hf.add<std::vector<double>>(
"noiseCorrelation", std::vector<double>({0.0}));
1175 desc_hf.add<
bool>(
"doRadiationDamage",
false);
1176 desc_hf.add<
double>(
"noiseThreshold", 0.0);
1177 desc_hf.add<
double>(
"seedThreshold", 0.1);
1181 desc_hfUpgrade.
add<std::vector<double>>(
"gain", std::vector<double>({0.14, 0.135}));
1182 desc_hfUpgrade.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0, 0.0}));
1183 desc_hfUpgrade.add<
double>(
"pedestal", 13.33);
1184 desc_hfUpgrade.add<
double>(
"pedestalWidth", 3.33);
1185 desc_hfUpgrade.add<
int>(
"zsThreshold", -9999);
1186 desc_hfUpgrade.add<std::vector<double>>(
"qieOffset", std::vector<double>({0.0697, -0.7405, 12.38, -671.9}));
1187 desc_hfUpgrade.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.297, 0.298, 0.298, 0.313}));
1188 desc_hfUpgrade.add<
int>(
"qieType", 1);
1189 desc_hfUpgrade.add<
int>(
"mcShape", 301);
1190 desc_hfUpgrade.add<
int>(
"recoShape", 301);
1191 desc_hfUpgrade.add<
double>(
"photoelectronsToAnalog", 0.0);
1192 desc_hfUpgrade.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.0}));
1193 desc_hfUpgrade.add<std::vector<double>>(
"noiseCorrelation", std::vector<double>({0.0}));
1194 desc_hfUpgrade.add<
bool>(
"doRadiationDamage",
false);
1195 desc_hfUpgrade.add<
double>(
"noiseThreshold", 0.0);
1196 desc_hfUpgrade.add<
double>(
"seedThreshold", 0.1);
1200 desc_hfrecal.
add<std::vector<double>>(
"HFdepthOneParameterA", std::vector<double>());
1201 desc_hfrecal.add<std::vector<double>>(
"HFdepthOneParameterB", std::vector<double>());
1202 desc_hfrecal.add<std::vector<double>>(
"HFdepthTwoParameterA", std::vector<double>());
1203 desc_hfrecal.add<std::vector<double>>(
"HFdepthTwoParameterB", std::vector<double>());
1207 desc_ho.
add<std::vector<double>>(
"gain", std::vector<double>({0.006, 0.0087}));
1208 desc_ho.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0, 0.0}));
1209 desc_ho.add<
double>(
"pedestal", 11.0);
1210 desc_ho.add<
double>(
"pedestalWidth", 0.57);
1211 desc_ho.add<
int>(
"zsThreshold", 24);
1212 desc_ho.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.44, 1.4, 7.1, 38.5}));
1213 desc_ho.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.907, 0.915, 0.92, 0.921}));
1214 desc_ho.add<
int>(
"qieType", 0);
1215 desc_ho.add<
int>(
"mcShape", 201);
1216 desc_ho.add<
int>(
"recoShape", 201);
1217 desc_ho.add<
double>(
"photoelectronsToAnalog", 4.0);
1218 desc_ho.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.0}));
1219 desc_ho.add<std::vector<double>>(
"noiseCorrelation", std::vector<double>({0.0}));
1220 desc_ho.add<
bool>(
"doRadiationDamage",
false);
1221 desc_ho.add<
double>(
"noiseThreshold", 0.0);
1222 desc_ho.add<
double>(
"seedThreshold", 0.1);
1226 validator_sipm.
add<
int>(
"pixels", 1);
1227 validator_sipm.add<
double>(
"crosstalk", 0);
1228 validator_sipm.add<
double>(
"nonlin1", 1);
1229 validator_sipm.add<
double>(
"nonlin2", 0);
1230 validator_sipm.add<
double>(
"nonlin3", 0);
1231 std::vector<edm::ParameterSet> default_sipm(1);
1232 desc.addVPSet(
"SiPMCharacteristics", validator_sipm, default_sipm);
std::unique_ptr< HcalPedestals > producePedestals(const HcalPedestalsRcd &rcd)
std::unique_ptr< HcalPFCuts > producePFCuts(const HcalPFCutsRcd &rcd)
Log< level::Info, true > LogVerbatim
static const int kHcalVersMask
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
bool validHT(const HcalTrigTowerDetId &id) const
static constexpr uint32_t kHcalPhiMask2
std::unique_ptr< HcalGains > produceGains(const HcalGainsRcd &rcd)
T getParameter(std::string const &) const
void useHBUpgrade(bool b)
HcalHardcodeCalibrations(const edm::ParameterSet &)
std::unique_ptr< HcalPedestalWidths > produceEffectivePedestalWidths(const HcalPedestalWidthsRcd &rcd)
std::unique_ptr< HcalPFCorrs > producePFCorrs(const HcalPFCorrsRcd &rcd)
std::unique_ptr< HcalQIEData > produceQIEData(const HcalQIEDataRcd &rcd)
HcalRecoParam makeRecoParam(HcalGenericDetId fId) const
void setHBUpgrade(HcalHardcodeParameters p)
std::string fullPath() const
std::unique_ptr< HcalTimeCorrs > produceTimeCorrs(const HcalTimeCorrsRcd &rcd)
void useHFUpgrade(bool b)
std::unique_ptr< HcalLongRecoParams > produceLongRecoParams(const HcalLongRecoParamsRcd &rcd)
constexpr int ietaAbs() const
get the absolute value of the cell ieta
std::unique_ptr< HcalPedestals > produceEffectivePedestals(const HcalPedestalsRcd &rcd)
std::unique_ptr< HcalSiPMCharacteristics > produceSiPMCharacteristics(const HcalSiPMCharacteristicsRcd &rcd)
bool valid(const DetId &id) const override
bool exists(std::string const ¶meterName) const
checks if a parameter exists
edm::ESGetToken< HBHEDarkening, HBHEDarkeningRecord > hbDarkeningToken_
HcalPFCut makePFCut(HcalGenericDetId fId, double intlumi, bool noHE) const
std::unique_ptr< HcalElectronicsMap > produceElectronicsMap(const HcalElectronicsMapRcd &rcd)
void setHF(HcalHardcodeParameters p)
static const IOVSyncValue & endOfTime()
void makeHardcodeFrontEndMap(HcalFrontEndMap &emap, const std::vector< HcalGenericDetId > &cells) const
std::pair< Time_t, Time_t > ValidityInterval
std::unique_ptr< HcalDcsValues > produceDcsValues(const HcalDcsRcd &rcd)
static const int kHcalEtaMask
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
HcalZSThreshold makeZSThreshold(HcalGenericDetId fId) const
T getUntrackedParameter(std::string const &, T const &) const
std::unique_ptr< HcalPedestals > producePedestals_(const HcalPedestalsRcd &rcd, const edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > &, const edm::ESGetToken< ZdcTopology, HcalRecNumberingRecord > &, bool eff)
std::unique_ptr< HcalPedestalWidths > producePedestalWidths(const HcalPedestalWidthsRcd &rcd)
HcalDbHardcode dbHardcode
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t ietaAbs(uint32_t id)
const bool killHE() const
std::unique_ptr< HcalSiPMCharacteristics > makeHardcodeSiPMCharacteristics() const
HcalGainWidth makeGainWidth(HcalGenericDetId fId) const
void addDefault(ParameterSetDescription const &psetDescription)
std::unique_ptr< HcalPedestalWidths > producePedestalWidths_(const HcalPedestalWidthsRcd &rcd, const edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > &, const edm::ESGetToken< ZdcTopology, HcalRecNumberingRecord > &, bool eff)
std::unique_ptr< HFRecalibration > hf_recalibration
std::unique_ptr< HcalRespCorrs > produceRespCorrs(const HcalRespCorrsRcd &rcd)
std::unique_ptr< HcalLutMetadata > produceLutMetadata(const HcalLutMetadataRcd &rcd)
void setHO(HcalHardcodeParameters p)
static const IOVSyncValue & beginOfTime()
constexpr int ieta() const
get the cell ieta
void setHFUpgrade(HcalHardcodeParameters p)
std::unordered_map< int, edm::ESGetToken< ZdcTopology, HcalRecNumberingRecord > > zdcTopoTokens_
HcalTimingParam makeTimingParam(HcalGenericDetId fId) const
void setHE(HcalHardcodeParameters p)
HcalTPChannelParameter makeHardcodeTPChannelParameter(HcalGenericDetId fId) const
std::unique_ptr< HcalFlagHFDigiTimeParams > produceFlagHFDigiTimeParams(const HcalFlagHFDigiTimeParamsRcd &rcd)
HcalQIECoder makeQIECoder(HcalGenericDetId fId) const
std::unique_ptr< HcalFrontEndMap > produceFrontEndMap(const HcalFrontEndMapRcd &rcd)
std::unique_ptr< HBHERecalibration > hb_recalibration
static const int kHcalDepthMask
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void useHOUpgrade(bool b)
std::unique_ptr< HcalSiPMParameters > produceSiPMParameters(const HcalSiPMParametersRcd &rcd)
std::unique_ptr< HBHERecalibration > he_recalibration
std::unique_ptr< HcalDcsMap > makeHardcodeDcsMap() const
static constexpr uint32_t kHcalEtaMask2
HcalQIEType makeQIEType(HcalGenericDetId fId) const
virtual bool valid(const HcalZDCDetId &id) const
static const int kHcalPhiMask
Namespace of DDCMS conversion namespace.
~HcalHardcodeCalibrations() override
std::unique_ptr< HcalRecoParams > produceRecoParams(const HcalRecoParamsRcd &rcd)
void setHB(HcalHardcodeParameters p)
std::unique_ptr< HcalTPParameters > produceTPParameters(const HcalTPParametersRcd &rcd)
HcalGain makeGain(HcalGenericDetId fId, bool fSmear=false) const
TimeValue_t value() const
void makeHardcodeTPParameters(HcalTPParameters &tppar) const
std::unique_ptr< HcalGainWidths > produceGainWidths(const HcalGainWidthsRcd &rcd)
std::unique_ptr< HcalTPChannelParameters > produceTPChannelParameters(const HcalTPChannelParametersRcd &rcd)
std::unique_ptr< HcalElectronicsMap > makeHardcodeMap(const std::vector< HcalGenericDetId > &cells) const
std::unique_ptr< HcalL1TriggerObjects > produceL1TriggerObjects(const HcalL1TriggerObjectsRcd &rcd)
bool switchGainWidthsForTrigPrims
std::unique_ptr< HcalZSThresholds > produceZSThresholds(const HcalZSThresholdsRcd &rcd)
std::unique_ptr< HcalZDCLowGainFractions > produceZDCLowGainFractions(const HcalZDCLowGainFractionsRcd &rcd)
void setSiPMCharacteristics(std::vector< edm::ParameterSet > vps)
std::unique_ptr< HcalMCParams > produceMCParams(const HcalMCParamsRcd &rcd)
const EventID & eventID() const
void useHEUpgrade(bool b)
std::unique_ptr< HcalTimingParams > produceTimingParams(const HcalTimingParamsRcd &rcd)
std::unique_ptr< HcalQIETypes > produceQIETypes(const HcalQIETypesRcd &rcd)
HcalMCParam makeMCParam(HcalGenericDetId fId) const
const Timestamp & time() const
int getLayersInDepth(int ieta, int depth, const HcalTopology *topo)
std::unique_ptr< HcalChannelQuality > produceChannelQuality(const HcalChannelQualityRcd &rcd)
HcalPedestal makePedestal(HcalGenericDetId fId, bool fSmear, bool eff, const HcalTopology *topo, double intlumi)
edm::ESGetToken< HBHEDarkening, HBHEDarkeningRecord > heDarkeningToken_
HcalSiPMParameter makeHardcodeSiPMParameter(HcalGenericDetId fId, const HcalTopology *topo, double intlumi)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
void setHEUpgrade(HcalHardcodeParameters p)
std::unique_ptr< HcalDcsMap > produceDcsMap(const HcalDcsMapRcd &rcd)
const char * name() const
constexpr int iphi() const
get the cell iphi
std::unique_ptr< HcalLUTCorrs > produceLUTCorrs(const HcalLUTCorrsRcd &rcd)
std::unordered_map< int, edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > > topoTokens_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
HcalPedestalWidth makePedestalWidth(HcalGenericDetId fId, bool eff, const HcalTopology *topo, double intlumi)
std::unique_ptr< HcalValidationCorrs > produceValidationCorrs(const HcalValidationCorrsRcd &rcd)
constexpr int depth() const
get the tower depth