Skip to content

Commit

Permalink
Don't write files in RooStats tutorials for no reason
Browse files Browse the repository at this point in the history
This can be problematic in test environments.
  • Loading branch information
guitargeek committed Apr 27, 2024
1 parent c81266d commit 9df801c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tutorials/roostats/FourBinInstructional.C
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ void FourBinInstructional(bool doBayesian = false, bool doFeldmanCousins = false
modelConfig->SetParametersOfInterest(*wspace->set("poi"));
modelConfig->SetNuisanceParameters(*wspace->set("nuis"));
wspace->import(*modelConfig);
wspace->writeToFile("FourBin.root");
// wspace->writeToFile("FourBin.root");

// -------------------------------------------------
// If you want to see the covariance matrix uncomment
Expand Down
2 changes: 1 addition & 1 deletion tutorials/roostats/FourBinInstructional.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
modelConfig.SetParametersOfInterest(wspace.set("poi"))
modelConfig.SetNuisanceParameters(wspace.set("nuis"))
wspace.Import(modelConfig)
wspace.writeToFile("FourBin.root")
# wspace.writeToFile("FourBin.root")

# -------------------------------------------------
# If you want to see the covariance matrix uncomment
Expand Down
2 changes: 1 addition & 1 deletion tutorials/roostats/rs101_limitexample.C
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void rs101_limitexample()
wspace.import(modelConfig);
wspace.import(dataOrig);
wspace.SetName("w");
wspace.writeToFile("rs101_ws.root");
// wspace.writeToFile("rs101_ws.root");

// Make sure we reference the data in the workspace from now on
RooDataSet &data = static_cast<RooDataSet &>(*wspace.data(dataOrig.GetName()));
Expand Down
2 changes: 1 addition & 1 deletion tutorials/roostats/rs101_limitexample.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
wspace.Import(modelConfig)
wspace.Import(dataOrig)
wspace.SetName("w")
wspace.writeToFile("rs101_ws.root")
# wspace.writeToFile("rs101_ws.root")

# Make sure we reference the data in the workspace from now on
data = wspace[dataOrig.GetName()]
Expand Down

0 comments on commit 9df801c

Please sign in to comment.