BDSHistogram1D Class Reference

a 1d-histogram class More...

#include <BDSHistogram.hh>

Collaboration diagram for BDSHistogram1D:

Collaboration graph
[legend]

Public Member Functions

 BDSHistogram1D (G4double xmin, G4double xmax, G4int nbins, G4String nameIn="histogram", G4String titleIn="histogram")
 BDSHistogram1D (std::vector< G4double > binEdges, G4String name="histogram", G4String titleIn="histogram")
 ~BDSHistogram1D ()
void Empty ()
void Fill (G4double x)
void Fill (G4double x, G4double weight)
std::vector< BDSBin * > GetBins () const
std::vector< G4double > GetBinValues () const
std::vector< std::pair< G4double,
G4double > > 
GetBinXMeansAndTotals () const
std::vector< G4double > GetBinLowerEdges () const
void PrintBins () const
 print value of all bins to cout
std::pair< BDSBin *, BDSBin * > GetUnderOverFlowBins () const
std::pair< G4double, G4double > GetUnderOverFlowBinValues () const
BDSBinGetUnderflowBin () const
BDSBinGetOverflowBin () const
BDSBinGetFirstBin () const
BDSBinGetLastBin () const
G4String GetName () const
G4String GetTitle () const
size_t GetNBins () const
G4int GetNEntries () const
BDSBincurrentBin ()
void first ()
G4bool isLastBin ()
G4bool isDone ()
void next ()

Private Attributes

std::vector< BDSBin * > bins
BDSBinoverflow
BDSBinunderflow
G4String name
G4String title
G4int entries
std::vector< BDSBin * >::const_iterator _iterBins

Friends

std::ostream & operator<< (std::ostream &out, BDSHistogram1D const &hist)
 output stream

Detailed Description

a 1d-histogram class

Author:
Laurie Nevay <Laurie.Nevay@rhul.ac.uk>

Definition at line 16 of file BDSHistogram.hh.


Field Documentation

std::vector<BDSBin*> BDSHistogram1D::bins [private]

vector of bins 1st bin is underflow bin always last bin is overflow bin always

Definition at line 65 of file BDSHistogram.hh.

Referenced by BDSHistogram1D(), Empty(), Fill(), first(), GetBinLowerEdges(), GetBins(), GetBinValues(), GetBinXMeansAndTotals(), GetFirstBin(), GetLastBin(), GetNBins(), GetUnderOverFlowBinValues(), isDone(), isLastBin(), PrintBins(), and ~BDSHistogram1D().


The documentation for this class was generated from the following files:
Generated on 28 Jun 2015 for BDSIM by  doxygen 1.4.7