Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::RSliceSpec Class Referencefinal

Specification of a slice operation along one dimension.

// When not specifying a range, the slice will include all bins.
// In the following, assuming range is an RBinIndexRange.
// Operations are specified with parameters.
// Finally, it is possible to combine a range and an operation.
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Rebin the dimension, grouping a number of original bins into a new one.
Sum bins along this dimension, effectively resulting in a projection.
Specification of a slice operation along one dimension.
static uint64_t sum(uint64_t i)
Definition Factory.cxx:2338
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition at line 40 of file RSliceSpec.hxx.

Classes

class  ROperationRebin
 Rebin the dimension, grouping a number of original bins into a new one. More...
 
class  ROperationSum
 Sum bins along this dimension, effectively resulting in a projection. More...
 

Public Member Functions

 RSliceSpec ()=default
 A default slice operation that keeps the dimension untouched.
 
 RSliceSpec (RBinIndexRange range)
 A slice of a dimension.
 
 RSliceSpec (RBinIndexRange range, ROperationRebin rebin)
 A rebin operation of a slice of the dimension.
 
 RSliceSpec (RBinIndexRange range, ROperationSum sum)
 A sum operation of a slice of the dimension.
 
 RSliceSpec (ROperationRebin rebin)
 A rebin operation of a dimension.
 
 RSliceSpec (ROperationSum sum)
 A sum operation of a dimension.
 
const ROperationRebinGetOperationRebin () const
 
const ROperationSumGetOperationSum () const
 
const RBinIndexRangeGetRange () const
 
bool HasOperation () const
 

Private Attributes

std::variant< std::monostate, ROperationRebin, ROperationSumfOperation
 The operation to perform, if any.
 
RBinIndexRange fRange
 The range of the slice; can be invalid to signify the full range.
 

#include <ROOT/RSliceSpec.hxx>

Constructor & Destructor Documentation

◆ RSliceSpec() [1/6]

ROOT::Experimental::RSliceSpec::RSliceSpec ( )
default

A default slice operation that keeps the dimension untouched.

◆ RSliceSpec() [2/6]

ROOT::Experimental::RSliceSpec::RSliceSpec ( RBinIndexRange range)
inline

A slice of a dimension.

Parameters
[in]rangethe range of the slice

Definition at line 76 of file RSliceSpec.hxx.

◆ RSliceSpec() [3/6]

ROOT::Experimental::RSliceSpec::RSliceSpec ( ROperationRebin rebin)
inline

A rebin operation of a dimension.

Definition at line 79 of file RSliceSpec.hxx.

◆ RSliceSpec() [4/6]

ROOT::Experimental::RSliceSpec::RSliceSpec ( ROperationSum sum)
inline

A sum operation of a dimension.

Definition at line 82 of file RSliceSpec.hxx.

◆ RSliceSpec() [5/6]

ROOT::Experimental::RSliceSpec::RSliceSpec ( RBinIndexRange range,
ROperationRebin rebin )
inline

A rebin operation of a slice of the dimension.

Definition at line 85 of file RSliceSpec.hxx.

◆ RSliceSpec() [6/6]

ROOT::Experimental::RSliceSpec::RSliceSpec ( RBinIndexRange range,
ROperationSum sum )
inline

A sum operation of a slice of the dimension.

Definition at line 88 of file RSliceSpec.hxx.

Member Function Documentation

◆ GetOperationRebin()

const ROperationRebin * ROOT::Experimental::RSliceSpec::GetOperationRebin ( ) const
inline

Definition at line 92 of file RSliceSpec.hxx.

◆ GetOperationSum()

const ROperationSum * ROOT::Experimental::RSliceSpec::GetOperationSum ( ) const
inline

Definition at line 93 of file RSliceSpec.hxx.

◆ GetRange()

const RBinIndexRange & ROOT::Experimental::RSliceSpec::GetRange ( ) const
inline

Definition at line 90 of file RSliceSpec.hxx.

◆ HasOperation()

bool ROOT::Experimental::RSliceSpec::HasOperation ( ) const
inline

Definition at line 91 of file RSliceSpec.hxx.

Member Data Documentation

◆ fOperation

std::variant<std::monostate, ROperationRebin, ROperationSum> ROOT::Experimental::RSliceSpec::fOperation
private

The operation to perform, if any.

Definition at line 67 of file RSliceSpec.hxx.

◆ fRange

RBinIndexRange ROOT::Experimental::RSliceSpec::fRange
private

The range of the slice; can be invalid to signify the full range.

Definition at line 65 of file RSliceSpec.hxx.

Libraries for ROOT::Experimental::RSliceSpec:

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