Skip to content

Commit

Permalink
[RF] Always use RooVectorDataStore in stressRooFit
Browse files Browse the repository at this point in the history
This is done to support the new batched evaluations mode.
  • Loading branch information
guitargeek committed Aug 10, 2021
1 parent 17735c9 commit 3a9084a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/stressRooFit_tests.h
Original file line number Diff line number Diff line change
Expand Up @@ -3435,6 +3435,7 @@ class TestBasic403 : public RooUnitTest

// Instruct dataset d in interpret w as event weight rather than as observable
RooDataSet dataw(data->GetName(),data->GetTitle(),data,*data->get(),0,w->GetName()) ;
dataw.convertToVectorStore();
//data->setWeightVar(*w) ;


Expand Down
8 changes: 7 additions & 1 deletion tutorials/roofit/rf208_convolution.C
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,14 @@ void rf208_convolution()
// Sample 1000 events in x from gxlx
RooDataSet *data = lxg.generate(t, 10000);

RooArgList list;
lxg.treeNodeServerList(&list);
list.Print();

//return;

// Fit gxlx to data
lxg.fitTo(*data);
lxg.fitTo(*data, BatchMode(1));

// Plot data, landau pdf, landau (X) gauss pdf
RooPlot *frame = t.frame(Title("landau (x) gauss convolution"));
Expand Down

0 comments on commit 3a9084a

Please sign in to comment.