Logo ROOT   6.10/09
Reference Guide
Namespaces | Classes | Enumerations | Functions
ROOT::Experimental Namespace Reference

Namespaces

 Detail
 
 Hist
 
 Internal
 
 TDF
 

Classes

class  TAxisBase
 Histogram axis base class. More...
 
class  TAxisConfig
 Objects used to configure the different axis types. More...
 
class  TAxisEquidistant
 Axis with equidistant bin borders. More...
 
class  TAxisGrow
 An axis that can extend its range, keeping the number of its bins unchanged. More...
 
class  TAxisIrregular
 An axis with non-equidistant bins (also known as "variable binning"). More...
 
class  TAxisLabels
 A TAxisGrow that has a label assigned to each bin and a bin width of 1. More...
 
class  TAxisView
 Common view on a TAxis, no matter what its kind. More...
 
class  TBufferMerger
 TBufferMerger is a class to facilitate writing data in parallel from multiple threads, while writing to a single output file. More...
 
class  TBufferMergerFile
 
class  TCanvas
 Graphic container for TDrawable-s. More...
 
class  TDataFrame
 ROOT's TDataFrame offers a high level interface for analyses of data stored in TTrees. More...
 
class  TDirectory
 Key/value store of objects. More...
 
class  TDirectoryTypeMismatch
 Objects of this class are thrown to signal that the value known under the given name . More...
 
class  TDirectoryUnknownKey
 Objects of this class are thrown to signal that no key with that name exists. More...
 
class  TFile
 A ROOT file. More...
 
class  TFilePtr
 Points to an object that stores or reads objects in ROOT's binary format. More...
 
class  TFitResult
 
class  TFunction
 
class  THist
 Histogram class for histograms with DIMENSIONS dimensions, where each bin count is stored by a value of type PRECISION. More...
 
class  THist< DIMENSIONS, PRECISION >
 THist with no STAT parameter uses THistStatContent by default. More...
 
class  THistBufferedFill
 Buffers calls to Fill(). More...
 
class  THistConcurrentFiller
 Buffers a thread's Fill calls and submits them to the THistConcurrentFillManager. More...
 
class  THistConcurrentFillManager
 Manages the synchronization of calls to FillN(). More...
 
class  THistDataMomentUncert
 For now do as TH1: calculate first (xw) and second (x^2w) moment. More...
 
class  THistDrawOptions
 Drawing options for a histogram with DIMENSIONS. More...
 
class  THistStatContent
 Basic histogram statistics, keeping track of the bin content and the total number of calls to Fill(). More...
 
class  THistStatRuntime
 Interface implementing a pure virtual functions DoFill(), DoFillN(). More...
 
class  THistStatTotalSumOfSquaredWeights
 Keeps track of the histogram's total sum of squared weights. More...
 
class  THistStatTotalSumOfWeights
 Keeps track of the histogram's total sum of weights. More...
 
class  THistStatUncertainty
 Histogram statistics to keep track of the Poisson uncertainty per bin. More...
 
class  THistView
 A view on a histogram, selecting a range on a subset of dimensions. More...
 
struct  THistViewOutOfRange
 
class  TLogEntry
 
class  TLogHandler
 Abstract TLogHandler base class. More...
 
class  TLogManager
 

Typedefs

THist Typedefs

Convenience typedefs (ROOT6-compatible type names)

using TH1D = THist< 1, double, THistStatContent, THistStatUncertainty >
 
using TH1F = THist< 1, float, THistStatContent, THistStatUncertainty >
 
using TH1C = THist< 1, char, THistStatContent >
 
using TH1I = THist< 1, int, THistStatContent >
 
using TH1LL = THist< 1, int64_t, THistStatContent >
 
using TH2D = THist< 2, double, THistStatContent, THistStatUncertainty >
 
using TH2F = THist< 2, float, THistStatContent, THistStatUncertainty >
 
using TH2C = THist< 2, char, THistStatContent >
 
using TH2I = THist< 2, int, THistStatContent >
 
using TH2LL = THist< 2, int64_t, THistStatContent >
 
using TH3D = THist< 3, double, THistStatContent, THistStatUncertainty >
 
using TH3F = THist< 3, float, THistStatContent, THistStatUncertainty >
 
