Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::RBinWithError Struct Referencefinal

A special bin content type to compute the bin error in weighted filling.

Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition at line 22 of file RBinWithError.hxx.

Public Member Functions

void AtomicAdd (const RBinWithError &rhs)
 Add another bin content using atomic instructions.
 
void AtomicAddRelease (double w)
 
void AtomicIncRelease ()
 
void AtomicLoad (RBinWithError *ret) const
 
 operator double () const
 
 operator float () const
 
RBinWithErroroperator*= (double factor)
 
RBinWithErroroperator++ ()
 
RBinWithError operator++ (int)
 
RBinWithErroroperator+= (const RBinWithError &rhs)
 
RBinWithErroroperator+= (double w)
 

Public Attributes

double fSum = 0
 
double fSum2 = 0
 

Private Member Functions

void AtomicAdd (double a, double a2)
 

#include <ROOT/RBinWithError.hxx>

Member Function Documentation

◆ AtomicAdd() [1/2]

void ROOT::Experimental::RBinWithError::AtomicAdd ( const RBinWithError & rhs)
inline

Add another bin content using atomic instructions.

Parameters
[in]rhsanother bin content that must not be modified during the operation

Definition at line 107 of file RBinWithError.hxx.

◆ AtomicAdd() [2/2]

void ROOT::Experimental::RBinWithError::AtomicAdd ( double a,
double a2 )
inlineprivate

Definition at line 65 of file RBinWithError.hxx.

◆ AtomicAddRelease()

void ROOT::Experimental::RBinWithError::AtomicAddRelease ( double w)
inline

Definition at line 102 of file RBinWithError.hxx.

◆ AtomicIncRelease()

void ROOT::Experimental::RBinWithError::AtomicIncRelease ( )
inline

Definition at line 100 of file RBinWithError.hxx.

◆ AtomicLoad()

void ROOT::Experimental::RBinWithError::AtomicLoad ( RBinWithError * ret) const
inline

Definition at line 109 of file RBinWithError.hxx.

◆ operator double()

ROOT::Experimental::RBinWithError::operator double ( ) const
inlineexplicit

Definition at line 27 of file RBinWithError.hxx.

◆ operator float()

ROOT::Experimental::RBinWithError::operator float ( ) const
inlineexplicit

Definition at line 26 of file RBinWithError.hxx.

◆ operator*=()

RBinWithError & ROOT::Experimental::RBinWithError::operator*= ( double factor)
inline

Definition at line 57 of file RBinWithError.hxx.

◆ operator++() [1/2]

RBinWithError & ROOT::Experimental::RBinWithError::operator++ ( )
inline

Definition at line 29 of file RBinWithError.hxx.

◆ operator++() [2/2]

RBinWithError ROOT::Experimental::RBinWithError::operator++ ( int )
inline

Definition at line 36 of file RBinWithError.hxx.

◆ operator+=() [1/2]

RBinWithError & ROOT::Experimental::RBinWithError::operator+= ( const RBinWithError & rhs)
inline

Definition at line 50 of file RBinWithError.hxx.

◆ operator+=() [2/2]

RBinWithError & ROOT::Experimental::RBinWithError::operator+= ( double w)
inline

Definition at line 43 of file RBinWithError.hxx.

Member Data Documentation

◆ fSum

double ROOT::Experimental::RBinWithError::fSum = 0

Definition at line 23 of file RBinWithError.hxx.

◆ fSum2

double ROOT::Experimental::RBinWithError::fSum2 = 0

Definition at line 24 of file RBinWithError.hxx.

Collaboration diagram for ROOT::Experimental::RBinWithError:
[legend]

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