Jpp  18.3.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Private Attributes | List of all members
JTOOLS::JContent< JElement_t > Struct Template Reference

Auxiliary class for merging of consecutive bins until minimal content is reached. More...

#include <JHistogram1D.hh>

Public Types

typedef JElement_t value_type
 
typedef JElement_t::ordinate_type contents_type
 

Public Member Functions

 JContent (const contents_type y)
 Constructor. More...
 
bool operator() (const value_type &first, const value_type &second) const
 Test whether bins should be merged. More...
 

Private Attributes

const contents_type __y
 

Detailed Description

template<class JElement_t>
struct JTOOLS::JContent< JElement_t >

Auxiliary class for merging of consecutive bins until minimal content is reached.

Definition at line 69 of file JHistogram1D.hh.

Member Typedef Documentation

template<class JElement_t >
typedef JElement_t JTOOLS::JContent< JElement_t >::value_type

Definition at line 71 of file JHistogram1D.hh.

template<class JElement_t >
typedef JElement_t::ordinate_type JTOOLS::JContent< JElement_t >::contents_type

Definition at line 72 of file JHistogram1D.hh.

Constructor & Destructor Documentation

template<class JElement_t >
JTOOLS::JContent< JElement_t >::JContent ( const contents_type  y)
inline

Constructor.

Parameters
yminimal content

Definition at line 80 of file JHistogram1D.hh.

80  :
81  __y(y)
82  {}
const contents_type __y
Definition: JHistogram1D.hh:98

Member Function Documentation

template<class JElement_t >
bool JTOOLS::JContent< JElement_t >::operator() ( const value_type first,
const value_type second 
) const
inline

Test whether bins should be merged.

Parameters
firstfirst bin
secondsecond bin
Returns
true if bins should be merged; else false

Definition at line 92 of file JHistogram1D.hh.

93  {
94  return (first.getY() + second.getY() < __y);
95  }
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
const contents_type __y
Definition: JHistogram1D.hh:98

Member Data Documentation

template<class JElement_t >
const contents_type JTOOLS::JContent< JElement_t >::__y
private

Definition at line 98 of file JHistogram1D.hh.


The documentation for this struct was generated from the following file: