Skip to content
Snippets Groups Projects

Add 2D constructor for Histogram to allow construction with make_unique etc

Closed Daniel Charles Craik requested to merge dcraik/Gaudi:dcraik_histogram_constructor into master
2 unresolved threads
2 files
+ 24
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -408,6 +408,9 @@ namespace Gaudi::Accumulators {
template <typename OWNER>
HistogramingCounterBase( OWNER* owner, std::string const& name, std::string const& title, Axis<Arithmetic> axis )
: HistogramingCounterBase( owner, name, title, {axis} ) {}
template <typename OWNER>
HistogramingCounterBase( OWNER* owner, std::string const& name, std::string const& title, Axis<Arithmetic> axisX, Axis<Arithmetic> axisY )
: HistogramingCounterBase( owner, name, title, {axisX, axisY} ) {}
    • Comment on lines +411 to +413

      This is too specific to 2D histograms. If you would really like to go that direction, you would need variadic templates to make it work for all dimensions.

Please register or sign in to reply
using Parent::print;
template <typename stream>
stream& printImpl( stream& o, bool /*tableFormat*/ ) const {
Loading