36 std::vector<HcalGenericDetId> allCells (
const HcalTopology& hcaltopology,
bool killHE =
false) {
37 static std::vector<HcalGenericDetId>
result;
42 std::cout << std::endl <<
"HcalHardcodeCalibrations: maxDepthHB, maxDepthHE = " 43 << maxDepthHB <<
", " << maxDepthHE << std::endl;
46 if (result.size () <= 0) {
54 if (hcaltopology.
valid(cell)) {
55 result.push_back (cell);
57 std::cout <<
" HcalHardcodedCalibrations: det|eta|phi|depth = " 58 << det <<
"|" <<
eta <<
"|" <<
phi <<
"|" 59 <<
depth << std::endl;
71 if(zdctopology.
valid(zcell)) result.push_back(zcell);
73 if(zdctopology.
valid(zcell)) result.push_back(zcell);
78 if(zdctopology.
valid(zcell)) result.push_back(zcell);
80 if(zdctopology.
valid(zcell)) result.push_back(zcell);
85 if(zdctopology.
valid(zcell)) result.push_back(zcell);
87 if(zdctopology.
valid(zcell)) result.push_back(zcell);
92 if(zdctopology.
valid(zcell)) result.push_back(zcell);
94 if(zdctopology.
valid(zcell)) result.push_back(zcell);
108 if (hcaltopology.
validHT(cell)) {
109 result.push_back (cell);
111 std::cout <<
" HcalHardcodedCalibrations: eta|phi|depth|vers = " 112 <<
eta <<
"|" <<
phi <<
"|" <<
depth <<
"|" << vers
129 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::HcalHardcodeCalibrations->...";
131 if ( iConfig.
exists(
"GainWidthsForTrigPrims") )
157 bool hb_recalib = iConfig.
getParameter<
bool>(
"HBRecalibration");
158 bool he_recalib = iConfig.
getParameter<
bool>(
"HERecalibration");
159 bool hf_recalib = iConfig.
getParameter<
bool>(
"HFRecalibration");
181 std::cout <<
" HcalHardcodeCalibrations: iLumi = " << iLumi << std::endl;
193 findingRecord <HcalPedestalsRcd> ();
197 findingRecord <HcalPedestalWidthsRcd> ();
201 findingRecord <HcalGainsRcd> ();
205 findingRecord <HcalGainWidthsRcd> ();
209 findingRecord <HcalQIEDataRcd> ();
213 findingRecord <HcalQIETypesRcd> ();
217 findingRecord <HcalChannelQualityRcd> ();
221 findingRecord <HcalElectronicsMapRcd> ();
225 findingRecord <HcalZSThresholdsRcd> ();
229 findingRecord <HcalRespCorrsRcd> ();
233 findingRecord <HcalLUTCorrsRcd> ();
237 findingRecord <HcalPFCorrsRcd> ();
241 findingRecord <HcalTimeCorrsRcd> ();
245 findingRecord <HcalL1TriggerObjectsRcd> ();
249 findingRecord <HcalValidationCorrsRcd> ();
253 findingRecord <HcalLutMetadataRcd> ();
257 findingRecord <HcalDcsRcd> ();
261 findingRecord <HcalDcsMapRcd> ();
265 findingRecord <HcalRecoParamsRcd> ();
269 findingRecord <HcalLongRecoParamsRcd> ();
273 findingRecord <HcalZDCLowGainFractionsRcd> ();
277 findingRecord <HcalMCParamsRcd> ();
281 findingRecord <HcalFlagHFDigiTimeParamsRcd> ();
285 findingRecord <HcalFrontEndMapRcd> ();
289 findingRecord <HcalSiPMParametersRcd> ();
293 findingRecord <HcalSiPMCharacteristicsRcd> ();
297 findingRecord <HcalTPChannelParametersRcd> ();
301 findingRecord <HcalTPParametersRcd> ();
317 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::setIntervalFor-> key: " << record <<
" time: " << iTime.
eventID() <<
'/' << iTime.
time ().
value ();
322 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::producePedestals-> ...";
327 auto result = std::make_unique<HcalPedestals>(topo,
false);
328 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
329 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
331 result->addValues(item);
337 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::producePedestalWidths-> ...";
342 auto result = std::make_unique<HcalPedestalWidths>(topo,
false);
343 std::vector <HcalGenericDetId> cells = allCells(*htopo,
dbHardcode.
killHE());
344 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
346 result->addValues(item);
352 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceGains-> ...";
357 auto result = std::make_unique<HcalGains>(topo);
358 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
359 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
361 result->addValues(item);
367 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceGainWidths-> ...";
372 auto result = std::make_unique<HcalGainWidths>(topo);
373 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
374 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
379 result->addValues(item);
380 }
else if (!cell->isHcalTrigTowerDetId()) {
382 result->addValues(item);
389 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceQIEData-> ...";
400 auto result = std::make_unique<HcalQIEData>(topo);
401 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
402 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
404 result->addCoder (coder);
410 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceQIETypes-> ...";
415 auto result = std::make_unique<HcalQIETypes>(topo);
416 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
417 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
419 result->addValues(item);
425 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceChannelQuality-> ...";
430 auto result = std::make_unique<HcalChannelQuality>(topo);
431 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
432 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
434 result->addValues(item);
441 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceRespCorrs-> ...";
448 std::vector<std::vector<int>> m_segmentation;
450 m_segmentation.resize(maxEta);
468 auto result = std::make_unique<HcalRespCorrs>(topo);
469 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
470 for (
const auto& cell : cells) {
492 std::cout <<
"HB ieta, depth = " << ieta_ <<
", " << depth_ <<
" corr = " << corr << std::endl;
500 std::cout <<
"HE ieta, depth = " << ieta_ <<
", " << depth_ <<
" corr = " << corr << std::endl;
508 std::cout <<
"HF ieta, depth = " << ieta_ <<
", " << depth_ <<
" corr = " << corr << std::endl;
513 result->addValues(item);
519 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceLUTCorrs-> ...";
524 auto result = std::make_unique<HcalLUTCorrs>(topo);
525 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
526 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
528 result->addValues(item);
534 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::producePFCorrs-> ...";
539 auto result = std::make_unique<HcalPFCorrs>(topo);
540 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
541 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
543 result->addValues(item);
549 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTimeCorrs-> ...";
554 auto result = std::make_unique<HcalTimeCorrs>(topo);
555 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
556 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
558 result->addValues(item);
564 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceZSThresholds-> ...";
569 auto result = std::make_unique<HcalZSThresholds>(topo);
570 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
571 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
573 result->addValues(item);
580 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceL1TriggerObjects-> ...";
585 auto result = std::make_unique<HcalL1TriggerObjects>(topo);
586 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
587 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
589 result->addValues(item);
592 result->setTagString(
"hardcoded");
593 result->setAlgoString(
"hardcoded");
599 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceElectronicsMap-> ...";
604 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
609 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceValidationCorrs-> ...";
614 auto result = std::make_unique<HcalValidationCorrs>(topo);
615 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
616 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
618 result->addValues(item);
624 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceLutMetadata-> ...";
629 auto result = std::make_unique<HcalLutMetadata>(topo);
631 result->setRctLsb( 0.5 );
632 result->setNominalGain(0.177);
635 for (
const auto& cell: cells) {
644 switch (cell.genericSubdet()) {
651 if (
id.ietaAbs() >= 28)
656 if(
id.ietaAbs() >= 18 &&
id.ietaAbs() <= 26) granularity = 2;
657 else if(
id.ietaAbs() >=27 &&
id.ietaAbs() <= 29) granularity = 5;
667 if (cell.isHcalTrigTowerDetId()) {
670 if(
id.ietaAbs() <= 17) {
674 else if(
id.ietaAbs() >= 18 &&
id.ietaAbs() <= 26) {
678 else if(
id.ietaAbs() >= 27 &&
id.ietaAbs() <= 28) {
690 result->addValues(item);
697 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceDcsValues-> ...";
698 auto result = std::make_unique<HcalDcsValues>();
703 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceDcsMap-> ...";
709 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceRecoParams-> ...";
714 auto result = std::make_unique<HcalRecoParams>(topo);
715 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
716 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
718 result->addValues(item);
724 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTimingParams-> ...";
729 auto result = std::make_unique<HcalTimingParams>(topo);
730 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
731 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
733 result->addValues(item);
739 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceLongRecoParams-> ...";
744 auto result = std::make_unique<HcalLongRecoParams>(topo);
745 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
746 std::vector <unsigned int> mSignal;
747 mSignal.push_back(4);
748 mSignal.push_back(5);
749 mSignal.push_back(6);
750 std::vector <unsigned int> mNoise;
754 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
755 if (cell->isHcalZDCDetId())
758 result->addValues(item);
765 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceZDCLowGainFractions-> ...";
770 auto result = std::make_unique<HcalZDCLowGainFractions>(topo);
771 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
772 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
774 result->addValues(item);
784 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceMCParams-> ...";
788 auto result = std::make_unique<HcalMCParams>(topo);
789 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
790 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
794 result->addValues(item);
801 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceFlagHFDigiTimeParams-> ...";
806 auto result = std::make_unique<HcalFlagHFDigiTimeParams>(topo);
807 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
809 std::vector<double> coef;
810 coef.push_back(0.93);
811 coef.push_back(-0.38275);
812 coef.push_back(-0.012667);
814 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
822 result->addValues(item);
829 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceFrontEndMap-> ...";
833 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
840 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceSiPMParameters-> ...";
845 auto result = std::make_unique<HcalSiPMParameters>(topo);
846 std::vector <HcalGenericDetId> cells = allCells(*htopo,
dbHardcode.
killHE());
847 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
849 result->addValues(item);
855 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceSiPMCharacteristics-> ...";
862 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTPChannelParameters-> ...";
867 auto result = std::make_unique<HcalTPChannelParameters>(topo);
868 std::vector <HcalGenericDetId> cells = allCells(*htopo,
dbHardcode.
killHE());
869 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
871 result->addValues(item);
877 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTPParameters-> ...";
879 auto result = std::make_unique<HcalTPParameters>();
886 desc.
add<
double>(
"iLumi",-1.);
887 desc.
add<
bool>(
"HBRecalibration",
false);
888 desc.
add<
double>(
"HBreCalibCutoff",20.);
890 desc.
add<
bool>(
"HERecalibration",
false);
891 desc.
add<
double>(
"HEreCalibCutoff",20.);
893 desc.
add<
bool>(
"HFRecalibration",
false);
894 desc.
add<
bool>(
"GainWidthsForTrigPrims",
false);
895 desc.
add<
bool>(
"useHBUpgrade",
false);
896 desc.
add<
bool>(
"useHEUpgrade",
false);
897 desc.
add<
bool>(
"useHFUpgrade",
false);
898 desc.
add<
bool>(
"useHOUpgrade",
true);
899 desc.
add<
bool>(
"testHFQIE10",
false);
900 desc.
add<
bool>(
"testHEPlan1",
false);
901 desc.
add<
bool>(
"killHE",
false);
902 desc.
add<
bool>(
"useLayer0Weight",
false);
903 desc.
addUntracked<std::vector<std::string> >(
"toGet",std::vector<std::string>());
907 desc_hb.
add<std::vector<double>>(
"gain", std::vector<double>({0.19}));
908 desc_hb.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0}));
909 desc_hb.add<
double>(
"pedestal", 3.0);
910 desc_hb.add<
double>(
"pedestalWidth", 0.55);
911 desc_hb.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.49, 1.8, 7.2, 37.9}));
912 desc_hb.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.912, 0.917, 0.922, 0.923}));
913 desc_hb.add<
int>(
"qieType", 0);
914 desc_hb.add<
int>(
"mcShape",125);
915 desc_hb.add<
int>(
"recoShape",105);
916 desc_hb.add<
double>(
"photoelectronsToAnalog",0.0);
917 desc_hb.add<std::vector<double>>(
"darkCurrent",std::vector<double>({0.0}));
918 desc_hb.add<
bool>(
"doRadiationDamage",
false);
922 desc_hbRaddam.
add<
double>(
"temperatureBase",20.0);
923 desc_hbRaddam.add<
double>(
"temperatureNew",-5.0);
924 desc_hbRaddam.add<
double>(
"intlumiOffset",150);
925 desc_hbRaddam.add<
double>(
"depVsTemp",0.0631);
926 desc_hbRaddam.add<
double>(
"intlumiToNeutrons",3.67e8);
927 desc_hbRaddam.add<std::vector<double>>(
"depVsNeutrons",{5.69e-11,7.90e-11});
930 desc_hbUpgrade.
add<std::vector<double>>(
"gain", std::vector<double>({0.00111111111111}));
931 desc_hbUpgrade.add<std::vector<double>>(
"gainWidth", std::vector<double>({0}));
932 desc_hbUpgrade.add<
double>(
"pedestal", 18.0);
933 desc_hbUpgrade.add<
double>(
"pedestalWidth", 5.0);
934 desc_hbUpgrade.add<std::vector<double>>(
"qieOffset", std::vector<double>({0.0, 0.0, 0.0, 0.0}));
935 desc_hbUpgrade.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.333, 0.333, 0.333, 0.333}));
936 desc_hbUpgrade.add<
int>(
"qieType", 2);
937 desc_hbUpgrade.add<
int>(
"mcShape",203);
938 desc_hbUpgrade.add<
int>(
"recoShape",203);
939 desc_hbUpgrade.add<
double>(
"photoelectronsToAnalog",57.5);
940 desc_hbUpgrade.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.055}));
941 desc_hbUpgrade.add<
bool>(
"doRadiationDamage",
true);
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<std::vector<double>>(
"qieOffset", std::vector<double>({-0.38, 2.0, 7.6, 39.6}));
951 desc_he.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.912, 0.916, 0.92, 0.922}));
952 desc_he.add<
int>(
"qieType", 0);
953 desc_he.add<
int>(
"mcShape",125);
954 desc_he.add<
int>(
"recoShape",105);
955 desc_he.add<
double>(
"photoelectronsToAnalog",0.0);
956 desc_he.add<std::vector<double>>(
"darkCurrent",std::vector<double>({0.0}));
957 desc_he.add<
bool>(
"doRadiationDamage",
false);
961 desc_heRaddam.
add<
double>(
"temperatureBase",20.0);
962 desc_heRaddam.add<
double>(
"temperatureNew",5.0);
963 desc_heRaddam.add<
double>(
"intlumiOffset",75);
964 desc_heRaddam.add<
double>(
"depVsTemp",0.0631);
965 desc_heRaddam.add<
double>(
"intlumiToNeutrons",2.92e8);
966 desc_heRaddam.add<std::vector<double>>(
"depVsNeutrons",{5.69e-11,7.90e-11});
969 desc_heUpgrade.
add<std::vector<double>>(
"gain", std::vector<double>({0.00111111111111}));
970 desc_heUpgrade.add<std::vector<double>>(
"gainWidth", std::vector<double>({0}));
971 desc_heUpgrade.add<
double>(
"pedestal", 18.0);
972 desc_heUpgrade.add<
double>(
"pedestalWidth", 5.0);
973 desc_heUpgrade.add<std::vector<double>>(
"qieOffset", std::vector<double>({0.0, 0.0, 0.0, 0.0}));
974 desc_heUpgrade.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.333, 0.333, 0.333, 0.333}));
975 desc_heUpgrade.add<
int>(
"qieType", 2);
976 desc_heUpgrade.add<
int>(
"mcShape",203);
977 desc_heUpgrade.add<
int>(
"recoShape",203);
978 desc_heUpgrade.add<
double>(
"photoelectronsToAnalog",57.5);
979 desc_heUpgrade.add<std::vector<double>>(
"darkCurrent", std::vector<double>({0.055}));
980 desc_heUpgrade.add<
bool>(
"doRadiationDamage",
true);
985 desc_hf.
add<std::vector<double>>(
"gain", std::vector<double>({0.14, 0.135}));
986 desc_hf.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0, 0.0}));
987 desc_hf.add<
double>(
"pedestal", 3.0);
988 desc_hf.add<
double>(
"pedestalWidth", 0.84);
989 desc_hf.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.87, 1.4, 7.8, -29.6}));
990 desc_hf.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.359, 0.358, 0.36, 0.367}));
991 desc_hf.add<
int>(
"qieType", 0);
992 desc_hf.add<
int>(
"mcShape",301);
993 desc_hf.add<
int>(
"recoShape",301);
994 desc_hf.add<
double>(
"photoelectronsToAnalog",0.0);
995 desc_hf.add<std::vector<double>>(
"darkCurrent",std::vector<double>({0.0}));
996 desc_hf.add<
bool>(
"doRadiationDamage",
false);
1000 desc_hfUpgrade.
add<std::vector<double>>(
"gain", std::vector<double>({0.14, 0.135}));
1001 desc_hfUpgrade.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0, 0.0}));
1002 desc_hfUpgrade.add<
double>(
"pedestal", 13.33);
1003 desc_hfUpgrade.add<
double>(
"pedestalWidth", 3.33);
1004 desc_hfUpgrade.add<std::vector<double>>(
"qieOffset", std::vector<double>({0.0697, -0.7405, 12.38, -671.9}));
1005 desc_hfUpgrade.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.297, 0.298, 0.298, 0.313}));
1006 desc_hfUpgrade.add<
int>(
"qieType", 1);
1007 desc_hfUpgrade.add<
int>(
"mcShape",301);
1008 desc_hfUpgrade.add<
int>(
"recoShape",301);
1009 desc_hfUpgrade.add<
double>(
"photoelectronsToAnalog",0.0);
1010 desc_hfUpgrade.add<std::vector<double>>(
"darkCurrent",std::vector<double>({0.0}));
1011 desc_hfUpgrade.add<
bool>(
"doRadiationDamage",
false);
1015 desc_hfrecal.
add<std::vector<double>>(
"HFdepthOneParameterA", std::vector<double>());
1016 desc_hfrecal.add<std::vector<double>>(
"HFdepthOneParameterB", std::vector<double>());
1017 desc_hfrecal.add<std::vector<double>>(
"HFdepthTwoParameterA", std::vector<double>());
1018 desc_hfrecal.add<std::vector<double>>(
"HFdepthTwoParameterB", std::vector<double>());
1022 desc_ho.
add<std::vector<double>>(
"gain", std::vector<double>({0.006, 0.0087}));
1023 desc_ho.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0, 0.0}));
1024 desc_ho.add<
double>(
"pedestal", 11.0);
1025 desc_ho.add<
double>(
"pedestalWidth", 0.57);
1026 desc_ho.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.44, 1.4, 7.1, 38.5}));
1027 desc_ho.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.907, 0.915, 0.92, 0.921}));
1028 desc_ho.add<
int>(
"qieType", 0);
1029 desc_ho.add<
int>(
"mcShape",201);
1030 desc_ho.add<
int>(
"recoShape",201);
1031 desc_ho.add<
double>(
"photoelectronsToAnalog",4.0);
1032 desc_ho.add<std::vector<double>>(
"darkCurrent",std::vector<double>({0.0}));
1033 desc_ho.add<
bool>(
"doRadiationDamage",
false);
1037 validator_sipm.
add<
int>(
"pixels",1);
1038 validator_sipm.add<
double>(
"crosstalk",0);
1039 validator_sipm.add<
double>(
"nonlin1",1);
1040 validator_sipm.add<
double>(
"nonlin2",0);
1041 validator_sipm.add<
double>(
"nonlin3",0);
1042 std::vector<edm::ParameterSet> default_sipm(1);
1043 desc.
addVPSet(
"SiPMCharacteristics",validator_sipm,default_sipm);
std::unique_ptr< HcalPedestals > producePedestals(const HcalPedestalsRcd &rcd)
std::unique_ptr< HcalDcsMap > makeHardcodeDcsMap()
static const int kHcalVersMask
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
HcalGainWidth makeGainWidth(HcalGenericDetId fId)
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
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
std::unique_ptr< HcalTimeCorrs > produceTimeCorrs(const HcalTimeCorrsRcd &rcd)
void useHFUpgrade(bool b)
std::unique_ptr< HcalLongRecoParams > produceLongRecoParams(const HcalLongRecoParamsRcd &rcd)
std::unique_ptr< HcalSiPMCharacteristics > produceSiPMCharacteristics(const HcalSiPMCharacteristicsRcd &rcd)
std::unique_ptr< HcalElectronicsMap > produceElectronicsMap(const HcalElectronicsMapRcd &rcd)
void setHF(HcalHardcodeParameters p)
static const IOVSyncValue & endOfTime()
HcalRecoParam makeRecoParam(HcalGenericDetId fId)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
HcalQIECoder makeQIECoder(HcalGenericDetId fId)
std::pair< Time_t, Time_t > ValidityInterval
std::unique_ptr< HcalDcsValues > produceDcsValues(const HcalDcsRcd &rcd)
static const int kHcalEtaMask
HcalMCParam makeMCParam(HcalGenericDetId fId)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
std::unique_ptr< HcalSiPMCharacteristics > makeHardcodeSiPMCharacteristics()
HcalPedestalWidth makePedestalWidth(HcalGenericDetId fId)
std::unique_ptr< HcalPedestalWidths > producePedestalWidths(const HcalPedestalWidthsRcd &rcd)
HcalDbHardcode dbHardcode
const DepRecordT & getRecord() const
void makeHardcodeFrontEndMap(HcalFrontEndMap &emap, const std::vector< HcalGenericDetId > &cells)
HcalTPChannelParameter makeHardcodeTPChannelParameter(HcalGenericDetId fId)
int depth() const
get the tower depth
HcalPedestal makePedestal(HcalGenericDetId fId, bool fSmear=false)
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)
std::unique_ptr< HcalLutMetadata > produceLutMetadata(const HcalLutMetadataRcd &rcd)
void setHO(HcalHardcodeParameters p)
static const IOVSyncValue & beginOfTime()
HcalTimingParam makeTimingParam(HcalGenericDetId fId)
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)
HcalQIEType makeQIEType(HcalGenericDetId fId)
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)
std::unique_ptr< HBHERecalibration > hb_recalibration
static const int kHcalDepthMask
~HcalHardcodeCalibrations()
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
std::unique_ptr< HcalRecoParams > produceRecoParams(const HcalRecoParamsRcd &rcd)
void setHB(HcalHardcodeParameters p)
static const int kHcalPhiMask2
std::unique_ptr< HcalTPParameters > produceTPParameters(const HcalTPParametersRcd &rcd)
std::unique_ptr< HcalElectronicsMap > makeHardcodeMap(const std::vector< HcalGenericDetId > &cells)
std::unique_ptr< HcalGainWidths > produceGainWidths(const HcalGainWidthsRcd &rcd)
std::unique_ptr< HcalTPChannelParameters > produceTPChannelParameters(const HcalTPChannelParametersRcd &rcd)
void makeHardcodeTPParameters(HcalTPParameters &tppar)
std::unique_ptr< HcalL1TriggerObjects > produceL1TriggerObjects(const HcalL1TriggerObjectsRcd &rcd)
bool switchGainWidthsForTrigPrims
std::unique_ptr< HcalZSThresholds > produceZSThresholds(const HcalZSThresholdsRcd &rcd)
virtual bool valid(const DetId &id) 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)
HcalGain makeGain(HcalGenericDetId fId, bool fSmear=false)
static const int kHcalEtaMask2
virtual void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)
const Timestamp & time() const
HcalSiPMParameter makeHardcodeSiPMParameter(HcalGenericDetId fId, const HcalTopology *topo, double intlumi)
std::string fullPath() const
void setHEUpgrade(HcalHardcodeParameters p)
std::unique_ptr< HcalDcsMap > produceDcsMap(const HcalDcsMapRcd &rcd)
TimeValue_t value() const
std::unique_ptr< HcalLUTCorrs > produceLUTCorrs(const HcalLUTCorrsRcd &rcd)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::unique_ptr< HcalValidationCorrs > produceValidationCorrs(const HcalValidationCorrsRcd &rcd)
bool validHT(const HcalTrigTowerDetId &id) const