Skip to content

Commit ddc905f

Browse files
author
Christopher
committed
Change to absolute paths, fix histogram type
1 parent 84472ca commit ddc905f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

CalibPPS/TimingCalibration/plugins/PPSTimingCalibrationPCLHarvester.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,33 +94,33 @@ void PPSTimingCalibrationPCLHarvester::dqmEndJob(DQMStore::IBooker& iBooker, DQM
9494
const auto chid = detid.rawId();
9595
const PPSTimingCalibration::Key key{
9696
(int)detid.arm(), (int)detid.station(), (int)detid.plane(), (int)detid.channel()};
97-
hists.leadingTime[chid] = iGetter.get("t_" + ch_name);
97+
hists.leadingTime[chid] = iGetter.get(dqmDir_ + "/t_" + ch_name);
9898
if (hists.leadingTime[chid] == nullptr) {
9999
edm::LogInfo("PPSTimingCalibrationPCLHarvester:dqmEndJob")
100100
<< "Failed to retrieve leading time monitor for channel (" << detid << ").";
101101
continue;
102102
}
103-
hists.toT[chid] = iGetter.get("tot_" + ch_name);
103+
hists.toT[chid] = iGetter.get(dqmDir_ + "/tot_" + ch_name);
104104
if (hists.toT[chid] == nullptr) {
105105
edm::LogInfo("PPSTimingCalibrationPCLHarvester:dqmEndJob")
106106
<< "Failed to retrieve time over threshold monitor for channel (" << detid << ").";
107107
continue;
108108
}
109-
hists.leadingTimeVsToT[chid] = iGetter.get("tvstot_" + ch_name);
109+
hists.leadingTimeVsToT[chid] = iGetter.get(dqmDir_ + "/tvstot_" + ch_name);
110110
if (hists.leadingTimeVsToT[chid] == nullptr) {
111111
edm::LogInfo("PPSTimingCalibrationPCLHarvester:dqmEndJob")
112112
<< "Failed to retrieve leading time vs. time over threshold monitor for channel (" << detid << ").";
113113
continue;
114114
}
115115
if (min_entries_ > 0 && hists.leadingTimeVsToT[chid]->getEntries() < min_entries_) {
116-
edm::LogWarning("PPSTimingCalibrationPCLHarvester:dqmEndJob")
116+
edm::LogInfo("PPSTimingCalibrationPCLHarvester:dqmEndJob")
117117
<< "Not enough entries for channel (" << detid << "): " << hists.leadingTimeVsToT[chid]->getEntries() << " < "
118118
<< min_entries_ << ". Skipping calibration.";
119119
continue;
120120
}
121121
const double upper_tot_range = hists.toT[chid]->getMean() + 2.5;
122122
{ // scope for x-profile
123-
std::unique_ptr<TProfile> prof(hists.leadingTimeVsToT[chid]->getTH2D()->ProfileX("_prof_x", 1, -1));
123+
std::unique_ptr<TProfile> prof(hists.leadingTimeVsToT[chid]->getTH2F()->ProfileX("_prof_x", 1, -1));
124124
interp_.SetParameters(hists.leadingTime[chid]->getRMS(),
125125
hists.toT[chid]->getMean(),
126126
0.8,

0 commit comments

Comments
 (0)