Anaphe Home Page Reference Documentation

Main Page     Namespaces     Classes     Source Code    

Anaphe::AIDA_HBook::AIDAAxis Class Reference

#include <AIDAAxis.h>

List of all members.

Public Methods

 AIDAAxis (const CHBookHistogram *h, const int &axisNumber, const int &nbins=0, const double &lower_edge=0.0, const double &upper_edge=0.0)
 Constructors.

 AIDAAxis (const CHBookHistogram *h, const int &axisnumber, const std::vector< float > &)
virtual ~AIDAAxis (void)
virtual double lowerEdge () const
 Lower axis edge.

virtual double upperEdge () const
 Upper axis edge.

virtual int bins () const
 Number of in-range bins in the axis.

virtual double binLowerEdge (int index) const
 Lower edge of the in-range bin identified by index.

virtual double binUpperEdge (int index) const
 Upper edge of the in-range bin identified by index.

virtual double binWidth (int index) const
 Width of the in-range bin identified by index.

virtual double binCentre (int index) const
 Centre of the bin located by index.

virtual int coordToIndex (double coord) const
virtual int checkIndex (int index) const

Private Methods

double _bininfo (const int &choice, const int &index) const
void badConstructorMessage (void) const

Private Attributes

const CHBookHistogram * histo
const int axisNumber
const bool varbins
double loedge
double hiedge
int nbins
std::vector< float > * binEdges


Constructor & Destructor Documentation

AIDAAxis::AIDAAxis const CHBookHistogram *    h,
const int &    axisNumber,
const int &    nbins = 0,
const double &    lower_edge = 0.0,
const double &    upper_edge = 0.0
 

Definition at line 24 of file AIDAAxis.cpp.

References badConstructorMessage(), hiedge, loedge, and nbins.

AIDAAxis::AIDAAxis const CHBookHistogram *    h,
const int &    axisnumber,
const std::vector< float > &   
 

Definition at line 49 of file AIDAAxis.cpp.

References badConstructorMessage(), binEdges, hiedge, loedge, and nbins.

AIDAAxis::~AIDAAxis void    [virtual]
 

Definition at line 72 of file AIDAAxis.cpp.

References binEdges.


Member Function Documentation

double AIDAAxis::_bininfo const int &    choice,
const int &    index
const [private]
 

Definition at line 207 of file AIDAAxis.cpp.

References binEdges, hiedge, loedge, nbins, and varbins.

Referenced by binCentre(), binLowerEdge(), binUpperEdge(), and binWidth().

void AIDAAxis::badConstructorMessage void    const [private]
 

Definition at line 245 of file AIDAAxis.cpp.

Referenced by AIDAAxis().

double AIDAAxis::binCentre int    index const [virtual]
 

--------------------------------------------------------------------- Bin centre

Definition at line 144 of file AIDAAxis.cpp.

References _bininfo().

double AIDAAxis::binLowerEdge int    index const [virtual]
 

--------------------------------------------------------------------- Bin edges

Definition at line 117 of file AIDAAxis.cpp.

References _bininfo().

int AIDAAxis::bins   const [virtual]
 

--------------------------------------------------------------------- Number of bins

Definition at line 108 of file AIDAAxis.cpp.

References nbins.

double AIDAAxis::binUpperEdge int    index const [virtual]
 

Definition at line 126 of file AIDAAxis.cpp.

References _bininfo().

double AIDAAxis::binWidth int    index const [virtual]
 

--------------------------------------------------------------------- Bin widths

Definition at line 135 of file AIDAAxis.cpp.

References _bininfo().

int AIDAAxis::checkIndex int    index const [virtual]
 

Checks validity of the index, assuming bin indices from "0" to "number of bins - 1"

Definition at line 187 of file AIDAAxis.cpp.

References nbins.

Referenced by Anaphe::AIDA_HBook::AIDAProfileHist::checkIndex(), Anaphe::AIDA_HBook::AIDAHistogram1D::checkIndex(), Anaphe::AIDA_HBook::AIDAHist1DVar::checkIndex(), Anaphe::AIDA_HBook::AIDADynHist1D::checkIndex(), Anaphe::AIDA_HBook::AIDAHistogram2D::checkIndexX(), and Anaphe::AIDA_HBook::AIDAHistogram2D::checkIndexY().

int AIDAAxis::coordToIndex double    coord const [virtual]
 

Equivalent to coordToIndex( coord ) for 1D histogram or coordToIndexX(coordX) or coordToIndexY(coordY) for 2D histogram

Definition at line 155 of file AIDAAxis.cpp.

References binEdges, hiedge, loedge, nbins, and varbins.

double AIDAAxis::lowerEdge   const [virtual]
 

===================================================================== Axis edges =====================================================================

Definition at line 90 of file AIDAAxis.cpp.

double AIDAAxis::upperEdge   const [virtual]
 

Definition at line 99 of file AIDAAxis.cpp.

References hiedge.


Member Data Documentation

const int Anaphe::AIDA_HBook::AIDAAxis::axisNumber [private]
 

Definition at line 113 of file AIDAAxis.h.

std::vector<float>* Anaphe::AIDA_HBook::AIDAAxis::binEdges [private]
 

Definition at line 118 of file AIDAAxis.h.

Referenced by _bininfo(), AIDAAxis(), coordToIndex(), and ~AIDAAxis().

double Anaphe::AIDA_HBook::AIDAAxis::hiedge [private]
 

Definition at line 116 of file AIDAAxis.h.

Referenced by _bininfo(), AIDAAxis(), coordToIndex(), and upperEdge().

const CHBookHistogram* Anaphe::AIDA_HBook::AIDAAxis::histo [private]
 

Definition at line 112 of file AIDAAxis.h.

double Anaphe::AIDA_HBook::AIDAAxis::loedge [private]
 

Definition at line 115 of file AIDAAxis.h.

Referenced by _bininfo(), AIDAAxis(), and coordToIndex().

int Anaphe::AIDA_HBook::AIDAAxis::nbins [private]
 

Definition at line 117 of file AIDAAxis.h.

Referenced by _bininfo(), AIDAAxis(), bins(), checkIndex(), and coordToIndex().

const bool Anaphe::AIDA_HBook::AIDAAxis::varbins [private]
 

Definition at line 114 of file AIDAAxis.h.

Referenced by _bininfo(), and coordToIndex().


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

Anaphe documentation generated by Doxygen (www.doxygen.org)