11#ifndef ROOT_RDF_RSAMPLEINFO
12#define ROOT_RDF_RSAMPLEINFO
44 const auto msg =
"RSampleInfo: sample data was requested but no samples are available.";
45 throw std::logic_error(msg);
50 RSampleInfo(std::string_view
id, std::pair<ULong64_t, ULong64_t> entryRange,
77 int GetI(
const std::string &key)
const
84 double GetD(
const std::string &key)
const
91 std::string
GetS(
const std::string &key)
const
101 return fID.find(std::string(substr)) != std::string::npos;
unsigned long long ULong64_t
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
Class representing a sample which is a grouping of trees and their fileglobs, and,...
const std::string & GetSampleName() const
Get the name of the sample (RSample object).
const RMetaData & GetMetaData() const
Get an instance of the RMetaData class.
This type represents a sample identifier, to be used in conjunction with RDataFrame features such as ...
unsigned int GetSampleId() const
Get the sample id as an int.
RSampleInfo(RSampleInfo &&)=default
void ThrowIfNoSample() const
bool Contains(std::string_view substr) const
Check whether the sample name contains the given substring.
bool operator==(const RSampleInfo &other) const
RSampleInfo(std::string_view id, std::pair< ULong64_t, ULong64_t > entryRange, const ROOT::RDF::Experimental::RSample *sample=nullptr)
int GetI(const std::string &key) const
Return the metadata value of type int given the key.
std::string GetS(const std::string &key) const
Return the metadata value of type string given the key.
RSampleInfo(const RSampleInfo &)=default
std::pair< ULong64_t, ULong64_t > fEntryRange
RSampleInfo & operator=(const RSampleInfo &)=default
double GetD(const std::string &key) const
Return the metadata value of type double given the key.
bool Empty() const
Check whether the sample name is empty.
const ROOT::RDF::Experimental::RSample * fSample
const std::string & AsString() const
Return a string representation of the sample name.
bool operator!=(const RSampleInfo &other) const
ULong64_t NEntries() const
Return the number of entries of this sample that is being taken into consideration.
RSampleInfo & operator=(RSampleInfo &&)=default
const std::string & GetSampleName() const
Get the name of the sample as a string.
std::pair< ULong64_t, ULong64_t > EntryRange() const
Return the entry range in the sample that is being taken into consideration.
std::function< void(unsigned int, const ROOT::RDF::RSampleInfo &)> SampleCallback_t
The type of a data-block callback, registered with an RDataFrame computation graph via e....
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...