12 #ifndef HAMMER_MATH_HISTOGRAMDEFINITION_HH
13 #define HAMMER_MATH_HISTOGRAMDEFINITION_HH
29 namespace MD = MultiDimensional;
40 bool shouldCompress,
bool keepErrors);
57 void write(flatbuffers::FlatBufferBuilder* msgwriter,
const std::string& name)
const;
65 void read(
const Serial::FBHistoDefinition* msgreader);
72 using FixedKey = std::pair<EventUID, SchemeName>;
std::set< ProcessUID > EventUID
Log & getLog() const
logging facility
Forward declaration of serialization related typedefs and includes.
std::unordered_map< K, V, boost::hash< K >> UMap
const MD::BinnedIndexing< MD::SequentialIndexing > & getIndexing() const
Hammer data types declarations.
void setKeepErrors(bool value)
MD::BinnedIndexing< MD::SequentialIndexing > _indexing
void write(flatbuffers::FlatBufferBuilder *msgwriter, const std::string &name) const
std::vector< std::vector< double >> BinEdgeList
UMap< FixedKey, Tensor > _fixedData
Non-sparse tensor indexer.
bool shouldKeepErrors() const
void read(const Serial::FBHistoDefinition *msgreader)
std::shared_ptr< IContainer > SharedTensorData
HistogramDefinition(bool hasUnderOverFlow, const IndexList &numBins, const MD::BinEdgeList &binEdges, bool shouldCompress, bool keepErrors)
std::pair< EventUID, SchemeName > FixedKey
std::vector< IndexType > IndexList
const Tensor & getFixedData(EventUID id, const std::string &schemeName, LabelsList tensorLabels) const
Multidimensional tensor class with complex numbers as elements.
bool shouldCompress() const
std::map< IndexLabel, MultiDimensional::SharedTensorData > _fixedDataPool
std::vector< IndexLabel > LabelsList
Binned tensor (histogram) indexer.
bool checkDefinition(const Serial::FBHistoDefinition *msgreader) const
std::vector< BinRange > BinRangeList
void setCompression(bool value)
void addFixedData(MultiDimensional::SharedTensorData data)