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>
void ROOT::RDF::Experimental::RMetaData::Add | ( | const std::string & | key, |
const std::string & | val | ||
) |
Definition at line 28 of file RMetaData.cxx.
void ROOT::RDF::Experimental::RMetaData::Add | ( | const std::string & | key, |
double | val | ||
) |
Definition at line 23 of file RMetaData.cxx.
void ROOT::RDF::Experimental::RMetaData::Add | ( | const std::string & | key, |
int | val | ||
) |
Definition at line 18 of file RMetaData.cxx.
std::string ROOT::RDF::Experimental::RMetaData::Dump | ( | const std::string & | key | ) | const |
Definition at line 33 of file RMetaData.cxx.
double ROOT::RDF::Experimental::RMetaData::GetD | ( | const std::string & | key | ) | const |
Definition at line 47 of file RMetaData.cxx.
double ROOT::RDF::Experimental::RMetaData::GetD | ( | const std::string & | key, |
double | defaultVal | ||
) | const |
Definition at line 74 of file RMetaData.cxx.
int ROOT::RDF::Experimental::RMetaData::GetI | ( | const std::string & | key | ) | const |
Definition at line 38 of file RMetaData.cxx.
Definition at line 65 of file RMetaData.cxx.
std::string ROOT::RDF::Experimental::RMetaData::GetS | ( | const std::string & | key | ) | const |
Definition at line 56 of file RMetaData.cxx.
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.
|
private |
Definition at line 30 of file RMetaData.hxx.