12 #ifndef HAMMER_HISTOGRAMSET_HH
13 #define HAMMER_HISTOGRAMSET_HH
31 class HistogramDefinition;
46 std::unique_ptr<Serial::FBHistogramBuilder>
write(flatbuffers::FlatBufferBuilder* msgwriter,
const EventUID&
id)
const;
64 std::vector<std::unique_ptr<Histogram>>
_data;
std::set< ProcessUID > EventUID
Forward declaration of serialization related typedefs and includes.
std::unordered_map< K, V, boost::hash< K >> UMap
Multidimensional histogram class with Tensor as cell bins.
Hammer data types declarations.
size_t addEventId(const EventUID &id, const LabelsList &labels)
std::vector< BinContents > IOHistogram
EventUIDGroup read(const Serial::FBHistogram *msgreader, const HistogramDefinition &def, bool merge)
std::set< EventUID > EventUIDGroup
Hammer configuration definitions.
Histogram * getHistogram(const EventUID &id)
std::vector< std::unique_ptr< Histogram > > _data
std::vector< LabelsList > getHistogramLabels() const
EventIdGroupDict< IOHistogram > specializeEventHistograms(const std::vector< Tensor > &externalData) const
std::unique_ptr< Serial::FBHistogramBuilder > write(flatbuffers::FlatBufferBuilder *msgwriter, const EventUID &id) const
UMap< LabelsList, size_t > _labelsReverseDict
EventUIDGroup getEventIdsInHistogram() const
EventIdDict< size_t > _compressionDict
std::map< size_t, LabelsList > _labelsDict
UMap< EventUIDGroup, T > EventIdGroupDict
HistogramSet(bool compressed=false)
IOHistogram specializeSumHistogram(const std::vector< Tensor > &externalData) const
UMap< EventUID, T > EventIdDict
std::map< size_t, EventUIDGroup > _compressionReverseDict
std::vector< IndexLabel > LabelsList
std::vector< EventUID > getEventUIDRepresentatives() const
Declarations for Hammer IO structs.
ROOT forward declarations.
Histogram * addHistogram(size_t id, std::unique_ptr< Histogram > hist)