#include <IntFunBinning.h>
Inheritance diagram for IntFunBinning:


The class IntFunBinning can be used to generate a BinningFun in an easy way from a IntFun, which delivers the value that is used for binning, and some strings that are used to construct the name and title strings.
Author: Benno List, Jenny Böhme
Changelog:
Definition at line 27 of file IntFunBinning.h.
Public Member Functions | |
| IntFunBinning (const IntFunPoR &fun_, int xlow_, int xhigh_, const char *varname_) | |
| Create an equidistant binning. | |
| virtual int | operator() () const |
| Returns a bin number between -1 and getNBins()-1. | |
| virtual const char * | getBinName (int i) const |
| Returns a name string. | |
| virtual const char * | getBinTitle (int i) const |
| Returns a title string. | |
| virtual const FillIterator * | getIterator () const |
| Returns pointer to iterator, if any. | |
Protected Member Functions | |
| virtual | ~IntFunBinning () |
| Protected destructor to ensure creation on the heap. | |
Protected Attributes | |
| const IntFun * | fun |
| The IntFun object defining the quantity used for binning. | |
| char * | varname |
| The variable name. | |
| unsigned int | varnamelength |
| The length of the variable name. | |
Private Member Functions | |
| void | initvarname (const char *varname_) |
| IntFunBinning (const IntFunBinning &) | |
| Private copy constructor, left unimplemented: No copying! | |
| IntFunBinning & | operator= (const IntFunBinning &) |
| Private assignment operator, left unimplemented: No assignment! | |
|
||||||||||||||||||||
|
Create an equidistant binning. The binning will have xhigh-xlow+1 bins between xlow and xhigh.
Definition at line 39 of file IntFunBinning.C. |
|
|
Returns a name string. The name string MAY, and MUST, be destroyed by the user! The name will be (in perl notation) "$varname$bin"
Implements BinningFun. Definition at line 88 of file IntFunBinning.C. |
|
|
Returns a title string. The name string MAY, and MUST, be destroyed by the user! The title will be (in perl notation) "$lower_edge < $varname < $higher_edge"
Implements BinningFun. Definition at line 71 of file IntFunBinning.C. References varname, and varnamelength. |
1.3.2