Commit 7490b139 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Small fixes

parent 4e51cc2b
Pipeline #435441 passed with stages
in 11 minutes and 42 seconds
......@@ -28,7 +28,7 @@ double Clipboard::get_persistent(std::string name) {
try {
return m_persistent_data.at(name);
} catch(std::out_of_range&) {
throw MissingDataError("Key " + name + " not available on clipboard");
throw MissingDataError(name);
}
}
......
......@@ -70,7 +70,7 @@ StatusCode DUTAnalysis::run(Clipboard* clipboard) {
LOG(TRACE) << "Power on time: " << Units::display(m_powerOnTime, {"ns", "us", "s"});
LOG(TRACE) << "Power off time: " << Units::display(m_powerOffTime, {"ns", "us", "s"});
// if(clipboard->get_persistent("currentTime") < 13.5)
// if(clipboard->get_persistent("eventStart") < 13.5)
// return Success;
// Track chi2/ndof cut
......@@ -179,7 +179,7 @@ StatusCode DUTAnalysis::run(Clipboard* clipboard) {
tracksVersusPowerOnTime->Fill(timeSincePowerOn);
if(timeSincePowerOn < 200000) {
LOG(TRACE) << "Track at time " << Units::display(clipboard->get_persistent("currentTime"), {"ns", "us", "s"})
LOG(TRACE) << "Track at time " << Units::display(clipboard->get_persistent("eventStart"), {"ns", "us", "s"})
<< " has time shutter open of " << Units::display(timeSincePowerOn, {"ns", "us", "s"});
LOG(TRACE) << "Shutter open time is " << Units::display(m_shutterOpenTime, {"ns", "us", "s"})
<< ", shutter close time is " << Units::display(m_shutterCloseTime, {"ns", "us", "s"});
......
......@@ -618,7 +618,7 @@ bool Timepix3EventLoader::loadData(Clipboard* clipboard, Detector* detector, Pix
// If events are loaded based on time intervals, take all hits where the
// time is within this window
// Ignore pixel data if it is before the "currentTime" read from the clipboard storage:
// Ignore pixel data if it is before the "eventStart" read from the clipboard storage:
if(temporalSplit && (timestamp < clipboard->get_persistent("eventStart"))) {
LOG(TRACE) << "Skipping pixel, is before event window (" << Units::display(timestamp, {"s", "us", "ns"})
<< " < " << Units::display(clipboard->get_persistent("eventStart"), {"s", "us", "ns"}) << ")";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment