22 auto vGen = [&](
int len) {
24 std::transform(
v.begin(),
v.end(),
v.begin(), unifGen);
28 auto d0 =
d.Define(
"len", []() {
return (
int)
gRandom->
Uniform(0, 16); })
29 .Define(
"x", vGen, {
"len"})
30 .Define(
"y", vGen, {
"len"});
36 auto d1 = d0.Define(
"r",
"sqrt(x*x + y*y)");
41 auto ring_h = d1.Define(
"rInFig",
"r > .4 && r < .8 && x*y < 0")
42 .Define(
"yFig",
"y[rInFig]")
43 .Define(
"xFig",
"x[rInFig]")
44 .Histo2D({
"fig",
"Two quarters of a ring", 64, -1, 1, 64, -1, 1},
"xFig",
"yFig");
47 ring_h->DrawCopy(
"Colz");
R__EXTERN TRandom * gRandom
ROOT's RDataFrame offers a high level interface for analyses of data stored in TTree,...
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...