Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::Hist Namespace Reference

Namespaces

namespace  Internal
 

Functions

std::unique_ptr< TH1CConvertToTH1C (const RHist< char > &hist)
 Convert a one-dimensional histogram to TH1C.
 
std::unique_ptr< TH1CConvertToTH1C (const RHistEngine< char > &engine)
 Convert a one-dimensional histogram to TH1C.
 
std::unique_ptr< TH1DConvertToTH1D (const RHist< double > &hist)
 Convert a one-dimensional histogram to TH1D.
 
std::unique_ptr< TH1DConvertToTH1D (const RHist< RBinWithError > &hist)
 Convert a one-dimensional histogram to TH1D.
 
std::unique_ptr< TH1DConvertToTH1D (const RHistEngine< double > &engine)
 Convert a one-dimensional histogram to TH1D.
 
std::unique_ptr< TH1DConvertToTH1D (const RHistEngine< RBinWithError > &engine)
 Convert a one-dimensional histogram to TH1D.
 
std::unique_ptr< TH1FConvertToTH1F (const RHist< float > &hist)
 Convert a one-dimensional histogram to TH1F.
 
std::unique_ptr< TH1FConvertToTH1F (const RHistEngine< float > &engine)
 Convert a one-dimensional histogram to TH1F.
 
std::unique_ptr< TH1IConvertToTH1I (const RHist< int > &hist)
 Convert a one-dimensional histogram to TH1I.
 
std::unique_ptr< TH1IConvertToTH1I (const RHistEngine< int > &engine)
 Convert a one-dimensional histogram to TH1I.
 
std::unique_ptr< TH1LConvertToTH1L (const RHist< long > &hist)
 Convert a one-dimensional histogram to TH1L.
 
std::unique_ptr< TH1LConvertToTH1L (const RHist< long long > &hist)
 Convert a one-dimensional histogram to TH1L.
 
std::unique_ptr< TH1LConvertToTH1L (const RHistEngine< long > &engine)
 Convert a one-dimensional histogram to TH1L.
 
std::unique_ptr< TH1LConvertToTH1L (const RHistEngine< long long > &engine)
 Convert a one-dimensional histogram to TH1L.
 
std::unique_ptr< TH1SConvertToTH1S (const RHist< short > &hist)
 Convert a one-dimensional histogram to TH1S.
 
std::unique_ptr< TH1SConvertToTH1S (const RHistEngine< short > &engine)
 Convert a one-dimensional histogram to TH1S.
 

Function Documentation

◆ ConvertToTH1C() [1/2]

std::unique_ptr< TH1C > ROOT::Experimental::Hist::ConvertToTH1C ( const RHist< char > & hist)

Convert a one-dimensional histogram to TH1C.

If the RHistStats are tainted, for example after setting bin contents, the number of entries and the total sum of weights will be unset.

Throws an exception if the histogram has more than one dimension.

Parameters
[in]histthe RHist to convert
Returns
the converted TH1

Definition at line 136 of file ConvertToTH1.cxx.

◆ ConvertToTH1C() [2/2]

std::unique_ptr< TH1C > ROOT::Experimental::Hist::ConvertToTH1C ( const RHistEngine< char > & engine)

Convert a one-dimensional histogram to TH1C.

As RHistEngine does not have global statistics, the number of entries and the total sum of weights will be unset.

Throws an exception if the histogram has more than one dimension.

Parameters
[in]enginethe RHistEngine to convert
Returns
the converted TH1

Definition at line 96 of file ConvertToTH1.cxx.

◆ ConvertToTH1D() [1/4]

std::unique_ptr< TH1D > ROOT::Experimental::Hist::ConvertToTH1D ( const RHist< double > & hist)

Convert a one-dimensional histogram to TH1D.

If the RHistStats are tainted, for example after setting bin contents, the number of entries and the total sum of weights will be unset.

Throws an exception if the histogram has more than one dimension.

Parameters
[in]histthe RHist to convert
Returns
the converted TH1

Definition at line 178 of file ConvertToTH1.cxx.

◆ ConvertToTH1D() [2/4]

std::unique_ptr< TH1D > ROOT::Experimental::Hist::ConvertToTH1D ( const RHist< RBinWithError > & hist)

Convert a one-dimensional histogram to TH1D.

If the RHistStats are tainted, for example after setting bin contents, the number of entries and the total sum of weights will be unset.

Throws an exception if the histogram has more than one dimension.

Parameters
[in]histthe RHist to convert
Returns
the converted TH1

Definition at line 185 of file ConvertToTH1.cxx.

◆ ConvertToTH1D() [3/4]

std::unique_ptr< TH1D > ROOT::Experimental::Hist::ConvertToTH1D ( const RHistEngine< double > & engine)

Convert a one-dimensional histogram to TH1D.

As RHistEngine does not have global statistics, the number of entries and the total sum of weights will be unset.

Throws an exception if the histogram has more than one dimension.

Parameters
[in]enginethe RHistEngine to convert
Returns
the converted TH1

Definition at line 126 of file ConvertToTH1.cxx.

◆ ConvertToTH1D() [4/4]

std::unique_ptr< TH1D > ROOT::Experimental::Hist::ConvertToTH1D ( const RHistEngine< RBinWithError > & engine)

Convert a one-dimensional histogram to TH1D.

As RHistEngine does not have global statistics, the number of entries and the total sum of weights will be unset.

