Skip to content
Snippets Groups Projects
Commit 2abb07e1 authored by Sascha Stahl's avatar Sascha Stahl
Browse files

Change to using HistoDef

parent 0fab44e3
No related branches found
No related tags found
1 merge request!3555Monitor algorithm for event variables
Pipeline #6768621 failed
......@@ -43,9 +43,8 @@ struct EventVariableMonitor final : public base_type {
auto sc = base_type::initialize();
if ( sc.isFailure() ) return sc;
if ( m_histogram_title.value().empty() ) m_histogram_title = m_histogram_name.value();
m_histogram.emplace(
this, m_histogram_name.value(), m_histogram_title.value(),
this, m_histogram_name.value(), m_histodef.value().title(),
Gaudi::Accumulators::Axis<value_type>{static_cast<unsigned int>(m_histodef.value().bins()), m_histodef.value().lowEdge(), m_histodef.value().highEdge()} );
return sc;
}
......@@ -59,10 +58,6 @@ private:
Gaudi::Property<Gaudi::Histo1DDef> m_histodef{this,"HistogramDef",{"DefaultTitle",0.,1.,100},"Histogram definition"};
Gaudi::Property<std::string> m_histogram_name{this, "HistogramName", "Histogram", "Histogram name"};
Gaudi::Property<std::string> m_histogram_title{this, "HistogramTitle", "",
"Histogram title (it defaults to the histogram name)"};
Gaudi::Property<unsigned int> m_bins{this, "Bins", 100};
Gaudi::Property<std::pair<value_type, value_type>> m_range{this, "Range", {0., 1.}};
mutable std::optional<Gaudi::Accumulators::Histogram<1, Gaudi::Accumulators::atomicity::full, value_type>>
m_histogram;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment