Jpp
16.0.1
the software that should make you happy
|
Template definition of histogram object interface. More...
#include <JHistogram.hh>
Public Types | |
typedef JAbscissa_t | abscissa_type |
typedef JContents_t | contents_type |
Public Member Functions | |
virtual | ~JHistogram () |
Virtual destructor. More... | |
void | reset () |
Reset. More... | |
virtual void | evaluate (const abscissa_type *pX, typename JLANG::JClass< contents_type >::argument_type w)=0 |
Histogram filling. More... | |
JHistogram & | add (const JHistogram &histogram) |
Add histogram. More... | |
JHistogram & | sub (const JHistogram &histogram) |
Subtract histogram. More... | |
JHistogram & | mul (const double value) |
Scale histogram. More... | |
JHistogram & | div (double value) |
Scale histogram. More... | |
const contents_type & | getUnderflow () const |
Get contents below lower limit. More... | |
const contents_type & | getOverflow () const |
Get contents above upper limit. More... | |
const contents_type & | getIntegral () const |
Get contents above upper limit. More... | |
Protected Member Functions | |
JHistogram () | |
Default constructor. More... | |
Protected Attributes | |
contents_type | underflow |
contents_type | overflow |
contents_type | integral |
Friends | |
JReader & | operator>> (JReader &in, JHistogram &object) |
Read histogram from input. More... | |
JWriter & | operator<< (JWriter &out, const JHistogram &object) |
Write histogram to output. More... | |
Template definition of histogram object interface.
This class also comprises auxiliary data.
Definition at line 27 of file JHistogram.hh.
typedef JAbscissa_t JTOOLS::JHistogram< JAbscissa_t, JContents_t >::abscissa_type |
Definition at line 42 of file JHistogram.hh.
typedef JContents_t JTOOLS::JHistogram< JAbscissa_t, JContents_t >::contents_type |
Definition at line 43 of file JHistogram.hh.
|
inlineprotected |
|
inlinevirtual |
|
inline |
|
pure virtual |
Histogram filling.
pX | pointer to abscissa values |
w | weight |
Implemented in JTOOLS::JHistogram1D< JBin2D< JAbscissa_t, JContents_t >, JContainer_t, JDistance_t >.
|
inline |
Add histogram.
histogram | histogram |
Definition at line 80 of file JHistogram.hh.
|
inline |
Subtract histogram.
histogram | histogram |
Definition at line 96 of file JHistogram.hh.
|
inline |
Scale histogram.
value | multiplication factor |
Definition at line 112 of file JHistogram.hh.
|
inline |
Scale histogram.
value | division factor |
Definition at line 128 of file JHistogram.hh.
|
inline |
|
inline |
|
inline |
|
friend |
Read histogram from input.
in | reader |
object | histogram |
Definition at line 178 of file JHistogram.hh.
|
friend |
Write histogram to output.
out | writer |
object | histogram |
Definition at line 195 of file JHistogram.hh.
|
protected |
Definition at line 206 of file JHistogram.hh.
|
protected |
Definition at line 207 of file JHistogram.hh.
|
protected |
Definition at line 208 of file JHistogram.hh.