From 7198b8f583a044f283429ab1293f21f9841c4f2a Mon Sep 17 00:00:00 2001 From: Emyr Date: Fri, 27 Sep 2019 15:45:16 +0100 Subject: [PATCH] Make parameters untracked. --- ...iStripApvSimulationParametersESProducer.cc | 10 ++-- ...StripApvSimulationParametersBuilder_cfg.py | 58 +++++++++---------- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/CalibTracker/SiStripESProducers/plugins/real/SiStripApvSimulationParametersESProducer.cc b/CalibTracker/SiStripESProducers/plugins/real/SiStripApvSimulationParametersESProducer.cc index 452ea8d630945..696ab897036bb 100644 --- a/CalibTracker/SiStripESProducers/plugins/real/SiStripApvSimulationParametersESProducer.cc +++ b/CalibTracker/SiStripESProducers/plugins/real/SiStripApvSimulationParametersESProducer.cc @@ -36,15 +36,15 @@ class SiStripApvSimulationParametersESSource : public edm::ESProducer, public ed }; SiStripApvSimulationParametersESSource::SiStripApvSimulationParametersESSource(const edm::ParameterSet& conf) - : baseline_nBins_(conf.getParameter("apvBaselines_nBinsPerBaseline")), - baseline_min_(conf.getParameter("apvBaselines_minBaseline")), - baseline_max_(conf.getParameter("apvBaselines_maxBaseline")) { + : baseline_nBins_(conf.getUntrackedParameter("apvBaselines_nBinsPerBaseline")), + baseline_min_(conf.getUntrackedParameter("apvBaselines_minBaseline")), + baseline_max_(conf.getUntrackedParameter("apvBaselines_maxBaseline")) { setWhatProduced(this); findingRecord(); - for (const auto x : conf.getParameter>("apvBaselines_puBinEdges")) { + for (const auto x : conf.getUntrackedParameter>("apvBaselines_puBinEdges")) { puBinEdges_.push_back(x); } - for (const auto x : conf.getParameter>("apvBaselines_zBinEdges")) { + for (const auto x : conf.getUntrackedParameter>("apvBaselines_zBinEdges")) { zBinEdges_.push_back(x); } for (const auto x : conf.getUntrackedParameter>("apvBaselines_rBinEdges_TID")) { diff --git a/CondTools/SiStrip/test/SiStripApvSimulationParametersBuilder_cfg.py b/CondTools/SiStrip/test/SiStripApvSimulationParametersBuilder_cfg.py index f5b76fa49c0fa..922f8c65f92ed 100644 --- a/CondTools/SiStrip/test/SiStripApvSimulationParametersBuilder_cfg.py +++ b/CondTools/SiStrip/test/SiStripApvSimulationParametersBuilder_cfg.py @@ -23,35 +23,35 @@ ) process.apvSimParam = cms.ESSource("SiStripApvSimulationParametersESSource", - apvBaselines_nBinsPerBaseline=cms.uint32(82), - apvBaselines_minBaseline=cms.double(0.), - apvBaselines_maxBaseline=cms.double(738.), - apvBaselines_puBinEdges=cms.vdouble(0., 2., 4., 6., 8., 10., 12., 14., 16., 18., 20., 22., 24., 26., 28., 30., 32., 34., 36., 38., 40., 42., 44., 46., 48., 50.), - apvBaselines_zBinEdges=cms.vdouble(0., 10., 20., 30., 40., 50., 60., 70., 90.), - apvBaselines_rBinEdges_TID=cms.vdouble(0., 10., 20., 30., 40., 50., 60., 70., 90.), - apvBaselines_rBinEdges_TEC=cms.vdouble(0., 10., 20., 30., 40., 50., 60., 70., 90.), - apvBaselinesFile_tib1=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TIB1_11us.txt"), - apvBaselinesFile_tib2=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TIB2_14us.txt"), - apvBaselinesFile_tib3=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TIB3_15us.txt"), - apvBaselinesFile_tib4=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TIB4_18us.txt"), - apvBaselinesFile_tob1=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TOB1_10us.txt"), - apvBaselinesFile_tob2=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TOB2_12us.txt"), - apvBaselinesFile_tob3=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TOB3_15us.txt"), - apvBaselinesFile_tob4=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TOB4_19us.txt"), - apvBaselinesFile_tob5=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TOB5_24us.txt"), - apvBaselinesFile_tob6=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TOB6_25us.txt"), - apvBaselinesFile_tid1=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TID1_9us.txt"), - apvBaselinesFile_tid2=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TID2_9us.txt"), - apvBaselinesFile_tid3=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TID3_9us.txt"), - apvBaselinesFile_tec1=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TEC1_10us.txt"), - apvBaselinesFile_tec2=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TEC2_11us.txt"), - apvBaselinesFile_tec3=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TEC3_11us.txt"), - apvBaselinesFile_tec4=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TEC4_13us.txt"), - apvBaselinesFile_tec5=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TEC5_14us.txt"), - apvBaselinesFile_tec6=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TEC6_15us.txt"), - apvBaselinesFile_tec7=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TEC7_16us.txt"), - apvBaselinesFile_tec8=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TEC8_16us.txt"), - apvBaselinesFile_tec9=cms.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TEC9_16us.txt") + apvBaselines_nBinsPerBaseline=cms.untracked.uint32(82), + apvBaselines_minBaseline=cms.untracked.double(0.), + apvBaselines_maxBaseline=cms.untracked.double(738.), + apvBaselines_puBinEdges=cms.untracked.vdouble(0., 2., 4., 6., 8., 10., 12., 14., 16., 18., 20., 22., 24., 26., 28., 30., 32., 34., 36., 38., 40., 42., 44., 46., 48., 50.), + apvBaselines_zBinEdges=cms.untracked.vdouble(0., 10., 20., 30., 40., 50., 60., 70., 90.), + apvBaselines_rBinEdges_TID=cms.untracked.vdouble(0., 10., 20., 30., 40., 50., 60., 70., 90.), + apvBaselines_rBinEdges_TEC=cms.untracked.vdouble(0., 10., 20., 30., 40., 50., 60., 70., 90.), + apvBaselinesFile_tib1=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TIB1_11us.txt"), + apvBaselinesFile_tib2=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TIB2_14us.txt"), + apvBaselinesFile_tib3=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TIB3_15us.txt"), + apvBaselinesFile_tib4=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TIB4_18us.txt"), + apvBaselinesFile_tob1=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TOB1_10us.txt"), + apvBaselinesFile_tob2=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TOB2_12us.txt"), + apvBaselinesFile_tob3=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TOB3_15us.txt"), + apvBaselinesFile_tob4=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TOB4_19us.txt"), + apvBaselinesFile_tob5=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TOB5_24us.txt"), + apvBaselinesFile_tob6=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TOB6_25us.txt"), + apvBaselinesFile_tid1=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TID1_9us.txt"), + apvBaselinesFile_tid2=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TID2_9us.txt"), + apvBaselinesFile_tid3=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TID3_9us.txt"), + apvBaselinesFile_tec1=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TEC1_10us.txt"), + apvBaselinesFile_tec2=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TEC2_11us.txt"), + apvBaselinesFile_tec3=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TEC3_11us.txt"), + apvBaselinesFile_tec4=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TEC4_13us.txt"), + apvBaselinesFile_tec5=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TEC5_14us.txt"), + apvBaselinesFile_tec6=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TEC6_15us.txt"), + apvBaselinesFile_tec7=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TEC7_16us.txt"), + apvBaselinesFile_tec8=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TEC8_16us.txt"), + apvBaselinesFile_tec9=cms.untracked.FileInPath("SimTracker/SiStripDigitizer/data/APVBaselines_TEC9_16us.txt") ) process.prod = cms.EDAnalyzer("SiStripApvSimulationParametersBuilder")