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.
 
std::unique_ptr< TH2CConvertToTH2C (const RHist< char > &hist)
 Convert a two-dimensional histogram to TH2C.
 
std::unique_ptr< TH2CConvertToTH2C (const RHistEngine< char > &engine)
 Convert a two-dimensional histogram to TH2C.
 
std::unique_ptr< TH2DConvertToTH2D (const RHist< double > &hist)
 Convert a two-dimensional histogram to TH2D.
 
std::unique_ptr< TH2DConvertToTH2D (const RHist< RBinWithError > &hist)
 Convert a two-dimensional histogram to TH2D.
 
std::unique_ptr< TH2DConvertToTH2D (const RHistEngine< double > &engine)
 Convert a two-dimensional histogram to TH2D.
 
std::unique_ptr< TH2DConvertToTH2D (const RHistEngine< RBinWithError > &engine)
 Convert a two-dimensional histogram to TH2D.
 
std::unique_ptr< TH2FConvertToTH2F (const RHist< float > &hist)
 Convert a two-dimensional histogram to TH2F.
 
std::unique_ptr< TH2FConvertToTH2F (const RHistEngine< float > &engine)
 Convert a two-dimensional histogram to TH2F.
 
std::unique_ptr< TH2IConvertToTH2I (const RHist< int > &hist)
 Convert a two-dimensional histogram to TH2I.
 
std::unique_ptr< TH2IConvertToTH2I (const RHistEngine< int > &engine)
 Convert a two-dimensional histogram to TH2I.
 
std::unique_ptr< TH2LConvertToTH2L (const RHist< long > &hist)
 Convert a two-dimensional histogram to TH2L.
 
std::unique_ptr< TH2LConvertToTH2L (const RHist< long long > &hist)
 Convert a two-dimensional histogram to TH2L.
 
std::unique_ptr< TH2LConvertToTH2L (const RHistEngine< long > &engine)
 Convert a two-dimensional histogram to TH2L.
 
std::unique_ptr< TH2LConvertToTH2L (const RHistEngine< long long > &engine)
 Convert a two-dimensional histogram to TH2L.
 
std::unique_ptr< TH2SConvertToTH2S (const RHist< short > &hist)
 Convert a two-dimensional histogram to TH2S.
 
std::unique_ptr< TH2SConvertToTH2S (const RHistEngine< short > &engine)
 Convert a two-dimensional histogram to TH2S.
 

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.

◆ ConvertToTH2C() [1/2]

std::unique_ptr< TH2C > ROOT::Experimental::Hist::ConvertToTH2C ( const RHist< char > & hist)

Convert a two-dimensional histogram to TH2C.

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 TH2

Definition at line 159 of file ConvertToTH2.cxx.

◆ ConvertToTH2C() [2/2]

std::unique_ptr< TH2C > ROOT::Experimental::Hist::ConvertToTH2C ( const RHistEngine< char > & engine)

Convert a two-dimensional histogram to TH2C.

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 TH2

Definition at line 119 of file ConvertToTH2.cxx.

◆ ConvertToTH2D() [1/4]

std::unique_ptr< TH2D > ROOT::Experimental::Hist::ConvertToTH2D ( const RHist< double > & hist)

Convert a two-dimensional histogram to TH2D.

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 TH2

Definition at line 201 of file ConvertToTH2.cxx.

◆ ConvertToTH2D() [2/4]

std::unique_ptr< TH2D > ROOT::Experimental::Hist::ConvertToTH2D ( const RHist< RBinWithError > & hist)

Convert a two-dimensional histogram to TH2D.

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 TH2

Definition at line 208 of file ConvertToTH2.cxx.

◆ ConvertToTH2D() [3/4]

std::unique_ptr< TH2D > ROOT::Experimental::Hist::ConvertToTH2D ( const RHistEngine< double > & engine)

Convert a two-dimensional histogram to TH2D.

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 TH2

Definition at line 149 of file ConvertToTH2.cxx.

◆ ConvertToTH2D() [4/4]

std::unique_ptr< TH2D > ROOT::Experimental::Hist::ConvertToTH2D ( const RHistEngine< RBinWithError > & engine)

Convert a two-dimensional histogram to TH2D.

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 TH2

Definition at line 154 of file ConvertToTH2.cxx.

◆ ConvertToTH2F() [1/2]

std::unique_ptr< TH2F > ROOT::Experimental::Hist::ConvertToTH2F ( const RHist< float > & hist)

Convert a two-dimensional histogram to TH2F.

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 TH2

Definition at line 194 of file ConvertToTH2.cxx.

◆ ConvertToTH2F() [2/2]

std::unique_ptr< TH2F > ROOT::Experimental::Hist::ConvertToTH2F ( const RHistEngine< float > & engine)

Convert a two-dimensional histogram to TH2F.

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 TH2

Definition at line 144 of file ConvertToTH2.cxx.

◆ ConvertToTH2I() [1/2]

std::unique_ptr< TH2I > ROOT::Experimental::Hist::ConvertToTH2I ( const RHist< int > & hist)

Convert a two-dimensional histogram to TH2I.

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 TH2

Definition at line 173 of file ConvertToTH2.cxx.

◆ ConvertToTH2I() [2/2]

std::unique_ptr< TH2I > ROOT::Experimental::Hist::ConvertToTH2I ( const RHistEngine< int > & engine)

Convert a two-dimensional histogram to TH2I.

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 TH2

Definition at line 129 of file ConvertToTH2.cxx.

◆ ConvertToTH2L() [1/4]

std::unique_ptr< TH2L > ROOT::Experimental::Hist::ConvertToTH2L ( const RHist< long > & hist)

Convert a two-dimensional histogram to TH2L.

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 TH2

Definition at line 180 of file ConvertToTH2.cxx.

◆ ConvertToTH2L() [2/4]

std::unique_ptr< TH2L > ROOT::Experimental::Hist::ConvertToTH2L ( const RHist< long long > & hist)

Convert a two-dimensional histogram to TH2L.

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 TH2

Definition at line 187 of file ConvertToTH2.cxx.

◆ ConvertToTH2L() [3/4]

std::unique_ptr< TH2L > ROOT::Experimental::Hist::ConvertToTH2L ( const RHistEngine< long > & engine)

Convert a two-dimensional histogram to TH2L.

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 TH2

Definition at line 134 of file ConvertToTH2.cxx.

◆ ConvertToTH2L() [4/4]

std::unique_ptr< TH2L > ROOT::Experimental::Hist::ConvertToTH2L ( const RHistEngine< long long > & engine)

Convert a two-dimensional histogram to TH2L.

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 TH2

Definition at line 139 of file ConvertToTH2.cxx.

◆ ConvertToTH2S() [1/2]

std::unique_ptr< TH2S > ROOT::Experimental::Hist::ConvertToTH2S ( const RHist< short > & hist)

Convert a two-dimensional histogram to TH2S.

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 TH2

Definition at line 166 of file ConvertToTH2.cxx.

◆ ConvertToTH2S() [2/2]

std::unique_ptr< TH2S > ROOT::Experimental::Hist::ConvertToTH2S ( const RHistEngine< short > & engine)

Convert a two-dimensional histogram to TH2S.

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 TH2

Definition at line 124 of file ConvertToTH2.cxx.