Hammer  1.0.0
Helicity Amplitude Module for Matrix Element Reweighting
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Hammer::HistogramDefinition Class Reference

#include <HistogramDefinition.hh>

+ Collaboration diagram for Hammer::HistogramDefinition:

Public Member Functions

 HistogramDefinition (bool hasUnderOverFlow, const IndexList &numBins, const MD::BinEdgeList &binEdges, bool shouldCompress, bool keepErrors)
 
 HistogramDefinition (bool hasUnderOverFlow, const IndexList &numBins, const MD::BinRangeList &ranges, bool shouldCompress, bool keepErrors)
 
 HistogramDefinition (bool hasUnderOverFlow, const MD::BinEdgeList &binEdges, bool shouldCompress, bool keepErrors)
 
 HistogramDefinition (const Serial::FBHistoDefinition *msgreader)
 
void addFixedData (MultiDimensional::SharedTensorData data)
 
void resetFixedData ()
 
const TensorgetFixedData (EventUID id, const std::string &schemeName, LabelsList tensorLabels) const
 
const MD::BinnedIndexing
< MD::SequentialIndexing > & 
getIndexing () const
 
bool shouldCompress () const
 
void setCompression (bool value)
 
bool shouldKeepErrors () const
 
void setKeepErrors (bool value)
 
void write (flatbuffers::FlatBufferBuilder *msgwriter, const std::string &name) const
 
bool checkDefinition (const Serial::FBHistoDefinition *msgreader) const
 

Private Types

using FixedKey = std::pair< EventUID, SchemeName >
 

Private Member Functions

LoggetLog () const
 logging facility More...
 
void read (const Serial::FBHistoDefinition *msgreader)
 

Private Attributes

MD::BinnedIndexing
< MD::SequentialIndexing
_indexing
 
bool _compressHistograms
 
bool _keepErrors
 
UMap< FixedKey, Tensor_fixedData
 
std::map< IndexLabel,
MultiDimensional::SharedTensorData
_fixedDataPool
 

Detailed Description

Definition at line 33 of file HistogramDefinition.hh.

Member Typedef Documentation

Definition at line 72 of file HistogramDefinition.hh.

Constructor & Destructor Documentation

Hammer::HistogramDefinition::HistogramDefinition ( bool  hasUnderOverFlow,
const IndexList numBins,
const MD::BinEdgeList binEdges,
bool  shouldCompress,
bool  keepErrors 
)

Definition at line 23 of file HistogramDefinition.cc.

Hammer::HistogramDefinition::HistogramDefinition ( bool  hasUnderOverFlow,
const IndexList numBins,
const MD::BinRangeList ranges,
bool  shouldCompress,
bool  keepErrors 
)

Definition at line 28 of file HistogramDefinition.cc.

Hammer::HistogramDefinition::HistogramDefinition ( bool  hasUnderOverFlow,
const MD::BinEdgeList binEdges,
bool  shouldCompress,
bool  keepErrors 
)

Definition at line 33 of file HistogramDefinition.cc.

Hammer::HistogramDefinition::HistogramDefinition ( const Serial::FBHistoDefinition *  msgreader)

Definition at line 37 of file HistogramDefinition.cc.

Member Function Documentation

void Hammer::HistogramDefinition::addFixedData ( MultiDimensional::SharedTensorData  data)

Definition at line 45 of file HistogramDefinition.cc.

bool Hammer::HistogramDefinition::checkDefinition ( const Serial::FBHistoDefinition *  msgreader) const

Definition at line 181 of file HistogramDefinition.cc.

const Tensor & Hammer::HistogramDefinition::getFixedData ( EventUID  id,
const std::string &  schemeName,
LabelsList  tensorLabels 
) const

Definition at line 58 of file HistogramDefinition.cc.

const MD::BinnedIndexing< MD::SequentialIndexing > & Hammer::HistogramDefinition::getIndexing ( ) const

Definition at line 87 of file HistogramDefinition.cc.

Log & Hammer::HistogramDefinition::getLog ( ) const
private

logging facility

Returns
stream to be used for logging

Definition at line 41 of file HistogramDefinition.cc.

void Hammer::HistogramDefinition::read ( const Serial::FBHistoDefinition *  msgreader)
private

Definition at line 150 of file HistogramDefinition.cc.

void Hammer::HistogramDefinition::resetFixedData ( )

Definition at line 54 of file HistogramDefinition.cc.

void Hammer::HistogramDefinition::setCompression ( bool  value)

Definition at line 95 of file HistogramDefinition.cc.

void Hammer::HistogramDefinition::setKeepErrors ( bool  value)

Definition at line 103 of file HistogramDefinition.cc.

bool Hammer::HistogramDefinition::shouldCompress ( ) const

Definition at line 91 of file HistogramDefinition.cc.

bool Hammer::HistogramDefinition::shouldKeepErrors ( ) const

Definition at line 99 of file HistogramDefinition.cc.

void Hammer::HistogramDefinition::write ( flatbuffers::FlatBufferBuilder *  msgwriter,
const std::string &  name 
) const

Definition at line 108 of file HistogramDefinition.cc.

Member Data Documentation

bool Hammer::HistogramDefinition::_compressHistograms
private

Definition at line 69 of file HistogramDefinition.hh.

UMap<FixedKey, Tensor> Hammer::HistogramDefinition::_fixedData
mutableprivate

Definition at line 73 of file HistogramDefinition.hh.

std::map<IndexLabel, MultiDimensional::SharedTensorData> Hammer::HistogramDefinition::_fixedDataPool
private

Definition at line 75 of file HistogramDefinition.hh.

MD::BinnedIndexing<MD::SequentialIndexing> Hammer::HistogramDefinition::_indexing
private

Definition at line 68 of file HistogramDefinition.hh.

bool Hammer::HistogramDefinition::_keepErrors
private

Definition at line 70 of file HistogramDefinition.hh.


The documentation for this class was generated from the following files: