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

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.

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

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

Definition at line 135 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 95 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.

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

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

Definition at line 177 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.

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

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

Definition at line 184 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 125 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 130 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.

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

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

Definition at line 170 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 120 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.

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

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

Definition at line 149 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 105 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.

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

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

Definition at line 156 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.

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

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

Definition at line 163 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 110 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 115 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.

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

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

Definition at line 142 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 100 of file ConvertToTH1.cxx.