Throws an exception if the histogram has more than one dimension.

Parameters
[in]enginethe RHistEngine to convert
Returns
the converted TH1

Definition at line 131 of file ConvertToTH1.cxx.

◆ ConvertToTH1F() [1/2]

std::unique_ptr< TH1F > ROOT::Experimental::Hist::ConvertToTH1F ( const RHist< float > & hist)

Convert a one-dimensional histogram to TH1F.

If the RHistStats are tainted, for example after setting bin contents, the number of entries and the total sum of weights will be unset.

Throws an exception if the histogram has more than one dimension.

Parameters
[in]histthe RHist to convert
Returns
the converted TH1

Definition at line 171 of file ConvertToTH1.cxx.

◆ ConvertToTH1F() [2/2]

std::unique_ptr< TH1F > ROOT::Experimental::Hist::ConvertToTH1F ( const RHistEngine< float > & engine)

Convert a one-dimensional histogram to TH1F.

As RHistEngine does not have global statistics, the number of entries and the total sum of weights will be unset.

Throws an exception if the histogram has more than one dimension.

Parameters
[in]enginethe RHistEngine to convert
Returns
the converted TH1

Definition at line 121 of file ConvertToTH1.cxx.

◆ ConvertToTH1I() [1/2]

std::unique_ptr< TH1I > ROOT::Experimental::Hist::ConvertToTH1I ( const RHist< int > & hist)

Convert a one-dimensional histogram to TH1I.

If the RHistStats are tainted, for example after setting bin contents, the number of entries and the total sum of weights will be unset.

Throws an exception if the histogram has more than one dimension.

Parameters
[in]histthe RHist to convert
Returns
the converted TH1

Definition at line 150 of file ConvertToTH1.cxx.

◆ ConvertToTH1I() [2/2]

std::unique_ptr< TH1I > ROOT::Experimental::Hist::ConvertToTH1I ( const RHistEngine< int > & engine)

Convert a one-dimensional histogram to TH1I.

As RHistEngine does not have global statistics, the number of entries and the total sum of weights will be unset.

Throws an exception if the histogram has more than one dimension.

Parameters
[in]enginethe RHistEngine to convert
Returns
the converted TH1

Definition at line 106 of file ConvertToTH1.cxx.

◆ ConvertToTH1L() [1/4]

std::unique_ptr< TH1L > ROOT::Experimental::Hist::ConvertToTH1L ( const RHist< long > & hist)

Convert a one-dimensional histogram to TH1L.

If the RHistStats are tainted, for example after setting bin contents, the number of entries and the total sum of weights will be unset.

Throws an exception if the histogram has more than one dimension.

Parameters
[in]histthe RHist to convert
Returns
the converted TH1

Definition at line 157 of file ConvertToTH1.cxx.

◆ ConvertToTH1L() [2/4]

std::unique_ptr< TH1L > ROOT::Experimental::Hist::ConvertToTH1L ( const RHist< long long > & hist)

Convert a one-dimensional histogram to TH1L.

If the RHistStats are tainted, for example after setting bin contents, the number of entries and the total sum of weights will be unset.

Throws an exception if the histogram has more than one dimension.

Parameters
[in]histthe RHist to convert
Returns
the converted TH1

Definition at line 164 of file ConvertToTH1.cxx.

◆ ConvertToTH1L() [3/4]

std::unique_ptr< TH1L > ROOT::Experimental::Hist::ConvertToTH1L ( const RHistEngine< long > & engine)

Convert a one-dimensional histogram to TH1L.

As RHistEngine does not have global statistics, the number of entries and the total sum of weights will be unset.

Throws an exception if the histogram has more than one dimension.

Parameters
[in]enginethe RHistEngine to convert
Returns
the converted TH1

Definition at line 111 of file ConvertToTH1.cxx.

◆ ConvertToTH1L() [4/4]

std::unique_ptr< TH1L > ROOT::Experimental::Hist::ConvertToTH1L ( const RHistEngine< long long > & engine)

Convert a one-dimensional histogram to TH1L.

As RHistEngine does not have global statistics, the number of entries and the total sum of weights will be unset.

Throws an exception if the histogram has more than one dimension.

Parameters
[in]enginethe RHistEngine to convert
Returns
the converted TH1

Definition at line 116 of file ConvertToTH1.cxx.

◆ ConvertToTH1S() [1/2]

std::unique_ptr< TH1S > ROOT::Experimental::Hist::ConvertToTH1S ( const RHist< short > & hist)

Convert a one-dimensional histogram to TH1S.

If the RHistStats are tainted, for example after setting bin contents, the number of entries and the total sum of weights will be unset.

Throws an exception if the histogram has more than one dimension.

Parameters
[in]histthe RHist to convert
Returns
the converted TH1

Definition at line 143 of file ConvertToTH1.cxx.

◆ ConvertToTH1S() [2/2]

std::unique_ptr< TH1S > ROOT::Experimental::Hist::ConvertToTH1S ( const RHistEngine< short > & engine)

Convert a one-dimensional histogram to TH1S.

As RHistEngine does not have global statistics, the number of entries and the total sum of weights will be unset.

Throws an exception if the histogram has more than one dimension.

Parameters
[in]enginethe RHistEngine to convert
Returns
the converted TH1

Definition at line 101 of file ConvertToTH1.cxx.