35 std::vector<HcalGenericDetId> allCells (
const HcalTopology& hcaltopology,
bool killHE =
false) {
36 static std::vector<HcalGenericDetId>
result;
41 std::cout << std::endl <<
"HcalHardcodeCalibrations: maxDepthHB, maxDepthHE = "
42 << maxDepthHB <<
", " << maxDepthHE << std::endl;
45 if (result.size () <= 0) {
52 if( killHE &&
HcalEndcap == cell.subdetId() )
continue;
53 if (hcaltopology.
valid(cell)) {
54 result.push_back (cell);
56 std::cout <<
" HcalHardcodedCalibrations: det|eta|phi|depth = "
57 << det <<
"|" <<
eta <<
"|" <<
phi <<
"|"
58 <<
depth << std::endl;
70 if(zdctopology.
valid(zcell)) result.push_back(zcell);
72 if(zdctopology.
valid(zcell)) result.push_back(zcell);
77 if(zdctopology.
valid(zcell)) result.push_back(zcell);
79 if(zdctopology.
valid(zcell)) result.push_back(zcell);
84 if(zdctopology.
valid(zcell)) result.push_back(zcell);
86 if(zdctopology.
valid(zcell)) result.push_back(zcell);
91 if(zdctopology.
valid(zcell)) result.push_back(zcell);
93 if(zdctopology.
valid(zcell)) result.push_back(zcell);
107 if (hcaltopology.
validHT(cell)) {
108 result.push_back (cell);
110 std::cout <<
" HcalHardcodedCalibrations: eta|phi|depth|vers = "
111 <<
eta <<
"|" <<
phi <<
"|" <<
depth <<
"|" << vers
126 he_recalibration(0), hf_recalibration(0), setHEdsegm(
false), setHBdsegm(
false)
128 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::HcalHardcodeCalibrations->...";
130 if ( iConfig.
exists(
"GainWidthsForTrigPrims") )
155 bool he_recalib = iConfig.
getParameter<
bool>(
"HERecalibration");
156 bool hf_recalib = iConfig.
getParameter<
bool>(
"HFRecalibration");
158 double cutoff = iConfig.
getParameter<
double>(
"HEreCalibCutoff");
164 std::cout <<
" HcalHardcodeCalibrations: iLumi = " << iLumi << std::endl;
176 findingRecord <HcalPedestalsRcd> ();
180 findingRecord <HcalPedestalWidthsRcd> ();
184 findingRecord <HcalGainsRcd> ();
188 findingRecord <HcalGainWidthsRcd> ();
192 findingRecord <HcalQIEDataRcd> ();
196 findingRecord <HcalQIETypesRcd> ();
200 findingRecord <HcalChannelQualityRcd> ();
204 findingRecord <HcalElectronicsMapRcd> ();
208 findingRecord <HcalZSThresholdsRcd> ();
212 findingRecord <HcalRespCorrsRcd> ();
216 findingRecord <HcalLUTCorrsRcd> ();
220 findingRecord <HcalPFCorrsRcd> ();
224 findingRecord <HcalTimeCorrsRcd> ();
228 findingRecord <HcalL1TriggerObjectsRcd> ();
232 findingRecord <HcalValidationCorrsRcd> ();
236 findingRecord <HcalLutMetadataRcd> ();
240 findingRecord <HcalDcsRcd> ();
244 findingRecord <HcalDcsMapRcd> ();
248 findingRecord <HcalRecoParamsRcd> ();
252 findingRecord <HcalLongRecoParamsRcd> ();
256 findingRecord <HcalZDCLowGainFractionsRcd> ();
260 findingRecord <HcalMCParamsRcd> ();
264 findingRecord <HcalFlagHFDigiTimeParamsRcd> ();
268 findingRecord <HcalFrontEndMapRcd> ();
272 findingRecord <HcalSiPMParametersRcd> ();
276 findingRecord <HcalSiPMCharacteristicsRcd> ();
280 findingRecord <HcalTPChannelParametersRcd> ();
284 findingRecord <HcalTPParametersRcd> ();
302 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::setIntervalFor-> key: " << record <<
" time: " << iTime.
eventID() <<
'/' << iTime.
time ().
value ();
307 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::producePedestals-> ...";
312 auto result = std::make_unique<HcalPedestals>(topo,
false);
313 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
314 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
316 result->addValues(item);
322 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::producePedestalWidths-> ...";
327 auto result = std::make_unique<HcalPedestalWidths>(topo,
false);
328 std::vector <HcalGenericDetId> cells = allCells(*htopo,
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::produceGains-> ...";
342 auto result = std::make_unique<HcalGains>(topo);
343 std::vector <HcalGenericDetId> cells = allCells(*topo,
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::produceGainWidths-> ...";
357 auto result = std::make_unique<HcalGainWidths>(topo);
358 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
359 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
364 result->addValues(item);
365 }
else if (!cell->isHcalTrigTowerDetId()) {
367 result->addValues(item);
374 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceQIEData-> ...";
385 auto result = std::make_unique<HcalQIEData>(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->addCoder (coder);
395 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceQIETypes-> ...";
400 auto result = std::make_unique<HcalQIETypes>(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->addValues(item);
410 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceChannelQuality-> ...";
415 auto result = std::make_unique<HcalChannelQuality>(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);
426 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceRespCorrs-> ...";
434 std::vector<std::vector<int>> m_segmentation;
436 m_segmentation.resize(maxEta);
452 auto result = std::make_unique<HcalRespCorrs>(topo);
453 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
454 for (
const auto& cell : cells) {
476 std::cout <<
"HE ieta, depth = " << ieta_ <<
", " << depth_ <<
" corr = " << corr << std::endl;
484 std::cout <<
"HF ieta, depth = " << ieta_ <<
", " << depth_ <<
" corr = " << corr << std::endl;
489 result->addValues(item);
495 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceLUTCorrs-> ...";
500 auto result = std::make_unique<HcalLUTCorrs>(topo);
501 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
502 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
504 result->addValues(item);
510 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::producePFCorrs-> ...";
515 auto result = std::make_unique<HcalPFCorrs>(topo);
516 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
517 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
519 result->addValues(item);
525 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTimeCorrs-> ...";
530 auto result = std::make_unique<HcalTimeCorrs>(topo);
531 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
532 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
534 result->addValues(item);
540 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceZSThresholds-> ...";
545 auto result = std::make_unique<HcalZSThresholds>(topo);
546 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
547 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
549 result->addValues(item);
556 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceL1TriggerObjects-> ...";
561 auto result = std::make_unique<HcalL1TriggerObjects>(topo);
562 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
563 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
565 result->addValues(item);
568 result->setTagString(
"hardcoded");
569 result->setAlgoString(
"hardcoded");
575 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceElectronicsMap-> ...";
580 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
581 auto result = std::make_unique<HcalElectronicsMap>();
587 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceValidationCorrs-> ...";
592 auto result = std::make_unique<HcalValidationCorrs>(topo);
593 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
594 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
596 result->addValues(item);
602 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceLutMetadata-> ...";
607 auto result = std::make_unique<HcalLutMetadata>(topo);
609 result->setRctLsb( 0.5 );
610 result->setNominalGain(0.177);
613 for (
const auto& cell: cells) {
622 switch (cell.genericSubdet()) {
629 if (
id.ietaAbs() >= 28)
642 if (cell.isHcalTrigTowerDetId()) {
648 result->addValues(item);
655 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceDcsValues-> ...";
656 auto result = std::make_unique<HcalDcsValues>();
661 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceDcsMap-> ...";
663 auto result = std::make_unique<HcalDcsMap>();
669 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceRecoParams-> ...";
674 auto result = std::make_unique<HcalRecoParams>(topo);
675 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
676 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
678 result->addValues(item);
684 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTimingParams-> ...";
689 auto result = std::make_unique<HcalTimingParams>(topo);
690 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
691 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
693 result->addValues(item);
699 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceLongRecoParams-> ...";
704 auto result = std::make_unique<HcalLongRecoParams>(topo);
705 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
706 std::vector <unsigned int> mSignal;
707 mSignal.push_back(4);
708 mSignal.push_back(5);
709 mSignal.push_back(6);
710 std::vector <unsigned int> mNoise;
714 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
715 if (cell->isHcalZDCDetId())
718 result->addValues(item);
725 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceZDCLowGainFractions-> ...";
730 auto result = std::make_unique<HcalZDCLowGainFractions>(topo);
731 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
732 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
734 result->addValues(item);
744 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceMCParams-> ...";
748 auto result = std::make_unique<HcalMCParams>(topo);
749 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
750 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
754 result->addValues(item);
761 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceFlagHFDigiTimeParams-> ...";
766 auto result = std::make_unique<HcalFlagHFDigiTimeParams>(topo);
767 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
769 std::vector<double> coef;
770 coef.push_back(0.93);
771 coef.push_back(-0.38275);
772 coef.push_back(-0.012667);
774 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
782 result->addValues(item);
789 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceFrontEndMap-> ...";
793 std::vector <HcalGenericDetId> cells = allCells(*topo,
dbHardcode.
killHE());
795 auto result = std::make_unique<HcalFrontEndMap>();
802 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceSiPMParameters-> ...";
807 auto result = std::make_unique<HcalSiPMParameters>(topo);
808 std::vector <HcalGenericDetId> cells = allCells(*htopo,
dbHardcode.
killHE());
809 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
811 result->addValues(item);
817 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceSiPMCharacteristics-> ...";
819 auto result = std::make_unique<HcalSiPMCharacteristics>();
826 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTPChannelParameters-> ...";
831 auto result = std::make_unique<HcalTPChannelParameters>(topo);
832 std::vector <HcalGenericDetId> cells = allCells(*htopo,
dbHardcode.
killHE());
833 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
835 result->addValues(item);
841 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTPParameters-> ...";
843 auto result = std::make_unique<HcalTPParameters>();
850 desc.
add<
double>(
"iLumi",-1.);
851 desc.
add<
bool>(
"HERecalibration",
false);
852 desc.
add<
double>(
"HEreCalibCutoff",20.);
853 desc.
add<
bool>(
"HFRecalibration",
false);
854 desc.
add<
bool>(
"GainWidthsForTrigPrims",
false);
855 desc.
add<
bool>(
"useHBUpgrade",
false);
856 desc.
add<
bool>(
"useHEUpgrade",
false);
857 desc.
add<
bool>(
"useHFUpgrade",
false);
858 desc.
add<
bool>(
"useHOUpgrade",
true);
859 desc.
add<
bool>(
"testHFQIE10",
false);
860 desc.
add<
bool>(
"killHE",
false);
861 desc.
add<
bool>(
"useLayer0Weight",
false);
862 desc.
addUntracked<std::vector<std::string> >(
"toGet",std::vector<std::string>());
866 desc_hb.
add<std::vector<double>>(
"gain", std::vector<double>({0.19}));
867 desc_hb.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0}));
868 desc_hb.add<
double>(
"pedestal", 3.0);
869 desc_hb.add<
double>(
"pedestalWidth", 0.55);
870 desc_hb.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.49, 1.8, 7.2, 37.9}));
871 desc_hb.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.912, 0.917, 0.922, 0.923}));
872 desc_hb.add<
int>(
"qieType", 0);
873 desc_hb.add<
int>(
"mcShape",125);
874 desc_hb.add<
int>(
"recoShape",105);
875 desc_hb.add<
double>(
"photoelectronsToAnalog",0.0);
876 desc_hb.add<std::vector<double>>(
"darkCurrent",std::vector<double>(0.0));
880 desc_hbUpgrade.
add<std::vector<double>>(
"gain", std::vector<double>({0.00111111111111}));
881 desc_hbUpgrade.add<std::vector<double>>(
"gainWidth", std::vector<double>({0}));
882 desc_hbUpgrade.add<
double>(
"pedestal", 18.0);
883 desc_hbUpgrade.add<
double>(
"pedestalWidth", 5.0);
884 desc_hbUpgrade.add<std::vector<double>>(
"qieOffset", std::vector<double>({0.0, 0.0, 0.0, 0.0}));
885 desc_hbUpgrade.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.333, 0.333, 0.333, 0.333}));
886 desc_hbUpgrade.add<
int>(
"qieType", 2);
887 desc_hbUpgrade.add<
int>(
"mcShape",203);
888 desc_hbUpgrade.add<
int>(
"recoShape",203);
889 desc_hbUpgrade.add<
double>(
"photoelectronsToAnalog",57.5);
890 desc_hbUpgrade.add<std::vector<double>>(
"darkCurrent",std::vector<double>(0.055));
894 desc_he.
add<std::vector<double>>(
"gain", std::vector<double>({0.23}));
895 desc_he.add<std::vector<double>>(
"gainWidth", std::vector<double>({0}));
896 desc_he.add<
double>(
"pedestal", 3.0);
897 desc_he.add<
double>(
"pedestalWidth", 0.79);
898 desc_he.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.38, 2.0, 7.6, 39.6}));
899 desc_he.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.912, 0.916, 0.92, 0.922}));
900 desc_he.add<
int>(
"qieType", 0);
901 desc_he.add<
int>(
"mcShape",125);
902 desc_he.add<
int>(
"recoShape",105);
903 desc_he.add<
double>(
"photoelectronsToAnalog",0.0);
904 desc_he.add<std::vector<double>>(
"darkCurrent",std::vector<double>(0.0));
908 desc_heUpgrade.
add<std::vector<double>>(
"gain", std::vector<double>({0.00111111111111}));
909 desc_heUpgrade.add<std::vector<double>>(
"gainWidth", std::vector<double>({0}));
910 desc_heUpgrade.add<
double>(
"pedestal", 18.0);
911 desc_heUpgrade.add<
double>(
"pedestalWidth", 5.0);
912 desc_heUpgrade.add<std::vector<double>>(
"qieOffset", std::vector<double>({0.0, 0.0, 0.0, 0.0}));
913 desc_heUpgrade.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.333, 0.333, 0.333, 0.333}));
914 desc_heUpgrade.add<
int>(
"qieType", 2);
915 desc_heUpgrade.add<
int>(
"mcShape",203);
916 desc_heUpgrade.add<
int>(
"recoShape",203);
917 desc_heUpgrade.add<
double>(
"photoelectronsToAnalog",57.5);
918 desc_heUpgrade.add<std::vector<double>>(
"darkCurrent",std::vector<double>(0.055));
922 desc_hf.
add<std::vector<double>>(
"gain", std::vector<double>({0.14, 0.135}));
923 desc_hf.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0, 0.0}));
924 desc_hf.add<
double>(
"pedestal", 3.0);
925 desc_hf.add<
double>(
"pedestalWidth", 0.84);
926 desc_hf.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.87, 1.4, 7.8, -29.6}));
927 desc_hf.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.359, 0.358, 0.36, 0.367}));
928 desc_hf.add<
int>(
"qieType", 0);
929 desc_hf.add<
int>(
"mcShape",301);
930 desc_hf.add<
int>(
"recoShape",301);
931 desc_hf.add<
double>(
"photoelectronsToAnalog",0.0);
932 desc_hf.add<std::vector<double>>(
"darkCurrent",std::vector<double>(0.0));
936 desc_hfUpgrade.
add<std::vector<double>>(
"gain", std::vector<double>({0.14, 0.135}));
937 desc_hfUpgrade.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0, 0.0}));
938 desc_hfUpgrade.add<
double>(
"pedestal", 13.33);
939 desc_hfUpgrade.add<
double>(
"pedestalWidth", 3.33);
940 desc_hfUpgrade.add<std::vector<double>>(
"qieOffset", std::vector<double>({0.0697, -0.7405, 12.38, -671.9}));
941 desc_hfUpgrade.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.297, 0.298, 0.298, 0.313}));
942 desc_hfUpgrade.add<
int>(
"qieType", 1);
943 desc_hfUpgrade.add<
int>(
"mcShape",301);
944 desc_hfUpgrade.add<
int>(
"recoShape",301);
945 desc_hfUpgrade.add<
double>(
"photoelectronsToAnalog",0.0);
946 desc_hfUpgrade.add<std::vector<double>>(
"darkCurrent",std::vector<double>(0.0));
950 desc_hfrecal.
add<std::vector<double>>(
"HFdepthOneParameterA", std::vector<double>());
951 desc_hfrecal.add<std::vector<double>>(
"HFdepthOneParameterB", std::vector<double>());
952 desc_hfrecal.add<std::vector<double>>(
"HFdepthTwoParameterA", std::vector<double>());
953 desc_hfrecal.add<std::vector<double>>(
"HFdepthTwoParameterB", std::vector<double>());
957 desc_ho.
add<std::vector<double>>(
"gain", std::vector<double>({0.006, 0.0087}));
958 desc_ho.add<std::vector<double>>(
"gainWidth", std::vector<double>({0.0, 0.0}));
959 desc_ho.add<
double>(
"pedestal", 11.0);
960 desc_ho.add<
double>(
"pedestalWidth", 0.57);
961 desc_ho.add<std::vector<double>>(
"qieOffset", std::vector<double>({-0.44, 1.4, 7.1, 38.5}));
962 desc_ho.add<std::vector<double>>(
"qieSlope", std::vector<double>({0.907, 0.915, 0.92, 0.921}));
963 desc_ho.add<
int>(
"qieType", 0);
964 desc_ho.add<
int>(
"mcShape",201);
965 desc_ho.add<
int>(
"recoShape",201);
966 desc_ho.add<
double>(
"photoelectronsToAnalog",4.0);
967 desc_ho.add<std::vector<double>>(
"darkCurrent",std::vector<double>(0.0));
971 validator_sipm.
add<
int>(
"pixels",1);
972 validator_sipm.add<
double>(
"crosstalk",0);
973 validator_sipm.add<
double>(
"nonlin1",1);
974 validator_sipm.add<
double>(
"nonlin2",0);
975 validator_sipm.add<
double>(
"nonlin3",0);
976 std::vector<edm::ParameterSet> default_sipm(1);
977 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
T getUntrackedParameter(std::string const &, T const &) const
HcalGainWidth makeGainWidth(HcalGenericDetId fId)
std::unique_ptr< HcalGains > produceGains(const HcalGainsRcd &rcd)
void useHBUpgrade(bool b)
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)
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::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
const EventID & eventID() const
std::unique_ptr< HcalTimeCorrs > produceTimeCorrs(const HcalTimeCorrsRcd &rcd)
void useHFUpgrade(bool b)
HcalSiPMParameter makeHardcodeSiPMParameter(HcalGenericDetId fId, const HcalTopology *topo)
std::unique_ptr< HcalLongRecoParams > produceLongRecoParams(const HcalLongRecoParamsRcd &rcd)
std::unique_ptr< HcalSiPMCharacteristics > produceSiPMCharacteristics(const HcalSiPMCharacteristicsRcd &rcd)
void setDsegm(const std::vector< std::vector< int > > &m_segmentation)
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)
double getCorr(int ieta, int idepth)
static const int kHcalEtaMask
HcalMCParam makeMCParam(HcalGenericDetId fId)
void makeHardcodeSiPMCharacteristics(HcalSiPMCharacteristics &sipm)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
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
void makeHardcodeMap(HcalElectronicsMap &emap, const std::vector< HcalGenericDetId > &cells)
HcalPedestal makePedestal(HcalGenericDetId fId, bool fSmear=false)
virtual bool valid(const HcalZDCDetId &id) const
void addDefault(ParameterSetDescription const &psetDescription)
std::unique_ptr< HcalRespCorrs > produceRespCorrs(const HcalRespCorrsRcd &rcd)
std::unique_ptr< HcalLutMetadata > produceLutMetadata(const HcalLutMetadataRcd &rcd)
void setHO(HcalHardcodeParameters p)
double getCorr(int ieta, int idepth, double lumi)
static const IOVSyncValue & beginOfTime()
HcalTimingParam makeTimingParam(HcalGenericDetId fId)
void setHFUpgrade(HcalHardcodeParameters p)
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)
HERecalibration * he_recalibration
void makeHardcodeDcsMap(HcalDcsMap &dcs_map)
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)
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)
void getDepthSegmentation(unsigned ring, std::vector< int > &readoutDepths) const
std::unique_ptr< HcalGainWidths > produceGainWidths(const HcalGainWidthsRcd &rcd)
std::unique_ptr< HcalTPChannelParameters > produceTPChannelParameters(const HcalTPChannelParametersRcd &rcd)
HFRecalibration * hf_recalibration
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)
Geom::Phi< T > phi() const
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
volatile std::atomic< bool > shutdown_flag false
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