38 std::vector<HcalGenericDetId> allCells (
const HcalTopology& hcaltopology,
bool killHE =
false) {
39 static std::vector<HcalGenericDetId>
result;
44 std::cout << std::endl <<
"HcalHardcodeCalibrations: maxDepthHB, maxDepthHE = " 45 << maxDepthHB <<
", " << maxDepthHE << std::endl;
56 if (hcaltopology.
valid(cell)) {
57 result.push_back (cell);
59 std::cout <<
" HcalHardcodedCalibrations: det|eta|phi|depth = " 60 << det <<
"|" <<
eta <<
"|" <<
phi <<
"|" 61 <<
depth << std::endl;
73 if(zdctopology.
valid(zcell)) result.push_back(zcell);
75 if(zdctopology.
valid(zcell)) result.push_back(zcell);
80 if(zdctopology.
valid(zcell)) result.push_back(zcell);
82 if(zdctopology.
valid(zcell)) result.push_back(zcell);
87 if(zdctopology.
valid(zcell)) result.push_back(zcell);
89 if(zdctopology.
valid(zcell)) result.push_back(zcell);
94 if(zdctopology.
valid(zcell)) result.push_back(zcell);
96 if(zdctopology.
valid(zcell)) result.push_back(zcell);
110 if (hcaltopology.
validHT(cell)) {
111 result.push_back (cell);
113 std::cout <<
" HcalHardcodedCalibrations: eta|phi|depth|vers = " 114 <<
eta <<
"|" <<
phi <<
"|" <<
depth <<
"|" << vers
131 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::HcalHardcodeCalibrations->...";
133 if ( iConfig.
exists(
"GainWidthsForTrigPrims") )
159 bool hb_recalib = iConfig.
getParameter<
bool>(
"HBRecalibration");
160 bool he_recalib = iConfig.
getParameter<
bool>(
"HERecalibration");
161 bool hf_recalib = iConfig.
getParameter<
bool>(
"HFRecalibration");
183 std::cout <<
" HcalHardcodeCalibrations: iLumi = " << iLumi << std::endl;
195 findingRecord <HcalPedestalsRcd> ();
199 findingRecord <HcalPedestalWidthsRcd> ();
203 findingRecord <HcalPedestalsRcd> ();
207 findingRecord <HcalPedestalWidthsRcd> ();
211 findingRecord <HcalGainsRcd> ();
215 findingRecord <HcalGainWidthsRcd> ();
219 findingRecord <HcalQIEDataRcd> ();
223 findingRecord <HcalQIETypesRcd> ();
227 findingRecord <HcalChannelQualityRcd> ();
231 findingRecord <HcalElectronicsMapRcd> ();
235 findingRecord <HcalZSThresholdsRcd> ();
239 findingRecord <HcalRespCorrsRcd> ();
243 findingRecord <HcalLUTCorrsRcd> ();
247 findingRecord <HcalPFCorrsRcd> ();
251 findingRecord <HcalTimeCorrsRcd> ();
255 findingRecord <HcalL1TriggerObjectsRcd> ();
259 findingRecord <HcalValidationCorrsRcd> ();
263 findingRecord <HcalLutMetadataRcd> ();
267 findingRecord <HcalDcsRcd> ();
271 findingRecord <HcalDcsMapRcd> ();
275 findingRecord <HcalRecoParamsRcd> ();
279 findingRecord <HcalLongRecoParamsRcd> ();
283 findingRecord <HcalZDCLowGainFractionsRcd> ();
287 findingRecord <HcalMCParamsRcd> ();
291 findingRecord <HcalFlagHFDigiTimeParamsRcd> ();
295 findingRecord <HcalFrontEndMapRcd> ();
299 findingRecord <HcalSiPMParametersRcd> ();
303 findingRecord <HcalSiPMCharacteristicsRcd> ();
307 findingRecord <HcalTPChannelParametersRcd> ();
311 findingRecord <HcalTPParametersRcd> ();
327 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::setIntervalFor-> key: " << record <<
" time: " << iTime.
eventID() <<
'/' << iTime.
time ().
value ();
333 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produce" << seff <<
"Pedestals-> ...";
338 auto result = std::make_unique<HcalPedestals>(topo,
false);
339 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
340 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
342 result->addValues(item);
349 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produce" << seff <<
"PedestalWidths-> ...";
354 auto result = std::make_unique<HcalPedestalWidths>(topo,
false);
355 std::vector <HcalGenericDetId> cells = allCells(*htopo,
dbHardcode.
killHE());
356 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
358 result->addValues(item);
380 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceGains-> ...";
385 auto result = std::make_unique<HcalGains>(topo);
386 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
387 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
389 result->addValues(item);
395 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceGainWidths-> ...";
400 auto result = std::make_unique<HcalGainWidths>(topo);
401 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
402 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
407 result->addValues(item);
408 }
else if (!cell->isHcalTrigTowerDetId()) {
410 result->addValues(item);
417 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceQIEData-> ...";
428 auto result = std::make_unique<HcalQIEData>(topo);
429 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
430 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
432 result->addCoder (coder);
438 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceQIETypes-> ...";
443 auto result = std::make_unique<HcalQIETypes>(topo);
444 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
445 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
447 result->addValues(item);
453 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceChannelQuality-> ...";
458 auto result = std::make_unique<HcalChannelQuality>(topo);
459 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
460 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
462 result->addValues(item);
469 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceRespCorrs-> ...";
476 std::vector<std::vector<int>> m_segmentation;
478 m_segmentation.resize(maxEta);
496 auto result = std::make_unique<HcalRespCorrs>(topo);
497 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
498 for (
const auto& cell : cells) {
520 std::cout <<
"HB ieta, depth = " << ieta_ <<
", " << depth_ <<
" corr = " << corr << std::endl;
528 std::cout <<
"HE ieta, depth = " << ieta_ <<
", " << depth_ <<
" corr = " << corr << std::endl;
536 std::cout <<
"HF ieta, depth = " << ieta_ <<
", " << depth_ <<
" corr = " << corr << std::endl;
541 result->addValues(item);
547 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceLUTCorrs-> ...";
552 auto result = std::make_unique<HcalLUTCorrs>(topo);
553 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
554 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
556 result->addValues(item);
562 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::producePFCorrs-> ...";
567 auto result = std::make_unique<HcalPFCorrs>(topo);
568 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
569 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
571 result->addValues(item);
577 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTimeCorrs-> ...";
582 auto result = std::make_unique<HcalTimeCorrs>(topo);
583 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
584 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
586 result->addValues(item);
592 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceZSThresholds-> ...";
597 auto result = std::make_unique<HcalZSThresholds>(topo);
598 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
599 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
601 result->addValues(item);
608 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceL1TriggerObjects-> ...";
613 auto result = std::make_unique<HcalL1TriggerObjects>(topo);
614 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
615 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
617 result->addValues(item);
620 result->setTagString(
"hardcoded");
621 result->setAlgoString(
"hardcoded");
627 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceElectronicsMap-> ...";
632 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
637 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceValidationCorrs-> ...";
642 auto result = std::make_unique<HcalValidationCorrs>(topo);
643 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
644 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
646 result->addValues(item);
652 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceLutMetadata-> ...";
657 auto result = std::make_unique<HcalLutMetadata>(topo);
659 result->setRctLsb( 0.5 );
660 result->setNominalGain(0.177);
663 for (
const auto& cell: cells) {
672 switch (cell.genericSubdet()) {
679 if (
id.ietaAbs() >= 28)
684 if(
id.ietaAbs() >= 18 &&
id.ietaAbs() <= 26) granularity = 2;
685 else if(
id.ietaAbs() >=27 &&
id.ietaAbs() <= 29) granularity = 5;
695 if (cell.isHcalTrigTowerDetId()) {
698 if(
id.ietaAbs() <= 17) {
701 else if(
id.ietaAbs() >= 18 &&
id.ietaAbs() <= 26) {
704 else if(
id.ietaAbs() >= 27 &&
id.ietaAbs() <= 28) {
714 result->addValues(item);
721 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceDcsValues-> ...";
722 auto result = std::make_unique<HcalDcsValues>();
727 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceDcsMap-> ...";
733 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceRecoParams-> ...";
738 auto result = std::make_unique<HcalRecoParams>(topo);
739 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
740 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
742 result->addValues(item);
748 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTimingParams-> ...";
753 auto result = std::make_unique<HcalTimingParams>(topo);
754 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
755 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
757 result->addValues(item);
763 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceLongRecoParams-> ...";
768 auto result = std::make_unique<HcalLongRecoParams>(topo);
769 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
770 std::vector <unsigned int> mSignal;
771 mSignal.push_back(4);
772 mSignal.push_back(5);
773 mSignal.push_back(6);
774 std::vector <unsigned int> mNoise;
778 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
779 if (cell->isHcalZDCDetId())
782 result->addValues(item);
789 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceZDCLowGainFractions-> ...";
794 auto result = std::make_unique<HcalZDCLowGainFractions>(topo);
795 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
796 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
798 result->addValues(item);
808 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceMCParams-> ...";
812 auto result = std::make_unique<HcalMCParams>(topo);
813 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
814 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
818 result->addValues(item);
825 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceFlagHFDigiTimeParams-> ...";
830 auto result = std::make_unique<HcalFlagHFDigiTimeParams>(topo);
831 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
833 std::vector<double> coef;
834 coef.push_back(0.93);
835 coef.push_back(-0.38275);
836 coef.push_back(-0.012667);
838 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
846 result->addValues(item);
853 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceFrontEndMap-> ...";
857 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
864 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceSiPMParameters-> ...";
869 auto result = std::make_unique<HcalSiPMParameters>(topo);
870 std::vector <HcalGenericDetId> cells = allCells(*htopo,
dbHardcode.
killHE());
871 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
873 result->addValues(item);
879 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceSiPMCharacteristics-> ...";
886 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTPChannelParameters-> ...";
891 auto result = std::make_unique<HcalTPChannelParameters>(topo);
892 std::vector <HcalGenericDetId> cells = allCells(*htopo,
dbHardcode.
killHE());
893 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
895 result->addValues(item);
901 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTPParameters-> ...";
903 auto result = std::make_unique<HcalTPParameters>();
910 desc.
add<
double>(
"iLumi",-1.);
911 desc.
add<
bool>(
"HBRecalibration",
false);
912 desc.
add<
double>(
"HBreCalibCutoff",20.);
914 desc.
add<
bool>(
"HERecalibration",
false);
915 desc.
add<
double>(
"HEreCalibCutoff",20.);
917 desc.
add<
bool>(
"HFRecalibration",
false);
918 desc.
add<
bool>(
"GainWidthsForTrigPrims",
false);
919 desc.
add<
bool>(
"useHBUpgrade",
false);
920 desc.
add<
bool>(
"useHEUpgrade",
false);
921 desc.
add<
bool>(
"useHFUpgrade",
false);
922 desc.
add<
bool>(
"useHOUpgrade",
true);
923 desc.
add<
bool>(
"testHFQIE10",
false);
924 desc.
add<
bool>(
"testHEPlan1",
false);
925 desc.
add<
bool>(
"killHE",
false);
926 desc.
add<
bool>(
"useLayer0Weight",
false);
927 desc.
addUntracked<std::vector<std::string> >(
"toGet",std::vector<std::string>());
931 desc_hb.
add<std::vector<double>>(
"gain", std::vector<double>({0.19}));
932 desc_hb.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0}));
933 desc_hb.add<
double>(
"pedestal", 3.0);
934 desc_hb.add<
double>(
"pedestalWidth", 0.55);
935 desc_hb.add<
int>(
"zsThreshold", 8);
936 desc_hb.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.49, 1.8, 7.2, 37.9}));
937 desc_hb.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.912, 0.917, 0.922, 0.923}));
938 desc_hb.add<
int>(
"qieType", 0);
939 desc_hb.add<
int>(
"mcShape",125);
940 desc_hb.add<
int>(
"recoShape",105);
941 desc_hb.add<
double>(
"photoelectronsToAnalog",0.0);
942 desc_hb.add<std::vector<double>>(
"darkCurrent",std::vector<double>({0.0}));
943 desc_hb.add<
bool>(
"doRadiationDamage",
false);
947 desc_hbRaddam.
add<
double>(
"temperatureBase",20.0);
948 desc_hbRaddam.add<
double>(
"temperatureNew",-5.0);
949 desc_hbRaddam.add<
double>(
"intlumiOffset",150);
950 desc_hbRaddam.add<
double>(
"depVsTemp",0.0631);
951 desc_hbRaddam.add<
double>(
"intlumiToNeutrons",3.67e8);
952 desc_hbRaddam.add<std::vector<double>>(
"depVsNeutrons",{5.69e-11,7.90e-11});
955 desc_hbUpgrade.
add<std::vector<double>>(
"gain", std::vector<double>({0.00111111111111}));
956 desc_hbUpgrade.add<std::vector<double>>(
"gainWidth", std::vector<double>({0}));
957 desc_hbUpgrade.add<
double>(
"pedestal", 18.0);
958 desc_hbUpgrade.add<
double>(
"pedestalWidth", 5.0);
959 desc_hbUpgrade.add<
int>(
"zsThreshold", 3);
960 desc_hbUpgrade.add<std::vector<double>>(
"qieOffset", std::vector<double>({0.0, 0.0, 0.0, 0.0}));
961 desc_hbUpgrade.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.333, 0.333, 0.333, 0.333}));
962 desc_hbUpgrade.add<
int>(
"qieType", 2);
963 desc_hbUpgrade.add<
int>(
"mcShape",206);
964 desc_hbUpgrade.add<
int>(
"recoShape",206);
965 desc_hbUpgrade.add<
double>(
"photoelectronsToAnalog",57.5);
966 desc_hbUpgrade.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.055}));
967 desc_hbUpgrade.add<
bool>(
"doRadiationDamage",
true);
972 desc_he.
add<std::vector<double>>(
"gain", std::vector<double>({0.23}));
973 desc_he.add<std::vector<double>>(
"gainWidth", std::vector<double>({0}));
974 desc_he.add<
double>(
"pedestal", 3.0);
975 desc_he.add<
double>(
"pedestalWidth", 0.79);
976 desc_he.add<
int>(
"zsThreshold", 9);
977 desc_he.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.38, 2.0, 7.6, 39.6}));
978 desc_he.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.912, 0.916, 0.92, 0.922}));
979 desc_he.add<
int>(
"qieType", 0);
980 desc_he.add<
int>(
"mcShape",125);
981 desc_he.add<
int>(
"recoShape",105);
982 desc_he.add<
double>(
"photoelectronsToAnalog",0.0);
983 desc_he.add<std::vector<double>>(
"darkCurrent",std::vector<double>({0.0}));
984 desc_he.add<
bool>(
"doRadiationDamage",
false);
988 desc_heRaddam.
add<
double>(
"temperatureBase",20.0);
989 desc_heRaddam.add<
double>(
"temperatureNew",5.0);
990 desc_heRaddam.add<
double>(
"intlumiOffset",75);
991 desc_heRaddam.add<
double>(
"depVsTemp",0.0631);
992 desc_heRaddam.add<
double>(
"intlumiToNeutrons",2.92e8);
993 desc_heRaddam.add<std::vector<double>>(
"depVsNeutrons",{5.69e-11,7.90e-11});
996 desc_heUpgrade.
add<std::vector<double>>(
"gain", std::vector<double>({0.00111111111111}));
997 desc_heUpgrade.add<std::vector<double>>(
"gainWidth", std::vector<double>({0}));
998 desc_heUpgrade.add<
double>(
"pedestal", 18.0);
999 desc_heUpgrade.add<
double>(
"pedestalWidth", 5.0);
1000 desc_heUpgrade.add<
int>(
"zsThreshold", 3);
1001 desc_heUpgrade.add<std::vector<double>>(
"qieOffset", std::vector<double>({0.0, 0.0, 0.0, 0.0}));
1002 desc_heUpgrade.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.333, 0.333, 0.333, 0.333}));
1003 desc_heUpgrade.add<
int>(
"qieType", 2);
1004 desc_heUpgrade.add<
int>(
"mcShape",206);
1005 desc_heUpgrade.add<
int>(
"recoShape",206);
1006 desc_heUpgrade.add<
double>(
"photoelectronsToAnalog",57.5);
1007 desc_heUpgrade.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.055}));
1008 desc_heUpgrade.add<
bool>(
"doRadiationDamage",
true);
1013 desc_hf.
add<std::vector<double>>(
"gain", std::vector<double>({0.14, 0.135}));
1014 desc_hf.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0, 0.0}));
1015 desc_hf.add<
double>(
"pedestal", 3.0);
1016 desc_hf.add<
double>(
"pedestalWidth", 0.84);
1017 desc_hf.add<
int>(
"zsThreshold", -9999);
1018 desc_hf.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.87, 1.4, 7.8, -29.6}));
1019 desc_hf.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.359, 0.358, 0.36, 0.367}));
1020 desc_hf.add<
int>(
"qieType", 0);
1021 desc_hf.add<
int>(
"mcShape",301);
1022 desc_hf.add<
int>(
"recoShape",301);
1023 desc_hf.add<
double>(
"photoelectronsToAnalog",0.0);
1024 desc_hf.add<std::vector<double>>(
"darkCurrent",std::vector<double>({0.0}));
1025 desc_hf.add<
bool>(
"doRadiationDamage",
false);
1029 desc_hfUpgrade.
add<std::vector<double>>(
"gain", std::vector<double>({0.14, 0.135}));
1030 desc_hfUpgrade.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0, 0.0}));
1031 desc_hfUpgrade.add<
double>(
"pedestal", 13.33);
1032 desc_hfUpgrade.add<
double>(
"pedestalWidth", 3.33);
1033 desc_hfUpgrade.add<
int>(
"zsThreshold", -9999);
1034 desc_hfUpgrade.add<std::vector<double>>(
"qieOffset", std::vector<double>({0.0697, -0.7405, 12.38, -671.9}));
1035 desc_hfUpgrade.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.297, 0.298, 0.298, 0.313}));
1036 desc_hfUpgrade.add<
int>(
"qieType", 1);
1037 desc_hfUpgrade.add<
int>(
"mcShape",301);
1038 desc_hfUpgrade.add<
int>(
"recoShape",301);
1039 desc_hfUpgrade.add<
double>(
"photoelectronsToAnalog",0.0);
1040 desc_hfUpgrade.add<std::vector<double>>(
"darkCurrent",std::vector<double>({0.0}));
1041 desc_hfUpgrade.add<
bool>(
"doRadiationDamage",
false);
1045 desc_hfrecal.
add<std::vector<double>>(
"HFdepthOneParameterA", std::vector<double>());
1046 desc_hfrecal.add<std::vector<double>>(
"HFdepthOneParameterB", std::vector<double>());
1047 desc_hfrecal.add<std::vector<double>>(
"HFdepthTwoParameterA", std::vector<double>());
1048 desc_hfrecal.add<std::vector<double>>(
"HFdepthTwoParameterB", std::vector<double>());
1052 desc_ho.
add<std::vector<double>>(
"gain", std::vector<double>({0.006, 0.0087}));
1053 desc_ho.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0, 0.0}));
1054 desc_ho.add<
double>(
"pedestal", 11.0);
1055 desc_ho.add<
double>(
"pedestalWidth", 0.57);
1056 desc_ho.add<
int>(
"zsThreshold", 24);
1057 desc_ho.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.44, 1.4, 7.1, 38.5}));
1058 desc_ho.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.907, 0.915, 0.92, 0.921}));
1059 desc_ho.add<
int>(
"qieType", 0);
1060 desc_ho.add<
int>(
"mcShape",201);
1061 desc_ho.add<
int>(
"recoShape",201);
1062 desc_ho.add<
double>(
"photoelectronsToAnalog",4.0);
1063 desc_ho.add<std::vector<double>>(
"darkCurrent",std::vector<double>({0.0}));
1064 desc_ho.add<
bool>(
"doRadiationDamage",
false);
1068 validator_sipm.
add<
int>(
"pixels",1);
1069 validator_sipm.add<
double>(
"crosstalk",0);
1070 validator_sipm.add<
double>(
"nonlin1",1);
1071 validator_sipm.add<
double>(
"nonlin2",0);
1072 validator_sipm.add<
double>(
"nonlin3",0);
1073 std::vector<edm::ParameterSet> default_sipm(1);
1074 desc.
addVPSet(
"SiPMCharacteristics",validator_sipm,default_sipm);
std::unique_ptr< HcalPedestals > producePedestals(const HcalPedestalsRcd &rcd)
static const int kHcalVersMask
T getParameter(std::string const &) const
HcalMCParam makeMCParam(HcalGenericDetId fId) const
T getUntrackedParameter(std::string const &, T const &) const
std::unique_ptr< HcalPedestals > producePedestals_(const HcalPedestalsRcd &rcd, bool eff)
std::unique_ptr< HcalGains > produceGains(const HcalGainsRcd &rcd)
void useHBUpgrade(bool b)
void getDepthSegmentation(const unsigned ring, std::vector< int > &readoutDepths, const bool flag=false) const
HcalHardcodeCalibrations(const edm::ParameterSet &)
const bool killHE() const
std::unique_ptr< HcalPedestalWidths > produceEffectivePedestalWidths(const HcalPedestalWidthsRcd &rcd)
ParameterDescriptionBase * addVPSet(U const &iLabel, ParameterSetDescription const &validator, std::vector< ParameterSet > const &defaults)
std::unique_ptr< HcalPFCorrs > producePFCorrs(const HcalPFCorrsRcd &rcd)
std::unique_ptr< HcalQIEData > produceQIEData(const HcalQIEDataRcd &rcd)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void setHBUpgrade(HcalHardcodeParameters p)
const EventID & eventID() const
bool valid(const DetId &id) const override
std::unique_ptr< HcalTimeCorrs > produceTimeCorrs(const HcalTimeCorrsRcd &rcd)
void useHFUpgrade(bool b)
std::unique_ptr< HcalLongRecoParams > produceLongRecoParams(const HcalLongRecoParamsRcd &rcd)
std::unique_ptr< HcalPedestals > produceEffectivePedestals(const HcalPedestalsRcd &rcd)
std::unique_ptr< HcalSiPMCharacteristics > produceSiPMCharacteristics(const HcalSiPMCharacteristicsRcd &rcd)
std::unique_ptr< HcalElectronicsMap > produceElectronicsMap(const HcalElectronicsMapRcd &rcd)
std::unique_ptr< HcalElectronicsMap > makeHardcodeMap(const std::vector< HcalGenericDetId > &cells) const
void setHF(HcalHardcodeParameters p)
static const IOVSyncValue & endOfTime()
bool exists(std::string const ¶meterName) const
checks if a parameter exists
std::pair< Time_t, Time_t > ValidityInterval
std::unique_ptr< HcalPedestalWidths > producePedestalWidths_(const HcalPedestalWidthsRcd &rcd, bool eff)
std::unique_ptr< HcalDcsValues > produceDcsValues(const HcalDcsRcd &rcd)
static const int kHcalEtaMask
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
std::unique_ptr< HcalPedestalWidths > producePedestalWidths(const HcalPedestalWidthsRcd &rcd)
HcalTimingParam makeTimingParam(HcalGenericDetId fId) const
HcalDbHardcode dbHardcode
const DepRecordT & getRecord() const
HcalRecoParam makeRecoParam(HcalGenericDetId fId) const
int depth() const
get the tower depth
void makeHardcodeFrontEndMap(HcalFrontEndMap &emap, const std::vector< HcalGenericDetId > &cells) const
virtual bool valid(const HcalZDCDetId &id) const
void addDefault(ParameterSetDescription const &psetDescription)
std::unique_ptr< HFRecalibration > hf_recalibration
std::unique_ptr< HcalRespCorrs > produceRespCorrs(const HcalRespCorrsRcd &rcd)
HcalQIECoder makeQIECoder(HcalGenericDetId fId) const
std::unique_ptr< HcalLutMetadata > produceLutMetadata(const HcalLutMetadataRcd &rcd)
void setHO(HcalHardcodeParameters p)
static const IOVSyncValue & beginOfTime()
void setHFUpgrade(HcalHardcodeParameters p)
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
void setHE(HcalHardcodeParameters p)
std::unique_ptr< HcalDcsMap > makeHardcodeDcsMap() const
int ieta() const
get the cell ieta
std::unique_ptr< HcalFlagHFDigiTimeParams > produceFlagHFDigiTimeParams(const HcalFlagHFDigiTimeParamsRcd &rcd)
const char * name() const
std::unique_ptr< HcalFrontEndMap > produceFrontEndMap(const HcalFrontEndMapRcd &rcd)
void makeHardcodeTPParameters(HcalTPParameters &tppar) const
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
static const int kHcalPhiMask
~HcalHardcodeCalibrations() override
HcalTPChannelParameter makeHardcodeTPChannelParameter(HcalGenericDetId fId) const
std::unique_ptr< HcalRecoParams > produceRecoParams(const HcalRecoParamsRcd &rcd)
void setHB(HcalHardcodeParameters p)
static const int kHcalPhiMask2
std::unique_ptr< HcalTPParameters > produceTPParameters(const HcalTPParametersRcd &rcd)
HcalGainWidth makeGainWidth(HcalGenericDetId fId) const
std::unique_ptr< HcalSiPMCharacteristics > makeHardcodeSiPMCharacteristics() const
HcalGain makeGain(HcalGenericDetId fId, bool fSmear=false) const
std::unique_ptr< HcalGainWidths > produceGainWidths(const HcalGainWidthsRcd &rcd)
std::unique_ptr< HcalTPChannelParameters > produceTPChannelParameters(const HcalTPChannelParametersRcd &rcd)
std::unique_ptr< HcalL1TriggerObjects > produceL1TriggerObjects(const HcalL1TriggerObjectsRcd &rcd)
bool switchGainWidthsForTrigPrims
std::unique_ptr< HcalZSThresholds > produceZSThresholds(const HcalZSThresholdsRcd &rcd)
HcalQIEType makeQIEType(HcalGenericDetId fId) const
std::unique_ptr< HcalZDCLowGainFractions > produceZDCLowGainFractions(const HcalZDCLowGainFractionsRcd &rcd)
void setSiPMCharacteristics(std::vector< edm::ParameterSet > vps)
std::unique_ptr< HcalMCParams > produceMCParams(const HcalMCParamsRcd &rcd)
void useHEUpgrade(bool b)
std::unique_ptr< HcalTimingParams > produceTimingParams(const HcalTimingParamsRcd &rcd)
std::unique_ptr< HcalQIETypes > produceQIETypes(const HcalQIETypesRcd &rcd)
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)
static const int kHcalEtaMask2
std::string fullPath() const
const Timestamp & time() const
HcalSiPMParameter makeHardcodeSiPMParameter(HcalGenericDetId fId, const HcalTopology *topo, double intlumi)
void setHEUpgrade(HcalHardcodeParameters p)
std::unique_ptr< HcalDcsMap > produceDcsMap(const HcalDcsMapRcd &rcd)
TimeValue_t value() const
HcalZSThreshold makeZSThreshold(HcalGenericDetId fId) const
std::unique_ptr< HcalLUTCorrs > produceLUTCorrs(const HcalLUTCorrsRcd &rcd)
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)
bool validHT(const HcalTrigTowerDetId &id) const