10#include <framework/pcore/EvtMessage.h>
55 std::unique_ptr<Belle2::EvtMessage>
toMessage()
const;
Utility to store received histograms (hierarchical tree structures) from clients (as an event message...
HistogramMapping()=default
Default constructor needed during summation.
void write() const
Write out all stored histograms in the currently selected ROOT gDirectory.
HistogramMapping(const HistogramMapping &rhs)=delete
As this is a heavy object, make sure to not copy.
bool empty() const
Check if there are no stored histograms.
std::map< std::string, std::unique_ptr< TH1 > > m_histograms
Internal storage of the histograms in the form name -> unique TH1 pointer.
void printMe() const
Debug function to print out the content as into messages.
HistogramMapping(HistogramMapping &&rhs)=default
Moving is allowed.
HistogramMapping & operator=(HistogramMapping &&rhs)=default
Moving is allowed.
void clear()
Clear all histograms in the internal map also deleting the pointers.
std::unique_ptr< Belle2::EvtMessage > toMessage() const
Construct an EvtMessage by serializing the content of the internal histogram storage....
void operator+=(const HistogramMapping &rhs)
Add another histogramm tree instance by merging all histograms with the same name.
HistogramMapping & operator=(const HistogramMapping &rhs)=delete
As this is a heavy object, make sure to not copy.
Abstract base class for different kinds of events.