RNode is a generic type which represents any transformation node in the computation graph.
This tutorial shows how to take advantage of the RNode class.
{
return node.
Filter(filterStr);
}
template<typename T>
{
}
void df025_RNode()
{
std::cout << "Type name of input node: " << GetName(df) << std::endl;
auto f1 = AddFilter(df,
"rdfentry_ > 0");
auto f2 =
f1.Filter([](
ULong64_t e) {
return e > 1; }, {
"rdfentry_"});
std::cout << "Type name of input node: " << GetName(f2) << std::endl;
auto f3 = AddFilter(f2, "rdfentry_ > 2");
std::cout << "Entries passing the selection: " << *f3.Count() << std::endl;
}
static RooMathCoreReg dummy
unsigned long long ULong64_t
The public interface to the RDataFrame federation of classes.
RInterface< RDFDetail::RFilter< F, Proxied >, DS_t > Filter(F f, const ColumnNames_t &columns={}, std::string_view name="")
Append a filter to the call graph.
ROOT's RDataFrame offers a high level interface for analyses of data stored in TTrees,...
char * DemangleName(const char *mangled_name, int &errorCode)
Type name of input node: ROOT::RDataFrame
Type name of input node: ROOT::RDF::RInterface<ROOT::Detail::RDF::RFilter<df025_RNode()::$_0, ROOT::Detail::RDF::RNodeBase>, void>
Entries passing the selection: 5
- Date
- December 2018
- Author
- Danilo Piparo
Definition in file df025_RNode.C.