using TH3C = THist< 3, char, THistStatContent >
 
using TH3I = THist< 3, int, THistStatContent >
 
using TH3LL = THist< 3, int64_t, THistStatContent >
 

Enumerations

enum  ELogLevel {
  ELogLevel::kDebug, ELogLevel::kInfo, ELogLevel::kWarning, ELogLevel::kError,
  ELogLevel::kFatal
}
 Kinds of diagnostics. More...
 

Functions

template<int DIMENSIONS, class PRECISION_TO , class PRECISION_FROM , template< int D_, class P_, template< class P__ > class S_ > class... STAT_TO, template< int D_, class P_, template< class P__ > class S_ > class... STAT_FROM>
void Add (THist< DIMENSIONS, PRECISION_TO, STAT_TO... > &to, const THist< DIMENSIONS, PRECISION_FROM, STAT_FROM... > &from)
 Add two histograms. More...
 
template<int DIMENSIONS, class PRECISION , template< int D_, class P_, template< class P__ > class S_ > class... STAT>
TFitResult FitTo (const THist< DIMENSIONS, PRECISION, STAT... > &hist, const TFunction< DIMENSIONS > &func, std::array_view< double > paramInit)
 
template<int DIMENSIONS, class PRECISION , template< int D_, class P_, template< class P__ > class S_ > class... STAT>
std::unique_ptr< Internal::TDrawableGetDrawable (const std::shared_ptr< THist< DIMENSIONS, PRECISION, STAT... >> &hist, THistDrawOptions< DIMENSIONS > opts={})
 Interface to graphics taking a unique_ptr<THist>. More...
 
template<int DIMENSIONS, class PRECISION , template< int D_, class P_, template< class P__ > class S_ > class... STAT>
std::unique_ptr< Internal::TDrawableGetDrawable (std::unique_ptr< THist< DIMENSIONS, PRECISION, STAT... >> &&hist, THistDrawOptions< DIMENSIONS > opts={})
 Interface to graphics taking a shared_ptr<THist>. More...
 
template<int DIMENSIONS, class PRECISION , template< int D_, class P_, template< class P__ > class S_ > class... STAT>
THist< DIMENSIONS, PRECISION, STAT... > HistFromImpl (std::unique_ptr< typename THist< DIMENSIONS, PRECISION, STAT... >::ImplBase_t > pHistImpl)
 Adopt an external, stand-alone THistImpl. The THist will take ownership. More...
 
template<int DIMENSIONS, class PRECISION , template< int D_, class P_, template< class P__ > class S_ > class... STAT>
class THist< DIMENSIONS, PRECISION, STAT... > HistFromImpl (std::unique_ptr< typename THist< DIMENSIONS, PRECISION, STAT... >::ImplBase_t > pHistImpl)
 Adopt an external, stand-alone THistImpl. The THist will take ownership. More...
 
bool operator== (const TAxisEquidistant &lhs, const TAxisEquidistant &rhs) noexcept
 Equality-compare two TAxisEquidistant. More...
 
template<int DIMENSIONS, class PRECISION , template< int D_, class P_, template< class P__ > class S_ > class... STAT>
void swap (THist< DIMENSIONS, PRECISION, STAT... > &a, THist< DIMENSIONS, PRECISION, STAT... > &b) noexcept
 Swap two histograms. More...
 
TAxisBase::const_iterator comparison operators
bool operator< (TAxisBase::const_iterator lhs, TAxisBase::const_iterator rhs) noexcept
 i < j More...
 
bool operator> (TAxisBase::const_iterator lhs, TAxisBase::const_iterator rhs) noexcept
 i > j More...
 
bool operator<= (TAxisBase::const_iterator lhs, TAxisBase::const_iterator rhs) noexcept
 i <= j More...
 
bool operator>= (TAxisBase::const_iterator lhs, TAxisBase::const_iterator rhs) noexcept
 i >= j More...
 
bool operator== (TAxisBase::const_iterator lhs, TAxisBase::const_iterator rhs) noexcept
 i == j More...
 
bool operator!= (TAxisBase::const_iterator lhs, TAxisBase::const_iterator rhs) noexcept
 i != j More...
 

Axis Compatibility

enum  EAxisCompatibility { EAxisCompatibility::kIdentical, EAxisCompatibility::kContains, EAxisCompatibility::kSampling, EAxisCompatibility::kIncompatible }
 
EAxisCompatibility CanMap (TAxisEquidistant &target, TAxisEquidistant &source) noexcept
 Whether (and how) the source axis can be merged into the target axis. More...
 

Typedef Documentation

◆ TH1C

using ROOT::Experimental::TH1C = typedef THist<1, char, THistStatContent>

Definition at line 312 of file THist.hxx.

◆ TH1D

Definition at line 310 of file THist.hxx.

◆ TH1F

Definition at line 311 of file THist.hxx.

◆ TH1I

Definition at line 313 of file THist.hxx.

◆ TH1LL

using ROOT::Experimental::TH1LL = typedef THist<1, int64_t, THistStatContent>

Definition at line 314 of file THist.hxx.

◆ TH2C

using ROOT::Experimental::TH2C = typedef THist<2, char, THistStatContent>

Definition at line 318 of file THist.hxx.

◆ TH2D

Definition at line 316 of file THist.hxx.

◆ TH2F

Definition at line 317 of file THist.hxx.

◆ TH2I

Definition at line 319 of file THist.hxx.

◆ TH2LL

using ROOT::Experimental::TH2LL = typedef THist<2, int64_t, THistStatContent>

Definition at line 320 of file THist.hxx.

◆ TH3C

using ROOT::Experimental::TH3C = typedef THist<3, char, THistStatContent>

Definition at line 324 of file THist.hxx.

◆ TH3D

Definition at line 322 of file THist.hxx.

◆ TH3F

Definition at line 323 of file THist.hxx.

◆ TH3I

Definition at line 325 of file THist.hxx.

◆ TH3LL

using ROOT::Experimental::TH3LL = typedef THist<3, int64_t, THistStatContent>

Definition at line 326 of file THist.hxx.

Enumeration Type Documentation

◆ EAxisCompatibility

Enumerator
kIdentical 

Source and target axes are identical.

kContains 

The source is a subset of bins of the target axis.

kSampling 

The bins of the source axis have finer granularity, but the bin borders are compatible.

Example: source: 0., 1., 2., 3., 4., 5., 6.; target: 0., 2., 5., 6. Note that this is not a symmetrical property: only one of CanMerge(source, target), CanMap(target, source) can return kContains.

kIncompatible 

The source axis and target axis have different binning.

Example: source: 0., 1., 2., 3., 4., target: 0., 0.1, 0.2, 0.3, 0.4

Definition at line 931 of file TAxis.hxx.

◆ ELogLevel

Kinds of diagnostics.

Enumerator
kDebug 

Debug information; only useful for developers.

kInfo 

Informational messages; used for instance for tracing.

kWarning 

Warnings about likely unexpected behavior.

kError 
kFatal 

Definition at line 31 of file TLogger.hxx.

Function Documentation

◆ Add()

template<int DIMENSIONS, class PRECISION_TO , class PRECISION_FROM , template< int D_, class P_, template< class P__ > class S_ > class... STAT_TO, template< int D_, class P_, template< class P__ > class S_ > class... STAT_FROM>
void ROOT::Experimental::Add ( THist< DIMENSIONS, PRECISION_TO, STAT_TO... > &  to,
const THist< DIMENSIONS, PRECISION_FROM, STAT_FROM... > &  from 
)

Add two histograms.

This is the generic, inefficient version for now; it assumes no matching axes.

Definition at line 336 of file THist.hxx.

◆ CanMap()

ROOT::Experimental::EAxisCompatibility ROOT::Experimental::CanMap ( TAxisEquidistant target,
TAxisEquidistant source 
)
noexcept

Whether (and how) the source axis can be merged into the target axis.

Definition at line 49 of file TAxis.cxx.

◆ FitTo()

template<int DIMENSIONS, class PRECISION , template< int D_, class P_, template< class P__ > class S_ > class... STAT>
TFitResult ROOT::Experimental::FitTo ( const THist< DIMENSIONS, PRECISION, STAT... > &  hist,
const TFunction< DIMENSIONS > &  func,
std::array_view< double >  paramInit 
)

