Commit 2d93a272 authored by Lennart Huth's avatar Lennart Huth
Browse files

static cast for filling histos

parent f4cd375a
Pipeline #2845131 failed with stages
in 13 minutes and 1 second
......@@ -120,7 +120,7 @@ void EventDefinitionM26::initialize() {
_pivot_vs_priv_dtrigger = new TH2F("pivotVsdistToPreviousTRIGGER", title.c_str(), 576, 0, 576, 1010, -10, 1000);
}
void EventDefinitionM26::finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) {
void EventDefinitionM26::finalize(const std::shared_ptr<ReadonlyClipboard>&) {
for(uint i = 1; i < _pivots.size() - 1; ++i) {
_pivot_vs_next_event->Fill(static_cast<double>(_pivots.at(i)),
static_cast<double>(Units::convert(_starts.at(i + 1) - _ends.at(i), "us")));
......
......@@ -42,7 +42,7 @@ namespace corryvreckan {
* @brief [Initialise this module]
*/
void initialize() override;
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
void finalize(const std::shared_ptr<ReadonlyClipboard>&) override;
/**
* @brief [Run the function of this module]
......
......@@ -467,12 +467,13 @@ StatusCode Tracking4D::run(const std::shared_ptr<Clipboard>& clipboard) {
for(auto track : tracks) {
// Fill track time within event (relative to event start)
auto event = clipboard->getEvent();
trackTime->Fill(Units::convert(track->timestamp() - event->start(), "us"));
trackTime->Fill(static_cast<double>(Units::convert(track->timestamp() - event->start(), "us")));
auto triggers = event->triggerList();
if(!triggers.empty()) {
trackTimeTrigger->Fill(Units::convert(track->timestamp() - triggers.begin()->second, "us"));
trackTimeTriggerChi2->Fill(Units::convert(track->timestamp() - triggers.begin()->second, "us"),
track->getChi2ndof());
trackTimeTrigger->Fill(static_cast<double>(Units::convert(track->timestamp() - triggers.begin()->second, "us")));
trackTimeTriggerChi2->Fill(
static_cast<double>(Units::convert(track->timestamp() - triggers.begin()->second, "us")),
track->getChi2ndof());
}
trackChi2->Fill(track->getChi2());
......
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