Skip to content

Commit 16f189a

Browse files
committed
call defined instead of defineSlot
1 parent c4ecca1 commit 16f189a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tutorials/analysis/dataframe/df041_ThreadSafeRNG.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ double GetGlobalRNG()
3434
return globalGaus(globalGenerator);
3535
}
3636

37-
double GetThreadSafeRNG(unsigned int slot)
37+
double GetThreadSafeRNG()
3838
{
3939
thread_local std::random_device rd{};
4040
thread_local std::mt19937 generator(rd());
@@ -55,7 +55,7 @@ void df041_ThreadSafeRNG()
5555

5656
// 2. Generate random variables with several per-thread generators
5757
ROOT::EnableImplicitMT(32);
58-
auto df2 = ROOT::RDataFrame(10000000).DefineSlot("x", GetThreadSafeRNG);
58+
auto df2 = ROOT::RDataFrame(10000000).Define("x", GetThreadSafeRNG);
5959
auto h2 = df2.Histo1D({"h4", "Thread-safe generators (MT)", 1000, -4, 4}, {"x"});
6060
c1->cd(2);
6161
h2->DrawClone();

0 commit comments

Comments
 (0)