Definition at line 41 of file TFit.hxx.

◆ GetDrawable() [1/2]

template<int DIMENSIONS, class PRECISION , template< int D_, class P_, template< class P__ > class S_ > class... STAT>
std::unique_ptr<Internal::TDrawable> ROOT::Experimental::GetDrawable ( const std::shared_ptr< THist< DIMENSIONS, PRECISION, STAT... >> &  hist,
THistDrawOptions< DIMENSIONS >  opts = {} 
)

Interface to graphics taking a unique_ptr<THist>.

Definition at line 357 of file THist.hxx.

◆ GetDrawable() [2/2]

template<int DIMENSIONS, class PRECISION , template< int D_, class P_, template< class P__ > class S_ > class... STAT>
std::unique_ptr<Internal::TDrawable> ROOT::Experimental::GetDrawable ( std::unique_ptr< THist< DIMENSIONS, PRECISION, STAT... >> &&  hist,
THistDrawOptions< DIMENSIONS >  opts = {} 
)

Interface to graphics taking a shared_ptr<THist>.

Definition at line 367 of file THist.hxx.

◆ HistFromImpl() [1/2]

template<int DIMENSIONS, class PRECISION , template< int D_, class P_, template< class P__ > class S_ > class... STAT>
THist<DIMENSIONS, PRECISION, STAT...> ROOT::Experimental::HistFromImpl ( std::unique_ptr< typename THist< DIMENSIONS, PRECISION, STAT... >::ImplBase_t >  pHistImpl)

Adopt an external, stand-alone THistImpl. The THist will take ownership.

Definition at line 297 of file THist.hxx.

◆ HistFromImpl() [2/2]

template<int DIMENSIONS, class PRECISION , template< int D_, class P_, template< class P__ > class S_ > class... STAT>
class THist< DIMENSIONS, PRECISION, STAT... > ROOT::Experimental::HistFromImpl ( std::unique_ptr< typename THist< DIMENSIONS, PRECISION, STAT... >::ImplBase_t >  pHistImpl)

Adopt an external, stand-alone THistImpl. The THist will take ownership.

Definition at line 297 of file THist.hxx.

◆ operator!=()

i != j

Definition at line 296 of file TAxis.hxx.

◆ operator<()

bool ROOT::Experimental::operator< ( TAxisBase::const_iterator  lhs,
TAxisBase::const_iterator  rhs 
)
inlinenoexcept

i < j

Definition at line 266 of file TAxis.hxx.

◆ operator<=()

bool ROOT::Experimental::operator<= ( TAxisBase::const_iterator  lhs,
TAxisBase::const_iterator  rhs 
)
inlinenoexcept

i <= j

Definition at line 278 of file TAxis.hxx.

◆ operator==() [1/2]

bool ROOT::Experimental::operator== ( TAxisBase::const_iterator  lhs,
TAxisBase::const_iterator  rhs 
)
inlinenoexcept

i == j

Definition at line 290 of file TAxis.hxx.

◆ operator==() [2/2]

bool ROOT::Experimental::operator== ( const TAxisEquidistant lhs,
const TAxisEquidistant rhs 
)
inlinenoexcept

Equality-compare two TAxisEquidistant.

Definition at line 537 of file TAxis.hxx.

◆ operator>()

bool ROOT::Experimental::operator> ( TAxisBase::const_iterator  lhs,
TAxisBase::const_iterator  rhs 
)
inlinenoexcept

i > j

Definition at line 272 of file TAxis.hxx.

◆ operator>=()

bool ROOT::Experimental::operator>= ( TAxisBase::const_iterator  lhs,
TAxisBase::const_iterator  rhs 
)
inlinenoexcept

i >= j

Definition at line 284 of file TAxis.hxx.

◆ swap()

template<int DIMENSIONS, class PRECISION , template< int D_, class P_, template< class P__ > class S_ > class... STAT>
void ROOT::Experimental::swap ( THist< DIMENSIONS, PRECISION, STAT... > &  a,
THist< DIMENSIONS, PRECISION, STAT... > &  b 
)
noexcept

Swap two histograms.

Very efficient; swaps the fImpl pointers.

Definition at line 205 of file THist.hxx.