16 auto df =
_df.Define(
"one", [] {
return 1; }).Define(
"two", [] {
return 2; });
22 auto isOne = [] (
int a) {
return a == 1; };
26 auto c1 = df.Filter(
isOne, {
"one"}).Count();
27 auto c2 = df.Filter(
isNotOne, {
"two"}).Count();
34 auto checkOneTwo = [] (
const std::vector<int> &
v) {
return v.size() == 2 &&
v[0] == 1 &&
v[1] == 2; };
44 auto c3 = df.Filter(ROOT::RDF::PassAsVec<2, int>(
checkOneTwo), {
"one",
"two"}).Count();
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
#define R__ASSERT(e)
Checks condition e and reports a fatal error if it's false.
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
auto Not(F &&f) -> decltype(RDFInternal::NotHelper(Args(), std::forward< F >(f)))
Given a callable with signature bool(T1, T2, ...) return a callable with same signature that returns ...