Berkeley Nuclear Data Software
Classes | Public Member Functions | List of all members
Histogram Class Reference

#include <FluxMatrixAna.h>

Classes

struct  iterator
 iterator definition over the bins of the histogram More...
 

Public Member Functions

 Histogram ()=default
 
 Histogram (std::string a_fileName)
 
 Histogram (unsigned a_nBin, const double *a_energiesLow, const double *a_area, const double *a_areaErrors)
 
void load (const std::string a_fileName)
 
void addBin (double a_xLow, double a_xUp, double a_area, double a_areaErrors)
 
double getIntegral ()
 
void getLegacy (map< double, std::pair< double, double >> &flux_0, vector< double > &flux_0_binEdges)
 
iterator begin ()
 
iterator end ()
 

Constructor & Destructor Documentation

◆ Histogram() [1/3]

Histogram::Histogram ( )
default

◆ Histogram() [2/3]

Histogram::Histogram ( std::string  a_fileName)

◆ Histogram() [3/3]

Histogram::Histogram ( unsigned  a_nBin,
const double *  a_energiesLow,
const double *  a_area,
const double *  a_areaErrors 
)

Member Function Documentation

◆ addBin()

void Histogram::addBin ( double  a_xLow,
double  a_xUp,
double  a_area,
double  a_areaErrors 
)

◆ begin()

iterator Histogram::begin ( )
inline

◆ end()

iterator Histogram::end ( )
inline

◆ getIntegral()

double Histogram::getIntegral ( )

◆ getLegacy()

void Histogram::getLegacy ( map< double, std::pair< double, double >> &  flux_0,
vector< double > &  flux_0_binEdges 
)
Parameters
flux_0_binEdgesoriginal flux : energy bin low edge --> flux, unc

◆ load()

void Histogram::load ( const std::string  a_fileName)

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