37 const std::vector<HcalGenericDetId>& allCells(
const HcalTopology& hcaltopology,
bool killHE =
false) {
38 static std::vector<HcalGenericDetId>
result;
42 std::cout << std::endl <<
"HcalHardcodeCalibrations: maxDepth = " <<
maxDepth << std::endl;
53 if (hcaltopology.
valid(cell)) {
56 std::cout <<
" HcalHardcodedCalibrations: det|eta|phi|depth = " << det <<
"|" <<
eta <<
"|" <<
phi 57 <<
"|" <<
depth << std::endl;
69 if (zdctopology.
valid(zcell))
72 if (zdctopology.
valid(zcell))
78 if (zdctopology.
valid(zcell))
81 if (zdctopology.
valid(zcell))
87 if (zdctopology.
valid(zcell))
90 if (zdctopology.
valid(zcell))
96 if (zdctopology.
valid(zcell))
99 if (zdctopology.
valid(zcell))
113 if (hcaltopology.
validHT(cell)) {
116 std::cout <<
" HcalHardcodedCalibrations: eta|phi|depth|vers = " <<
eta <<
"|" <<
phi <<
"|" <<
depth 117 <<
"|" << vers << std::endl;
131 : hb_recalibration(nullptr),
132 he_recalibration(nullptr),
133 hf_recalibration(nullptr),
136 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::HcalHardcodeCalibrations->...";
138 if (iConfig.
exists(
"GainWidthsForTrigPrims"))
167 bool hb_recalib = iConfig.
getParameter<
bool>(
"HBRecalibration");
168 bool he_recalib = iConfig.
getParameter<
bool>(
"HERecalibration");
169 bool hf_recalib = iConfig.
getParameter<
bool>(
"HFRecalibration");
172 std::make_unique<HBHERecalibration>(
iLumi,
178 std::make_unique<HBHERecalibration>(
iLumi,
187 std::cout <<
" HcalHardcodeCalibrations: iLumi = " <<
iLumi << std::endl;
199 findingRecord<HcalPedestalsRcd>();
203 findingRecord<HcalPedestalWidthsRcd>();
209 findingRecord<HcalPedestalsRcd>();
215 findingRecord<HcalPedestalWidthsRcd>();
219 findingRecord<HcalGainsRcd>();
223 findingRecord<HcalGainWidthsRcd>();
227 findingRecord<HcalPFCutsRcd>();
231 findingRecord<HcalQIEDataRcd>();
235 findingRecord<HcalQIETypesRcd>();
239 findingRecord<HcalChannelQualityRcd>();
243 findingRecord<HcalElectronicsMapRcd>();
247 findingRecord<HcalZSThresholdsRcd>();
258 findingRecord<HcalRespCorrsRcd>();
262 findingRecord<HcalLUTCorrsRcd>();
266 findingRecord<HcalPFCorrsRcd>();
270 findingRecord<HcalTimeCorrsRcd>();
275 findingRecord<HcalL1TriggerObjectsRcd>();
280 findingRecord<HcalValidationCorrsRcd>();
284 findingRecord<HcalLutMetadataRcd>();
288 findingRecord<HcalDcsRcd>();
292 findingRecord<HcalDcsMapRcd>();
296 findingRecord<HcalRecoParamsRcd>();
300 findingRecord<HcalLongRecoParamsRcd>();
305 findingRecord<HcalZDCLowGainFractionsRcd>();
309 findingRecord<HcalMCParamsRcd>();
314 findingRecord<HcalFlagHFDigiTimeParamsRcd>();
318 findingRecord<HcalFrontEndMapRcd>();
322 findingRecord<HcalSiPMParametersRcd>();
326 findingRecord<HcalSiPMCharacteristicsRcd>();
331 findingRecord<HcalTPChannelParametersRcd>();
335 findingRecord<HcalTPParametersRcd>();
357 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produce" << seff <<
"Pedestals-> ...";
360 auto result = std::make_unique<HcalPedestals>(&topo,
false);
362 for (
auto cell :
cells) {
372 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produce" << seff <<
"PedestalWidths-> ...";
374 auto result = std::make_unique<HcalPedestalWidths>(&topo,
false);
376 for (
auto cell :
cells) {
401 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceGains-> ...";
404 auto result = std::make_unique<HcalGains>(&topo);
406 for (
auto cell :
cells) {
414 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceGainWidths-> ...";
417 auto result = std::make_unique<HcalGainWidths>(&topo);
419 for (
auto cell :
cells) {
424 }
else if (!cell.isHcalTrigTowerDetId()) {
433 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::producePFCuts-> ...";
436 auto result = std::make_unique<HcalPFCuts>(&topo);
438 for (
auto cell :
cells) {
440 if (!cell.isHcalTrigTowerDetId()) {
449 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceQIEData-> ...";
457 auto result = std::make_unique<HcalQIEData>(&topo);
459 for (
auto cell :
cells) {
467 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceQIETypes-> ...";
470 auto result = std::make_unique<HcalQIETypes>(&topo);
472 for (
auto cell :
cells) {
480 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceChannelQuality-> ...";
483 auto result = std::make_unique<HcalChannelQuality>(&topo);
485 for (
auto cell :
cells) {
494 if (!(cell.isHcalZDCDetId())) {
502 bool isHEP17 = (
iphi >= 63) && (
iphi <= 66) && (
ieta > 0);
504 bool is18d1 = (absieta == 18) && (
depth == 1);
519 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceRespCorrs-> ...";
524 std::vector<std::vector<int>> m_segmentation;
525 int maxEta = topo.lastHBHERing();
526 m_segmentation.resize(
maxEta);
528 topo.getDepthSegmentation(
i + 1, m_segmentation[
i]);
540 auto result = std::make_unique<HcalRespCorrs>(&topo);
542 for (
const auto& cell :
cells) {
564 std::cout <<
"HB ieta, depth = " << ieta_ <<
", " << depth_ <<
" corr = " <<
corr << std::endl;
571 std::cout <<
"HE ieta, depth = " << ieta_ <<
", " << depth_ <<
" corr = " <<
corr << std::endl;
578 std::cout <<
"HF ieta, depth = " << ieta_ <<
", " << depth_ <<
" corr = " <<
corr << std::endl;
589 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceLUTCorrs-> ...";
592 auto result = std::make_unique<HcalLUTCorrs>(&topo);
594 for (
auto cell :
cells) {
602 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::producePFCorrs-> ...";
605 auto result = std::make_unique<HcalPFCorrs>(&topo);
607 for (
auto cell :
cells) {
615 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTimeCorrs-> ...";
618 auto result = std::make_unique<HcalTimeCorrs>(&topo);
620 for (
auto cell :
cells) {
628 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceZSThresholds-> ...";
631 auto result = std::make_unique<HcalZSThresholds>(&topo);
633 for (
auto cell :
cells) {
642 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceL1TriggerObjects-> ...";
645 auto result = std::make_unique<HcalL1TriggerObjects>(&topo);
647 for (
auto cell :
cells) {
652 result->setTagString(
"hardcoded");
653 result->setAlgoString(
"hardcoded");
658 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceElectronicsMap-> ...";
667 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceValidationCorrs-> ...";
670 auto result = std::make_unique<HcalValidationCorrs>(&topo);
672 for (
auto cell :
cells) {
680 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceLutMetadata-> ...";
683 auto result = std::make_unique<HcalLutMetadata>(&topo);
686 result->setNominalGain(0.177);
689 for (
const auto& cell :
cells) {
694 if (cell.isHcalTrigTowerDetId()) {
706 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceDcsValues-> ...";
707 auto result = std::make_unique<HcalDcsValues>();
712 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceDcsMap-> ...";
718 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceRecoParams-> ...";
721 auto result = std::make_unique<HcalRecoParams>(&topo);
723 for (
auto cell :
cells) {
731 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTimingParams-> ...";
734 auto result = std::make_unique<HcalTimingParams>(&topo);
736 for (
auto cell :
cells) {
744 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceLongRecoParams-> ...";
747 auto result = std::make_unique<HcalLongRecoParams>(&topo);
749 std::vector<unsigned int> mSignal;
750 mSignal.push_back(4);
751 mSignal.push_back(5);
752 mSignal.push_back(6);
753 std::vector<unsigned int> mNoise;
757 for (
auto cell :
cells) {
758 if (cell.isHcalZDCDetId()) {
768 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceZDCLowGainFractions-> ...";
771 auto result = std::make_unique<HcalZDCLowGainFractions>(&topo);
773 for (
auto cell :
cells) {
783 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceMCParams-> ...";
785 auto result = std::make_unique<HcalMCParams>(&topo);
787 for (
auto cell :
cells) {
796 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceFlagHFDigiTimeParams-> ...";
799 auto result = std::make_unique<HcalFlagHFDigiTimeParams>(&topo);
802 std::vector<double> coef;
803 coef.push_back(0.93);
804 coef.push_back(-0.38275);
805 coef.push_back(-0.012667);
807 for (
auto cell :
cells) {
821 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceFrontEndMap-> ...";
830 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceSiPMParameters-> ...";
833 auto result = std::make_unique<HcalSiPMParameters>(&topo);
835 for (
auto cell :
cells) {
844 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceSiPMCharacteristics-> ...";
851 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTPChannelParameters-> ...";
854 auto result = std::make_unique<HcalTPChannelParameters>(&topo);
856 for (
auto cell :
cells) {
868 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTPParameters-> ...";
870 auto result = std::make_unique<HcalTPParameters>();
877 desc.add<
double>(
"iLumi", -1.);
878 desc.add<
bool>(
"HBRecalibration",
false);
879 desc.add<
double>(
"HBreCalibCutoff", 20.);
881 desc.add<
bool>(
"HERecalibration",
false);
882 desc.add<
double>(
"HEreCalibCutoff", 20.);
884 desc.add<
bool>(
"HFRecalibration",
false);
885 desc.add<
bool>(
"GainWidthsForTrigPrims",
false);
886 desc.add<
bool>(
"useHBUpgrade",
false);
887 desc.add<
bool>(
"useHEUpgrade",
false);
888 desc.add<
bool>(
"useHFUpgrade",
false);
889 desc.add<
bool>(
"useHOUpgrade",
true);
890 desc.add<
bool>(
"testHFQIE10",
false);
891 desc.add<
bool>(
"testHEPlan1",
false);
892 desc.add<
bool>(
"killHE",
false);
893 desc.add<
bool>(
"useLayer0Weight",
false);
894 desc.add<
bool>(
"useIeta18depth1",
true);
895 desc.addUntracked<std::vector<std::string>>(
"toGet", std::vector<std::string>());
896 desc.addUntracked<
bool>(
"fromDDD",
false);
899 desc_hb.
add<std::vector<double>>(
"gain", std::vector<double>({0.19}));
900 desc_hb.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0}));
901 desc_hb.add<
double>(
"pedestal", 3.0);
902 desc_hb.add<
double>(
"pedestalWidth", 0.55);
903 desc_hb.add<
int>(
"zsThreshold", 8);
904 desc_hb.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.49, 1.8, 7.2, 37.9}));
905 desc_hb.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.912, 0.917, 0.922, 0.923}));
906 desc_hb.add<
int>(
"qieType", 0);
907 desc_hb.add<
int>(
"mcShape", 125);
908 desc_hb.add<
int>(
"recoShape", 105);
909 desc_hb.add<
double>(
"photoelectronsToAnalog", 0.0);
910 desc_hb.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.0}));
911 desc_hb.add<std::vector<double>>(
"noiseCorrelation", std::vector<double>({0.0}));
912 desc_hb.add<
bool>(
"doRadiationDamage",
false);
913 desc_hb.add<
double>(
"noiseThreshold", 0.0);
914 desc_hb.add<
double>(
"seedThreshold", 0.1);
918 desc_hbRaddam.
add<
double>(
"temperatureBase", 20.0);
919 desc_hbRaddam.add<
double>(
"temperatureNew", -5.0);
920 desc_hbRaddam.add<
double>(
"intlumiOffset", 150);
921 desc_hbRaddam.add<
double>(
"depVsTemp", 0.0631);
922 desc_hbRaddam.add<
double>(
"intlumiToNeutrons", 3.67e8);
923 desc_hbRaddam.add<std::vector<double>>(
"depVsNeutrons", {5.69e-11, 7.90e-11});
926 desc_hbUpgrade.
add<std::vector<double>>(
"gain", std::vector<double>({0.00111111111111}));
927 desc_hbUpgrade.add<std::vector<double>>(
"gainWidth", std::vector<double>({0}));
928 desc_hbUpgrade.add<
double>(
"pedestal", 18.0);
929 desc_hbUpgrade.add<
double>(
"pedestalWidth", 5.0);
930 desc_hbUpgrade.add<
int>(
"zsThreshold", 3);
931 desc_hbUpgrade.add<std::vector<double>>(
"qieOffset", std::vector<double>({0.0, 0.0, 0.0, 0.0}));
932 desc_hbUpgrade.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.333, 0.333, 0.333, 0.333}));
933 desc_hbUpgrade.add<
int>(
"qieType", 2);
934 desc_hbUpgrade.add<
int>(
"mcShape", 206);
935 desc_hbUpgrade.add<
int>(
"recoShape", 206);
936 desc_hbUpgrade.add<
double>(
"photoelectronsToAnalog", 57.5);
937 desc_hbUpgrade.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.055}));
938 desc_hbUpgrade.add<std::vector<double>>(
"noiseCorrelation", std::vector<double>({0.26}));
939 desc_hbUpgrade.add<
bool>(
"doRadiationDamage",
true);
941 desc_hbUpgrade.
add<
double>(
"noiseThreshold", 0.0);
942 desc_hbUpgrade.add<
double>(
"seedThreshold", 0.1);
946 desc_he.
add<std::vector<double>>(
"gain", std::vector<double>({0.23}));
947 desc_he.add<std::vector<double>>(
"gainWidth", std::vector<double>({0}));
948 desc_he.add<
double>(
"pedestal", 3.0);
949 desc_he.add<
double>(
"pedestalWidth", 0.79);
950 desc_he.add<
int>(
"zsThreshold", 9);
951 desc_he.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.38, 2.0, 7.6, 39.6}));
952 desc_he.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.912, 0.916, 0.92, 0.922}));
953 desc_he.add<
int>(
"qieType", 0);
954 desc_he.add<
int>(
"mcShape", 125);
955 desc_he.add<
int>(
"recoShape", 105);
956 desc_he.add<
double>(
"photoelectronsToAnalog", 0.0);
957 desc_he.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.0}));
958 desc_he.add<std::vector<double>>(
"noiseCorrelation", std::vector<double>({0.0}));
959 desc_he.add<
bool>(
"doRadiationDamage",
false);
960 desc_he.add<
double>(
"noiseThreshold", 0.0);
961 desc_he.add<
double>(
"seedThreshold", 0.1);
965 desc_heRaddam.
add<
double>(
"temperatureBase", 20.0);
966 desc_heRaddam.add<
double>(
"temperatureNew", 5.0);
967 desc_heRaddam.add<
double>(
"intlumiOffset", 75);
968 desc_heRaddam.add<
double>(
"depVsTemp", 0.0631);
969 desc_heRaddam.add<
double>(
"intlumiToNeutrons", 2.92e8);
970 desc_heRaddam.add<std::vector<double>>(
"depVsNeutrons", {5.69e-11, 7.90e-11});
973 desc_heUpgrade.
add<std::vector<double>>(
"gain", std::vector<double>({0.00111111111111}));
974 desc_heUpgrade.add<std::vector<double>>(
"gainWidth", std::vector<double>({0}));
975 desc_heUpgrade.add<
double>(
"pedestal", 18.0);
976 desc_heUpgrade.add<
double>(
"pedestalWidth", 5.0);
977 desc_heUpgrade.add<
int>(
"zsThreshold", 3);
978 desc_heUpgrade.add<std::vector<double>>(
"qieOffset", std::vector<double>({0.0, 0.0, 0.0, 0.0}));
979 desc_heUpgrade.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.333, 0.333, 0.333, 0.333}));
980 desc_heUpgrade.add<
int>(
"qieType", 2);
981 desc_heUpgrade.add<
int>(
"mcShape", 206);
982 desc_heUpgrade.add<
int>(
"recoShape", 206);
983 desc_heUpgrade.add<
double>(
"photoelectronsToAnalog", 57.5);
984 desc_heUpgrade.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.055}));
985 desc_heUpgrade.add<std::vector<double>>(
"noiseCorrelation", std::vector<double>({0.26}));
986 desc_heUpgrade.add<
bool>(
"doRadiationDamage",
true);
988 desc_heUpgrade.
add<
double>(
"noiseThreshold", 0.0);
989 desc_heUpgrade.add<
double>(
"seedThreshold", 0.1);
993 desc_hf.
add<std::vector<double>>(
"gain", std::vector<double>({0.14, 0.135}));
994 desc_hf.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0, 0.0}));
995 desc_hf.add<
double>(
"pedestal", 3.0);
996 desc_hf.add<
double>(
"pedestalWidth", 0.84);
997 desc_hf.add<
int>(
"zsThreshold", -9999);
998 desc_hf.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.87, 1.4, 7.8, -29.6}));
999 desc_hf.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.359, 0.358, 0.36, 0.367}));
1000 desc_hf.add<
int>(
"qieType", 0);
1001 desc_hf.add<
int>(
"mcShape", 301);
1002 desc_hf.add<
int>(
"recoShape", 301);
1003 desc_hf.add<
double>(
"photoelectronsToAnalog", 0.0);
1004 desc_hf.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.0}));
1005 desc_hf.add<std::vector<double>>(
"noiseCorrelation", std::vector<double>({0.0}));
1006 desc_hf.add<
bool>(
"doRadiationDamage",
false);
1007 desc_hf.add<
double>(
"noiseThreshold", 0.0);
1008 desc_hf.add<
double>(
"seedThreshold", 0.1);
1012 desc_hfUpgrade.
add<std::vector<double>>(
"gain", std::vector<double>({0.14, 0.135}));
1013 desc_hfUpgrade.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0, 0.0}));
1014 desc_hfUpgrade.add<
double>(
"pedestal", 13.33);
1015 desc_hfUpgrade.add<
double>(
"pedestalWidth", 3.33);
1016 desc_hfUpgrade.add<
int>(
"zsThreshold", -9999);
1017 desc_hfUpgrade.add<std::vector<double>>(
"qieOffset", std::vector<double>({0.0697, -0.7405, 12.38, -671.9}));
1018 desc_hfUpgrade.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.297, 0.298, 0.298, 0.313}));
1019 desc_hfUpgrade.add<
int>(
"qieType", 1);
1020 desc_hfUpgrade.add<
int>(
"mcShape", 301);
1021 desc_hfUpgrade.add<
int>(
"recoShape", 301);
1022 desc_hfUpgrade.add<
double>(
"photoelectronsToAnalog", 0.0);
1023 desc_hfUpgrade.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.0}));
1024 desc_hfUpgrade.add<std::vector<double>>(
"noiseCorrelation", std::vector<double>({0.0}));
1025 desc_hfUpgrade.add<
bool>(
"doRadiationDamage",
false);
1026 desc_hfUpgrade.add<
double>(
"noiseThreshold", 0.0);
1027 desc_hfUpgrade.add<
double>(
"seedThreshold", 0.1);
1031 desc_hfrecal.
add<std::vector<double>>(
"HFdepthOneParameterA", std::vector<double>());
1032 desc_hfrecal.add<std::vector<double>>(
"HFdepthOneParameterB", std::vector<double>());
1033 desc_hfrecal.add<std::vector<double>>(
"HFdepthTwoParameterA", std::vector<double>());
1034 desc_hfrecal.add<std::vector<double>>(
"HFdepthTwoParameterB", std::vector<double>());
1038 desc_ho.
add<std::vector<double>>(
"gain", std::vector<double>({0.006, 0.0087}));
1039 desc_ho.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0, 0.0}));
1040 desc_ho.add<
double>(
"pedestal", 11.0);
1041 desc_ho.add<
double>(
"pedestalWidth", 0.57);
1042 desc_ho.add<
int>(
"zsThreshold", 24);
1043 desc_ho.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.44, 1.4, 7.1, 38.5}));
1044 desc_ho.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.907, 0.915, 0.92, 0.921}));
1045 desc_ho.add<
int>(
"qieType", 0);
1046 desc_ho.add<
int>(
"mcShape", 201);
1047 desc_ho.add<
int>(
"recoShape", 201);
1048 desc_ho.add<
double>(
"photoelectronsToAnalog", 4.0);
1049 desc_ho.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.0}));
1050 desc_ho.add<std::vector<double>>(
"noiseCorrelation", std::vector<double>({0.0}));
1051 desc_ho.add<
bool>(
"doRadiationDamage",
false);
1052 desc_ho.add<
double>(
"noiseThreshold", 0.0);
1053 desc_ho.add<
double>(
"seedThreshold", 0.1);
1057 validator_sipm.
add<
int>(
"pixels", 1);
1058 validator_sipm.add<
double>(
"crosstalk", 0);
1059 validator_sipm.add<
double>(
"nonlin1", 1);
1060 validator_sipm.add<
double>(
"nonlin2", 0);
1061 validator_sipm.add<
double>(
"nonlin3", 0);
1062 std::vector<edm::ParameterSet> default_sipm(1);
1063 desc.addVPSet(
"SiPMCharacteristics", validator_sipm, default_sipm);
std::unique_ptr< HcalPedestals > producePedestals(const HcalPedestalsRcd &rcd)
std::unique_ptr< HcalPFCuts > producePFCuts(const HcalPFCutsRcd &rcd)
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
std::unique_ptr< HcalPedestalWidths > producePedestalWidths_(const HcalPedestalWidthsRcd &rcd, const edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > &, bool eff)
T getUntrackedParameter(std::string const &, T const &) const
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< HcalPedestals > producePedestals_(const HcalPedestalsRcd &rcd, const edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > &, bool eff)
std::unique_ptr< HcalSiPMCharacteristics > makeHardcodeSiPMCharacteristics() const
HcalGainWidth makeGainWidth(HcalGenericDetId fId) const
void addDefault(ParameterSetDescription const &psetDescription)
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)
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)
Log< level::Info, false > LogInfo
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