Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::RDF::Experimental::RMetaData Class Reference

Class behaving as a heterogenuous dictionary to store dataset metadata.

This class should be passed to an RSample object which represents a single dataset sample. Once a dataframe is built with RMetaData object, it could be accessed via DefinePerSample.

Definition at line 29 of file RMetaData.hxx.

Public Member Functions

void Add (const std::string &key, const std::string &val)
 
void Add (const std::string &key, double val)
 
void Add (const std::string &key, int val)
 
std::string Dump (const std::string &key) const
 
double GetD (const std::string &key) const
 
double GetD (const std::string &key, double defaultVal) const
 
int GetI (const std::string &key) const
 
int GetI (const std::string &key, int defaultVal) const
 
std::string GetS (const std::string &key) const
 
const std::string GetS (const std::string &key, const std::string &defaultVal) const
 

Private Attributes

nlohmann::json fJson
 

#include <ROOT/RDF/RMetaData.hxx>

Member Function Documentation

◆ Add() [1/3]

void ROOT::RDF::Experimental::RMetaData::Add ( const std::string &  key,
const std::string &  val 
)

Definition at line 28 of file RMetaData.cxx.

◆ Add() [2/3]

void ROOT::RDF::Experimental::RMetaData::Add ( const std::string &  key,
double  val 
)

Definition at line 23 of file RMetaData.cxx.

◆ Add() [3/3]

void ROOT::RDF::Experimental::RMetaData::Add ( const std::string &  key,
int  val 
)

Definition at line 18 of file RMetaData.cxx.

◆ Dump()

std::string ROOT::RDF::Experimental::RMetaData::Dump ( const std::string &  key) const

Definition at line 33 of file RMetaData.cxx.

◆ GetD() [1/2]

double ROOT::RDF::Experimental::RMetaData::GetD ( const std::string &  key) const

Definition at line 47 of file RMetaData.cxx.

◆ GetD() [2/2]

double ROOT::RDF::Experimental::RMetaData::GetD ( const std::string &  key,
double  defaultVal 
) const

Definition at line 74 of file RMetaData.cxx.

◆ GetI() [1/2]

int ROOT::RDF::Experimental::RMetaData::GetI ( const std::string &  key) const

Definition at line 38 of file RMetaData.cxx.

◆ GetI() [2/2]

int ROOT::RDF::Experimental::RMetaData::GetI ( const std::string &  key,
int  defaultVal 
) const

Definition at line 65 of file RMetaData.cxx.

◆ GetS() [1/2]

std::string ROOT::RDF::Experimental::RMetaData::GetS ( const std::string &  key) const

Definition at line 56 of file RMetaData.cxx.

◆ GetS() [2/2]

const std::string ROOT::RDF::Experimental::RMetaData::GetS ( const std::string &  key,
const std::string &  defaultVal 
) const

Definition at line 83 of file RMetaData.cxx.

Member Data Documentation

◆ fJson

nlohmann::json ROOT::RDF::Experimental::RMetaData::fJson
private

Definition at line 30 of file RMetaData.hxx.

Libraries for ROOT::RDF::Experimental::RMetaData:

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