Skip to content

Commit

Permalink
Make parameters untracked.
Browse files Browse the repository at this point in the history
  • Loading branch information
EmyrClement authored and mmusich committed Oct 4, 2019
1 parent 221f332 commit 7198b8f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ class SiStripApvSimulationParametersESSource : public edm::ESProducer, public ed
};

SiStripApvSimulationParametersESSource::SiStripApvSimulationParametersESSource(const edm::ParameterSet& conf)
: baseline_nBins_(conf.getParameter<unsigned int>("apvBaselines_nBinsPerBaseline")),
baseline_min_(conf.getParameter<double>("apvBaselines_minBaseline")),
baseline_max_(conf.getParameter<double>("apvBaselines_maxBaseline")) {
: baseline_nBins_(conf.getUntrackedParameter<unsigned int>("apvBaselines_nBinsPerBaseline")),
baseline_min_(conf.getUntrackedParameter<double>("apvBaselines_minBaseline")),
baseline_max_(conf.getUntrackedParameter<double>("apvBaselines_maxBaseline")) {
setWhatProduced(this);
findingRecord<SiStripApvSimulationParametersRcd>();
for (const auto x : conf.getParameter<std::vector<double>>("apvBaselines_puBinEdges")) {
for (const auto x : conf.getUntrackedParameter<std::vector<double>>("apvBaselines_puBinEdges")) {
puBinEdges_.push_back(x);
}
for (const auto x : conf.getParameter<std::vector<double>>("apvBaselines_zBinEdges")) {
for (const auto x : conf.getUntrackedParameter<std::vector<double>>("apvBaselines_zBinEdges")) {
zBinEdges_.push_back(x);
}
for (const auto x : conf.getUntrackedParameter<std::vector<double>>("apvBaselines_rBinEdges_TID")) {
Expand Down
58 changes: 29 additions & 29 deletions CondTools/SiStrip/test/SiStripApvSimulationParametersBuilder_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 7198b8f

Please sign in to comment.