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<HcalQIEDataRcd>();
231 findingRecord<HcalQIETypesRcd>();
235 findingRecord<HcalChannelQualityRcd>();
239 findingRecord<HcalElectronicsMapRcd>();
243 findingRecord<HcalZSThresholdsRcd>();
254 findingRecord<HcalRespCorrsRcd>();
258 findingRecord<HcalLUTCorrsRcd>();
262 findingRecord<HcalPFCorrsRcd>();
266 findingRecord<HcalTimeCorrsRcd>();
271 findingRecord<HcalL1TriggerObjectsRcd>();
276 findingRecord<HcalValidationCorrsRcd>();
280 findingRecord<HcalLutMetadataRcd>();
284 findingRecord<HcalDcsRcd>();
288 findingRecord<HcalDcsMapRcd>();
292 findingRecord<HcalRecoParamsRcd>();
296 findingRecord<HcalLongRecoParamsRcd>();
301 findingRecord<HcalZDCLowGainFractionsRcd>();
305 findingRecord<HcalMCParamsRcd>();
310 findingRecord<HcalFlagHFDigiTimeParamsRcd>();
314 findingRecord<HcalFrontEndMapRcd>();
318 findingRecord<HcalSiPMParametersRcd>();
322 findingRecord<HcalSiPMCharacteristicsRcd>();
327 findingRecord<HcalTPChannelParametersRcd>();
331 findingRecord<HcalTPParametersRcd>();
353 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produce" << seff <<
"Pedestals-> ...";
356 auto result = std::make_unique<HcalPedestals>(&topo,
false);
358 for (
auto cell :
cells) {
368 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produce" << seff <<
"PedestalWidths-> ...";
370 auto result = std::make_unique<HcalPedestalWidths>(&topo,
false);
372 for (
auto cell :
cells) {
397 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceGains-> ...";
400 auto result = std::make_unique<HcalGains>(&topo);
402 for (
auto cell :
cells) {
410 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceGainWidths-> ...";
413 auto result = std::make_unique<HcalGainWidths>(&topo);
415 for (
auto cell :
cells) {
420 }
else if (!cell.isHcalTrigTowerDetId()) {
429 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceQIEData-> ...";
437 auto result = std::make_unique<HcalQIEData>(&topo);
439 for (
auto cell :
cells) {
447 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceQIETypes-> ...";
450 auto result = std::make_unique<HcalQIETypes>(&topo);
452 for (
auto cell :
cells) {
460 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceChannelQuality-> ...";
463 auto result = std::make_unique<HcalChannelQuality>(&topo);
465 for (
auto cell :
cells) {
474 if (!(cell.isHcalZDCDetId())) {
482 bool isHEP17 = (
iphi >= 63) && (
iphi <= 66) && (
ieta > 0);
484 bool is18d1 = (absieta == 18) && (
depth == 1);
499 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceRespCorrs-> ...";
504 std::vector<std::vector<int>> m_segmentation;
505 int maxEta = topo.lastHBHERing();
506 m_segmentation.resize(
maxEta);
508 topo.getDepthSegmentation(
i + 1, m_segmentation[
i]);
520 auto result = std::make_unique<HcalRespCorrs>(&topo);
522 for (
const auto& cell :
cells) {
544 std::cout <<
"HB ieta, depth = " << ieta_ <<
", " << depth_ <<
" corr = " <<
corr << std::endl;
551 std::cout <<
"HE ieta, depth = " << ieta_ <<
", " << depth_ <<
" corr = " <<
corr << std::endl;
558 std::cout <<
"HF ieta, depth = " << ieta_ <<
", " << depth_ <<
" corr = " <<
corr << std::endl;
569 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceLUTCorrs-> ...";
572 auto result = std::make_unique<HcalLUTCorrs>(&topo);
574 for (
auto cell :
cells) {
582 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::producePFCorrs-> ...";
585 auto result = std::make_unique<HcalPFCorrs>(&topo);
587 for (
auto cell :
cells) {
595 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTimeCorrs-> ...";
598 auto result = std::make_unique<HcalTimeCorrs>(&topo);
600 for (
auto cell :
cells) {
608 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceZSThresholds-> ...";
611 auto result = std::make_unique<HcalZSThresholds>(&topo);
613 for (
auto cell :
cells) {
622 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceL1TriggerObjects-> ...";
625 auto result = std::make_unique<HcalL1TriggerObjects>(&topo);
627 for (
auto cell :
cells) {
632 result->setTagString(
"hardcoded");
633 result->setAlgoString(
"hardcoded");
638 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceElectronicsMap-> ...";
647 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceValidationCorrs-> ...";
650 auto result = std::make_unique<HcalValidationCorrs>(&topo);
652 for (
auto cell :
cells) {
660 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceLutMetadata-> ...";
663 auto result = std::make_unique<HcalLutMetadata>(&topo);
666 result->setNominalGain(0.177);
669 for (
const auto& cell :
cells) {
674 if (cell.isHcalTrigTowerDetId()) {
686 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceDcsValues-> ...";
687 auto result = std::make_unique<HcalDcsValues>();
692 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceDcsMap-> ...";
698 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceRecoParams-> ...";
701 auto result = std::make_unique<HcalRecoParams>(&topo);
703 for (
auto cell :
cells) {
711 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTimingParams-> ...";
714 auto result = std::make_unique<HcalTimingParams>(&topo);
716 for (
auto cell :
cells) {
724 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceLongRecoParams-> ...";
727 auto result = std::make_unique<HcalLongRecoParams>(&topo);
729 std::vector<unsigned int> mSignal;
730 mSignal.push_back(4);
731 mSignal.push_back(5);
732 mSignal.push_back(6);
733 std::vector<unsigned int> mNoise;
737 for (
auto cell :
cells) {
738 if (cell.isHcalZDCDetId()) {
748 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceZDCLowGainFractions-> ...";
751 auto result = std::make_unique<HcalZDCLowGainFractions>(&topo);
753 for (
auto cell :
cells) {
763 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceMCParams-> ...";
765 auto result = std::make_unique<HcalMCParams>(&topo);
767 for (
auto cell :
cells) {
776 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceFlagHFDigiTimeParams-> ...";
779 auto result = std::make_unique<HcalFlagHFDigiTimeParams>(&topo);
782 std::vector<double> coef;
783 coef.push_back(0.93);
784 coef.push_back(-0.38275);
785 coef.push_back(-0.012667);
787 for (
auto cell :
cells) {
801 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceFrontEndMap-> ...";
810 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceSiPMParameters-> ...";
813 auto result = std::make_unique<HcalSiPMParameters>(&topo);
815 for (
auto cell :
cells) {
824 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceSiPMCharacteristics-> ...";
831 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTPChannelParameters-> ...";
834 auto result = std::make_unique<HcalTPChannelParameters>(&topo);
836 for (
auto cell :
cells) {
848 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTPParameters-> ...";
850 auto result = std::make_unique<HcalTPParameters>();
857 desc.add<
double>(
"iLumi", -1.);
858 desc.add<
bool>(
"HBRecalibration",
false);
859 desc.add<
double>(
"HBreCalibCutoff", 20.);
861 desc.add<
bool>(
"HERecalibration",
false);
862 desc.add<
double>(
"HEreCalibCutoff", 20.);
864 desc.add<
bool>(
"HFRecalibration",
false);
865 desc.add<
bool>(
"GainWidthsForTrigPrims",
false);
866 desc.add<
bool>(
"useHBUpgrade",
false);
867 desc.add<
bool>(
"useHEUpgrade",
false);
868 desc.add<
bool>(
"useHFUpgrade",
false);
869 desc.add<
bool>(
"useHOUpgrade",
true);
870 desc.add<
bool>(
"testHFQIE10",
false);
871 desc.add<
bool>(
"testHEPlan1",
false);
872 desc.add<
bool>(
"killHE",
false);
873 desc.add<
bool>(
"useLayer0Weight",
false);
874 desc.add<
bool>(
"useIeta18depth1",
true);
875 desc.addUntracked<std::vector<std::string>>(
"toGet", std::vector<std::string>());
876 desc.addUntracked<
bool>(
"fromDDD",
false);
879 desc_hb.
add<std::vector<double>>(
"gain", std::vector<double>({0.19}));
880 desc_hb.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0}));
881 desc_hb.add<
double>(
"pedestal", 3.0);
882 desc_hb.add<
double>(
"pedestalWidth", 0.55);
883 desc_hb.add<
int>(
"zsThreshold", 8);
884 desc_hb.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.49, 1.8, 7.2, 37.9}));
885 desc_hb.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.912, 0.917, 0.922, 0.923}));
886 desc_hb.add<
int>(
"qieType", 0);
887 desc_hb.add<
int>(
"mcShape", 125);
888 desc_hb.add<
int>(
"recoShape", 105);
889 desc_hb.add<
double>(
"photoelectronsToAnalog", 0.0);
890 desc_hb.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.0}));
891 desc_hb.add<std::vector<double>>(
"noiseCorrelation", std::vector<double>({0.0}));
892 desc_hb.add<
bool>(
"doRadiationDamage",
false);
896 desc_hbRaddam.
add<
double>(
"temperatureBase", 20.0);
897 desc_hbRaddam.add<
double>(
"temperatureNew", -5.0);
898 desc_hbRaddam.add<
double>(
"intlumiOffset", 150);
899 desc_hbRaddam.add<
double>(
"depVsTemp", 0.0631);
900 desc_hbRaddam.add<
double>(
"intlumiToNeutrons", 3.67e8);
901 desc_hbRaddam.add<std::vector<double>>(
"depVsNeutrons", {5.69e-11, 7.90e-11});
904 desc_hbUpgrade.
add<std::vector<double>>(
"gain", std::vector<double>({0.00111111111111}));
905 desc_hbUpgrade.add<std::vector<double>>(
"gainWidth", std::vector<double>({0}));
906 desc_hbUpgrade.add<
double>(
"pedestal", 18.0);
907 desc_hbUpgrade.add<
double>(
"pedestalWidth", 5.0);
908 desc_hbUpgrade.add<
int>(
"zsThreshold", 3);
909 desc_hbUpgrade.add<std::vector<double>>(
"qieOffset", std::vector<double>({0.0, 0.0, 0.0, 0.0}));
910 desc_hbUpgrade.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.333, 0.333, 0.333, 0.333}));
911 desc_hbUpgrade.add<
int>(
"qieType", 2);
912 desc_hbUpgrade.add<
int>(
"mcShape", 206);
913 desc_hbUpgrade.add<
int>(
"recoShape", 206);
914 desc_hbUpgrade.add<
double>(
"photoelectronsToAnalog", 57.5);
915 desc_hbUpgrade.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.055}));
916 desc_hbUpgrade.add<std::vector<double>>(
"noiseCorrelation", std::vector<double>({0.26}));
917 desc_hbUpgrade.add<
bool>(
"doRadiationDamage",
true);
922 desc_he.
add<std::vector<double>>(
"gain", std::vector<double>({0.23}));
923 desc_he.add<std::vector<double>>(
"gainWidth", std::vector<double>({0}));
924 desc_he.add<
double>(
"pedestal", 3.0);
925 desc_he.add<
double>(
"pedestalWidth", 0.79);
926 desc_he.add<
int>(
"zsThreshold", 9);
927 desc_he.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.38, 2.0, 7.6, 39.6}));
928 desc_he.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.912, 0.916, 0.92, 0.922}));
929 desc_he.add<
int>(
"qieType", 0);
930 desc_he.add<
int>(
"mcShape", 125);
931 desc_he.add<
int>(
"recoShape", 105);
932 desc_he.add<
double>(
"photoelectronsToAnalog", 0.0);
933 desc_he.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.0}));
934 desc_he.add<std::vector<double>>(
"noiseCorrelation", std::vector<double>({0.0}));
935 desc_he.add<
bool>(
"doRadiationDamage",
false);
939 desc_heRaddam.
add<
double>(
"temperatureBase", 20.0);
940 desc_heRaddam.add<
double>(
"temperatureNew", 5.0);
941 desc_heRaddam.add<
double>(
"intlumiOffset", 75);
942 desc_heRaddam.add<
double>(
"depVsTemp", 0.0631);
943 desc_heRaddam.add<
double>(
"intlumiToNeutrons", 2.92e8);
944 desc_heRaddam.add<std::vector<double>>(
"depVsNeutrons", {5.69e-11, 7.90e-11});
947 desc_heUpgrade.
add<std::vector<double>>(
"gain", std::vector<double>({0.00111111111111}));
948 desc_heUpgrade.add<std::vector<double>>(
"gainWidth", std::vector<double>({0}));
949 desc_heUpgrade.add<
double>(
"pedestal", 18.0);
950 desc_heUpgrade.add<
double>(
"pedestalWidth", 5.0);
951 desc_heUpgrade.add<
int>(
"zsThreshold", 3);
952 desc_heUpgrade.add<std::vector<double>>(
"qieOffset", std::vector<double>({0.0, 0.0, 0.0, 0.0}));
953 desc_heUpgrade.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.333, 0.333, 0.333, 0.333}));
954 desc_heUpgrade.add<
int>(
"qieType", 2);
955 desc_heUpgrade.add<
int>(
"mcShape", 206);
956 desc_heUpgrade.add<
int>(
"recoShape", 206);
957 desc_heUpgrade.add<
double>(
"photoelectronsToAnalog", 57.5);
958 desc_heUpgrade.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.055}));
959 desc_heUpgrade.add<std::vector<double>>(
"noiseCorrelation", std::vector<double>({0.26}));
960 desc_heUpgrade.add<
bool>(
"doRadiationDamage",
true);
965 desc_hf.
add<std::vector<double>>(
"gain", std::vector<double>({0.14, 0.135}));
966 desc_hf.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0, 0.0}));
967 desc_hf.add<
double>(
"pedestal", 3.0);
968 desc_hf.add<
double>(
"pedestalWidth", 0.84);
969 desc_hf.add<
int>(
"zsThreshold", -9999);
970 desc_hf.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.87, 1.4, 7.8, -29.6}));
971 desc_hf.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.359, 0.358, 0.36, 0.367}));
972 desc_hf.add<
int>(
"qieType", 0);
973 desc_hf.add<
int>(
"mcShape", 301);
974 desc_hf.add<
int>(
"recoShape", 301);
975 desc_hf.add<
double>(
"photoelectronsToAnalog", 0.0);
976 desc_hf.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.0}));
977 desc_hf.add<std::vector<double>>(
"noiseCorrelation", std::vector<double>({0.0}));
978 desc_hf.add<
bool>(
"doRadiationDamage",
false);
982 desc_hfUpgrade.
add<std::vector<double>>(
"gain", std::vector<double>({0.14, 0.135}));
983 desc_hfUpgrade.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0, 0.0}));
984 desc_hfUpgrade.add<
double>(
"pedestal", 13.33);
985 desc_hfUpgrade.add<
double>(
"pedestalWidth", 3.33);
986 desc_hfUpgrade.add<
int>(
"zsThreshold", -9999);
987 desc_hfUpgrade.add<std::vector<double>>(
"qieOffset", std::vector<double>({0.0697, -0.7405, 12.38, -671.9}));
988 desc_hfUpgrade.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.297, 0.298, 0.298, 0.313}));
989 desc_hfUpgrade.add<
int>(
"qieType", 1);
990 desc_hfUpgrade.add<
int>(
"mcShape", 301);
991 desc_hfUpgrade.add<
int>(
"recoShape", 301);
992 desc_hfUpgrade.add<
double>(
"photoelectronsToAnalog", 0.0);
993 desc_hfUpgrade.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.0}));
994 desc_hfUpgrade.add<std::vector<double>>(
"noiseCorrelation", std::vector<double>({0.0}));
995 desc_hfUpgrade.add<
bool>(
"doRadiationDamage",
false);
999 desc_hfrecal.
add<std::vector<double>>(
"HFdepthOneParameterA", std::vector<double>());
1000 desc_hfrecal.add<std::vector<double>>(
"HFdepthOneParameterB", std::vector<double>());
1001 desc_hfrecal.add<std::vector<double>>(
"HFdepthTwoParameterA", std::vector<double>());
1002 desc_hfrecal.add<std::vector<double>>(
"HFdepthTwoParameterB", std::vector<double>());
1006 desc_ho.
add<std::vector<double>>(
"gain", std::vector<double>({0.006, 0.0087}));
1007 desc_ho.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0, 0.0}));
1008 desc_ho.add<
double>(
"pedestal", 11.0);
1009 desc_ho.add<
double>(
"pedestalWidth", 0.57);
1010 desc_ho.add<
int>(
"zsThreshold", 24);
1011 desc_ho.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.44, 1.4, 7.1, 38.5}));
1012 desc_ho.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.907, 0.915, 0.92, 0.921}));
1013 desc_ho.add<
int>(
"qieType", 0);
1014 desc_ho.add<
int>(
"mcShape", 201);
1015 desc_ho.add<
int>(
"recoShape", 201);
1016 desc_ho.add<
double>(
"photoelectronsToAnalog", 4.0);
1017 desc_ho.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.0}));
1018 desc_ho.add<std::vector<double>>(
"noiseCorrelation", std::vector<double>({0.0}));
1019 desc_ho.add<
bool>(
"doRadiationDamage",
false);
1023 validator_sipm.
add<
int>(
"pixels", 1);
1024 validator_sipm.add<
double>(
"crosstalk", 0);
1025 validator_sipm.add<
double>(
"nonlin1", 1);
1026 validator_sipm.add<
double>(
"nonlin2", 0);
1027 validator_sipm.add<
double>(
"nonlin3", 0);
1028 std::vector<edm::ParameterSet> default_sipm(1);
1029 desc.addVPSet(
"SiPMCharacteristics", validator_sipm, default_sipm);
std::unique_ptr< HcalPedestals > producePedestals(const HcalPedestalsRcd &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_
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
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
caConstants::TupleMultiplicity const CAHitNtupletGeneratorKernelsGPU::HitToTuple const cms::cuda::AtomicPairCounter GPUCACell const *__restrict__ cells
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