#include <BDSHistogram.hh>
Collaboration diagram for BDSHistogram1D:
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 |
BDSBin * | GetUnderflowBin () const |
BDSBin * | GetOverflowBin () const |
BDSBin * | GetFirstBin () const |
BDSBin * | GetLastBin () const |
G4String | GetName () const |
G4String | GetTitle () const |
size_t | GetNBins () const |
G4int | GetNEntries () const |
BDSBin * | currentBin () |
void | first () |
G4bool | isLastBin () |
G4bool | isDone () |
void | next () |
Private Attributes | |
std::vector< BDSBin * > | bins |
BDSBin * | overflow |
BDSBin * | underflow |
G4String | name |
G4String | title |
G4int | entries |
std::vector< BDSBin * >::const_iterator | _iterBins |
Friends | |
std::ostream & | operator<< (std::ostream &out, BDSHistogram1D const &hist) |
output stream |
Definition at line 16 of file BDSHistogram.hh.
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().