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