From 0bcc9f82ba118eb5f12c3ffbbabac66819935a9b Mon Sep 17 00:00:00 2001 From: ferdymercury Date: Mon, 7 Sep 2026 13:45:02 +0200 Subject: [PATCH 1/3] [tutorials] do not rely on obsolete Riostream header --- tutorials/io/hadd.C | 5 +++-- tutorials/io/tree/clones_event.h | 3 ++- tutorials/io/tree/printSizes.C | 3 ++- tutorials/io/tree/tree101_basic.C | 2 +- tutorials/io/tree/tree103_tree.C | 2 +- tutorials/io/tree/tree130_jets.C | 2 +- tutorials/io/xml/DOMParsePerson.C | 2 +- tutorials/io/xml/DOMRecursive.C | 2 +- tutorials/io/xml/SAXHandler.C | 2 +- tutorials/legacy/math/Rolke.C | 3 ++- tutorials/legacy/regexp/regexp.C | 3 +-- tutorials/legacy/splot/TestSPlot.C | 3 ++- tutorials/legacy/thread/threads.C | 3 ++- tutorials/machine_learning/createData.C | 3 ++- tutorials/math/Legendre.C | 3 +-- tutorials/math/LegendreAssoc.C | 5 +++-- tutorials/math/fit/fitpanel_playback.C | 3 ++- tutorials/math/fit/multidimfit.C | 2 +- tutorials/math/foam/foam_demo.C | 3 ++- tutorials/math/foam/foam_demopers.C | 2 +- tutorials/math/foam/foam_kanwa.C | 3 ++- tutorials/math/matrix/solveLinear.C | 2 +- tutorials/math/pdf/pdf009_Bessel.C | 1 - tutorials/math/pdf/pdf011_Student.C | 1 - tutorials/math/quadp/Quad.cxx | 5 +++-- tutorials/math/quadp/portfolio.C | 3 ++- tutorials/visualisation/eve/SplitGLView.C | 1 - tutorials/visualisation/gui/guitest_playback.C | 1 - 28 files changed, 40 insertions(+), 33 deletions(-) diff --git a/tutorials/io/hadd.C b/tutorials/io/hadd.C index 14825bc9b586b..34f3938f718f1 100644 --- a/tutorials/io/hadd.C +++ b/tutorials/io/hadd.C @@ -17,13 +17,14 @@ /// \author Sven A. Schmidt, sven.schmidt@cern.ch, 13.2.2001 -#include #include "TChain.h" #include "TFile.h" #include "TH1.h" #include "TTree.h" #include "TKey.h" -#include "Riostream.h" + +#include +#include TList *FileList; TFile *Target; diff --git a/tutorials/io/tree/clones_event.h b/tutorials/io/tree/clones_event.h index 3f035483e8395..6c6e6834206ba 100644 --- a/tutorials/io/tree/clones_event.h +++ b/tutorials/io/tree/clones_event.h @@ -1,5 +1,6 @@ #include "TTree.h" -#include "Riostream.h" + +#include class TUsrHit:public TObject { public: diff --git a/tutorials/io/tree/printSizes.C b/tutorials/io/tree/printSizes.C index 67e1c03fd2700..54d9fef717f92 100644 --- a/tutorials/io/tree/printSizes.C +++ b/tutorials/io/tree/printSizes.C @@ -41,11 +41,12 @@ #include "TTree.h" #include "TBranch.h" -#include "Riostream.h" #include "TMemFile.h" #include "TKey.h" #include "TBranchRef.h" +#include + Long64_t GetTotalSize(TBranch * b, bool ondisk, bool inclusive); Long64_t GetBasketSize(TBranch * b, bool ondisk, bool inclusive); diff --git a/tutorials/io/tree/tree101_basic.C b/tutorials/io/tree/tree101_basic.C index 194dab771914e..0861e14f37bb1 100644 --- a/tutorials/io/tree/tree101_basic.C +++ b/tutorials/io/tree/tree101_basic.C @@ -8,7 +8,7 @@ /// /// \author Rene Brun -#include "Riostream.h" +#include void tree101_basic() { diff --git a/tutorials/io/tree/tree103_tree.C b/tutorials/io/tree/tree103_tree.C index 1e6df13d16595..1cc998d965694 100644 --- a/tutorials/io/tree/tree103_tree.C +++ b/tutorials/io/tree/tree103_tree.C @@ -44,7 +44,7 @@ #include #include -#include +#include //class Det : public TObject { class Det { // each detector gives an energy and time signal diff --git a/tutorials/io/tree/tree130_jets.C b/tutorials/io/tree/tree130_jets.C index 250c70138b6e0..922f75875a521 100644 --- a/tutorials/io/tree/tree130_jets.C +++ b/tutorials/io/tree/tree130_jets.C @@ -24,8 +24,8 @@ #include "TROOT.h" #include "TSystem.h" #include "JetEvent.h" -#include "Riostream.h" +#include void write(Int_t nev=100) { diff --git a/tutorials/io/xml/DOMParsePerson.C b/tutorials/io/xml/DOMParsePerson.C index 3866fc201f7f2..2ef94eb30fb36 100644 --- a/tutorials/io/xml/DOMParsePerson.C +++ b/tutorials/io/xml/DOMParsePerson.C @@ -19,12 +19,12 @@ /// \author Sergey Linev -#include #include #include #include #include +#include class Date { public: diff --git a/tutorials/io/xml/DOMRecursive.C b/tutorials/io/xml/DOMRecursive.C index 727b9fdfb587a..0734b96bae72f 100644 --- a/tutorials/io/xml/DOMRecursive.C +++ b/tutorials/io/xml/DOMRecursive.C @@ -17,12 +17,12 @@ /// /// \author Sergey Linev -#include #include #include #include #include +#include void ParseContext(TXMLNode *node) { diff --git a/tutorials/io/xml/SAXHandler.C b/tutorials/io/xml/SAXHandler.C index 1113e21a9049a..cf31f8be326e5 100644 --- a/tutorials/io/xml/SAXHandler.C +++ b/tutorials/io/xml/SAXHandler.C @@ -18,11 +18,11 @@ /// /// \author Sergey Linev -#include #include #include #include +#include class SaxHandler { public: diff --git a/tutorials/legacy/math/Rolke.C b/tutorials/legacy/math/Rolke.C index eb78e0a322d06..2197a0314d2b2 100644 --- a/tutorials/legacy/math/Rolke.C +++ b/tutorials/legacy/math/Rolke.C @@ -15,7 +15,8 @@ #include "TROOT.h" #include "TSystem.h" #include "TRolke.h" -#include "Riostream.h" + +#include void Rolke() { diff --git a/tutorials/legacy/regexp/regexp.C b/tutorials/legacy/regexp/regexp.C index f38ed6799eb25..fcae88072b9ae 100644 --- a/tutorials/legacy/regexp/regexp.C +++ b/tutorials/legacy/regexp/regexp.C @@ -27,13 +27,12 @@ /// /// \author Eddy Offermann -#include "Riostream.h" #include "TString.h" #include "TPRegexp.h" #include "TClonesArray.h" #include "TObjString.h" - +#include void regexp() { diff --git a/tutorials/legacy/splot/TestSPlot.C b/tutorials/legacy/splot/TestSPlot.C index 846a6b8120973..c0c06d75a7f96 100644 --- a/tutorials/legacy/splot/TestSPlot.C +++ b/tutorials/legacy/splot/TestSPlot.C @@ -28,7 +28,8 @@ #include "TPaveLabel.h" #include "TPad.h" #include "TPaveText.h" -#include "Riostream.h" + +#include void TestSPlot() { diff --git a/tutorials/legacy/thread/threads.C b/tutorials/legacy/thread/threads.C index eaede64053ebb..07c3cc771e20e 100644 --- a/tutorials/legacy/thread/threads.C +++ b/tutorials/legacy/thread/threads.C @@ -16,7 +16,8 @@ /// \author Victor Perevovchikov #include "TThread.h" -#include + +#include void *handle(void *ptr) { diff --git a/tutorials/machine_learning/createData.C b/tutorials/machine_learning/createData.C index 24c1f1db840e4..5b37c7b14b980 100644 --- a/tutorials/machine_learning/createData.C +++ b/tutorials/machine_learning/createData.C @@ -13,13 +13,14 @@ #include "TStyle.h" #include "TFile.h" #include "TRandom.h" -#include "Riostream.h" #include "TCanvas.h" #include "TMatrixD.h" #include "TH2F.h" #include "TLegend.h" #include "TBranch.h" + #include +#include void plot( TString fname = "data.root", TString var0="var0", TString var1="var1" ) { diff --git a/tutorials/math/Legendre.C b/tutorials/math/Legendre.C index 60ac522cf04a5..f5f7d39e0ff28 100644 --- a/tutorials/math/Legendre.C +++ b/tutorials/math/Legendre.C @@ -15,14 +15,13 @@ #include "TF1.h" #include "TCanvas.h" -#include #include "TLegend.h" #include "TLegendEntry.h" #include "Math/IFunction.h" -#include #include "TSystem.h" +#include void Legendre() { diff --git a/tutorials/math/LegendreAssoc.C b/tutorials/math/LegendreAssoc.C index 5a7c387df2a95..ff48499cbc83e 100644 --- a/tutorials/math/LegendreAssoc.C +++ b/tutorials/math/LegendreAssoc.C @@ -25,14 +25,15 @@ #include "TF1.h" #include "TCanvas.h" -#include #include "TLegend.h" #include "TLegendEntry.h" #include "Math/IFunction.h" -#include #include "TSystem.h" +#include +#include + void LegendreAssoc() { std::cout <<"Drawing associate Legendre Polynomials.." << std::endl; diff --git a/tutorials/math/fit/fitpanel_playback.C b/tutorials/math/fit/fitpanel_playback.C index 14cf229f7103d..2326407f60ae7 100644 --- a/tutorials/math/fit/fitpanel_playback.C +++ b/tutorials/math/fit/fitpanel_playback.C @@ -17,7 +17,8 @@ #include "TSystem.h" #include "TSystemFile.h" #include "TRecorder.h" -#include "Riostream.h" + +#include int file_size(const char *filename) { diff --git a/tutorials/math/fit/multidimfit.C b/tutorials/math/fit/multidimfit.C index eded96fc1df77..ae4d07530ea4e 100644 --- a/tutorials/math/fit/multidimfit.C +++ b/tutorials/math/fit/multidimfit.C @@ -8,7 +8,6 @@ /// /// \authors Rene Brun, Christian Holm Christensen -#include "Riostream.h" #include "TROOT.h" #include "TApplication.h" #include "TCanvas.h" @@ -21,6 +20,7 @@ #include "TVectorD.h" #include "TMath.h" +#include //____________________________________________________________________ void makeData(double* x, double& d, double& e) diff --git a/tutorials/math/foam/foam_demo.C b/tutorials/math/foam/foam_demo.C index c23f648c72732..e44cbbbafa151 100644 --- a/tutorials/math/foam/foam_demo.C +++ b/tutorials/math/foam/foam_demo.C @@ -15,7 +15,6 @@ /// \author Stascek Jadach -#include "Riostream.h" #include "TFile.h" #include "TFoam.h" #include "TH1.h" @@ -23,6 +22,8 @@ #include "TFoamIntegrand.h" #include "TRandom3.h" +#include + class TFDISTR: public TFoamIntegrand { public: TFDISTR(){}; diff --git a/tutorials/math/foam/foam_demopers.C b/tutorials/math/foam/foam_demopers.C index 32e0e5ba842fc..f011d7dc6e420 100644 --- a/tutorials/math/foam/foam_demopers.C +++ b/tutorials/math/foam/foam_demopers.C @@ -10,13 +10,13 @@ /// /// \author Stascek Jadach -#include "Riostream.h" #include "TFile.h" #include "TFoam.h" #include "TROOT.h" #include "TSystem.h" #include "TFoamIntegrand.h" +#include Int_t foam_demopers() { diff --git a/tutorials/math/foam/foam_kanwa.C b/tutorials/math/foam/foam_kanwa.C index 5de15eacae6e3..8c27dc48da0a8 100644 --- a/tutorials/math/foam/foam_kanwa.C +++ b/tutorials/math/foam/foam_kanwa.C @@ -11,7 +11,6 @@ /// /// \author Stascek Jadach -#include "Riostream.h" #include "TFoam.h" #include "TCanvas.h" #include "TH2.h" @@ -19,6 +18,8 @@ #include "TFoamIntegrand.h" #include "TRandom3.h" +#include + //_____________________________________________________________________________ Double_t sqr(Double_t x){ return x*x; diff --git a/tutorials/math/matrix/solveLinear.C b/tutorials/math/matrix/solveLinear.C index be5f8467afd82..66369e13d6ecb 100644 --- a/tutorials/math/matrix/solveLinear.C +++ b/tutorials/math/matrix/solveLinear.C @@ -69,7 +69,6 @@ /// /// \author Eddy Offermann -#include "Riostream.h" #include "TMatrixD.h" #include "TVectorD.h" #include "TGraphErrors.h" @@ -77,6 +76,7 @@ #include "TDecompSVD.h" #include "TF1.h" +#include void solveLinear(Double_t eps = 1.e-12) { diff --git a/tutorials/math/pdf/pdf009_Bessel.C b/tutorials/math/pdf/pdf009_Bessel.C index 27a1f9c5d9827..393859ba3db11 100644 --- a/tutorials/math/pdf/pdf009_Bessel.C +++ b/tutorials/math/pdf/pdf009_Bessel.C @@ -21,7 +21,6 @@ #include "TF1.h" #include "TCanvas.h" -#include #include "TLegend.h" #include "TLegendEntry.h" diff --git a/tutorials/math/pdf/pdf011_Student.C b/tutorials/math/pdf/pdf011_Student.C index c054402413b96..0f85c709ef156 100644 --- a/tutorials/math/pdf/pdf011_Student.C +++ b/tutorials/math/pdf/pdf011_Student.C @@ -11,7 +11,6 @@ #include "TMath.h" #include "TF1.h" #include "TCanvas.h" -#include #include "TLegend.h" #include "TLegendEntry.h" diff --git a/tutorials/math/quadp/Quad.cxx b/tutorials/math/quadp/Quad.cxx index 2b530ff7ee027..483708e51594d 100644 --- a/tutorials/math/quadp/Quad.cxx +++ b/tutorials/math/quadp/Quad.cxx @@ -1,7 +1,8 @@ -#include -#include "Riostream.h" #include "Quad.h" +#include +#include + Quad::Quad(Float_t a,Float_t b,Float_t c) { fA = a; diff --git a/tutorials/math/quadp/portfolio.C b/tutorials/math/quadp/portfolio.C index 57b67511d909a..073d8c4ae4918 100644 --- a/tutorials/math/quadp/portfolio.C +++ b/tutorials/math/quadp/portfolio.C @@ -119,7 +119,6 @@ /// /// \author Eddy Offermann -#include "Riostream.h" #include "TCanvas.h" #include "TFile.h" #include "TMath.h" @@ -136,6 +135,8 @@ #include "TQpProbDens.h" #include "TGondzioSolver.h" +#include + const Int_t nrStocks = 10; static const Char_t *stocks[] = {"GE","SUNW","QCOM","BRCM","TYC","IBM","AMAT","C","PFE","HD"}; diff --git a/tutorials/visualisation/eve/SplitGLView.C b/tutorials/visualisation/eve/SplitGLView.C index f529f36ea17e6..71beecc3e41ad 100644 --- a/tutorials/visualisation/eve/SplitGLView.C +++ b/tutorials/visualisation/eve/SplitGLView.C @@ -23,7 +23,6 @@ #include "TGLLogicalShape.h" #include "HelpText.h" #include "TClass.h" -#include "Riostream.h" #include "TEnv.h" #include "TGListTree.h" #include "TOrdCollection.h" diff --git a/tutorials/visualisation/gui/guitest_playback.C b/tutorials/visualisation/gui/guitest_playback.C index f6c12f014a077..5b5f3e46f73c3 100644 --- a/tutorials/visualisation/gui/guitest_playback.C +++ b/tutorials/visualisation/gui/guitest_playback.C @@ -11,7 +11,6 @@ #include "TSystem.h" #include "TSystemFile.h" #include "TRecorder.h" -#include "Riostream.h" // count characters in the file, skipping cr/lf Int_t file_size(const char *filename) From 4759591c839c126b6472b4ba9c0131416798527a Mon Sep 17 00:00:00 2001 From: ferdymercury Date: Mon, 7 Sep 2026 15:14:27 +0200 Subject: [PATCH 2/3] [test] do not rely on obsolete Riostream header --- test/MainEvent.cxx | 6 +++--- test/QpRandomDriver.cxx | 6 +++--- test/TBench.cxx | 3 ++- test/TestVectors.cxx | 2 +- test/dt_RunDrawTest.C | 5 ++--- test/guiviewer.cxx | 1 - test/stressFit.cxx | 5 +++-- test/stressHistoFit.cxx | 4 +++- test/stressHistogram.cxx | 10 +++++----- test/tcollex.cxx | 4 +--- test/vlazy.cxx | 2 +- 11 files changed, 24 insertions(+), 24 deletions(-) diff --git a/test/MainEvent.cxx b/test/MainEvent.cxx index 5a51365c4d776..ff32a99dfbe0c 100644 --- a/test/MainEvent.cxx +++ b/test/MainEvent.cxx @@ -91,9 +91,6 @@ // //////////////////////////////////////////////////////////////////////// -#include - -#include "Riostream.h" #include "TROOT.h" #include "TFile.h" #include "TRandom.h" @@ -105,6 +102,9 @@ #include "Event.h" +#include +#include + constexpr int defaultComp = 1; //////////////////////////////////////////////////////////////////////////////// diff --git a/test/QpRandomDriver.cxx b/test/QpRandomDriver.cxx index b7e820e672454..b8094ca069413 100644 --- a/test/QpRandomDriver.cxx +++ b/test/QpRandomDriver.cxx @@ -1,11 +1,11 @@ -#include -#include "Riostream.h" - #include "TQpDataDens.h" #include "TQpVar.h" #include "TQpProbDens.h" #include "TGondzioSolver.h" +#include +#include + Bool_t SolutionMatches(TQpVar *vars,TQpVar *soln,TQpVar *temp,Double_t tol); int main(int argc,char *argv[]) diff --git a/test/TBench.cxx b/test/TBench.cxx index cd55612d96b28..92c71ae80a18a 100644 --- a/test/TBench.cxx +++ b/test/TBench.cxx @@ -8,7 +8,8 @@ #include "TClass.h" //the next include must be the last one on systems like Windows/NT #include "TBench.h" -#include "Riostream.h" + +#include THit s_hit; #ifdef R__HPUX diff --git a/test/TestVectors.cxx b/test/TestVectors.cxx index a1c6ea9713412..fa18ef8360826 100644 --- a/test/TestVectors.cxx +++ b/test/TestVectors.cxx @@ -2,12 +2,12 @@ // Author: Peter Malzacher 19/06/99 #ifndef __CLING__ -#include #include #include #include #include #include + #include #endif diff --git a/test/dt_RunDrawTest.C b/test/dt_RunDrawTest.C index 6638688a7f223..1c5f6676077d1 100644 --- a/test/dt_RunDrawTest.C +++ b/test/dt_RunDrawTest.C @@ -5,13 +5,12 @@ #include "TKey.h" #include "TChain.h" #include "TSystem.h" - #include "TBranchElement.h" -#include "Riostream.h" - #include "dt_DrawTest.C" +#include + Bool_t gInteractiveTest = kTRUE; Int_t gQuietLevel = 0; diff --git a/test/guiviewer.cxx b/test/guiviewer.cxx index 6a2d8b7e3d520..994436a2acc18 100644 --- a/test/guiviewer.cxx +++ b/test/guiviewer.cxx @@ -23,7 +23,6 @@ #include "TRandom.h" #include "TGDoubleSlider.h" #include "TGaxis.h" -#include "Riostream.h" Viewer::Viewer(const TGWindow *win) : TGMainFrame(win,500,500) diff --git a/test/stressFit.cxx b/test/stressFit.cxx index c52997a7c0234..3ee0d2f4c0edb 100644 --- a/test/stressFit.cxx +++ b/test/stressFit.cxx @@ -53,13 +53,11 @@ // // //*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*_*// -#include #include "TSystem.h" #include "TROOT.h" #include "TBenchmark.h" #include "TMath.h" #include "TStopwatch.h" -#include "Riostream.h" #include "TVectorD.h" #include "TMatrixD.h" #include "snprintf.h" @@ -70,6 +68,9 @@ #include "Math/MinimizerOptions.h" #include "Math/Minimizer.h" +#include +#include + Int_t stressFit(const char *type = "Minuit", const char *algo = "Migrad", Int_t N = 2000); Int_t gVerbose = -1; Double_t gToleranceMult = 1.e-3; diff --git a/test/stressHistoFit.cxx b/test/stressHistoFit.cxx index db33e8ef91b6d..b6f6bfdefc259 100644 --- a/test/stressHistoFit.cxx +++ b/test/stressHistoFit.cxx @@ -130,7 +130,9 @@ extern "C" { #endif #endif -#include "Riostream.h" +#include +#include +#include using std::string, std::vector, std::cout, std::endl; diff --git a/test/stressHistogram.cxx b/test/stressHistogram.cxx index 56f7d3da76f5d..b05834526e081 100644 --- a/test/stressHistogram.cxx +++ b/test/stressHistogram.cxx @@ -60,9 +60,6 @@ //*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*// -#include -#include - #include "TH2.h" #include "TH3.h" #include "TH2.h" @@ -85,17 +82,20 @@ #include "TApplication.h" #include "TBenchmark.h" -#include "Riostream.h" #include "TMath.h" #include "TRandom2.h" #include "TFile.h" #include "TClass.h" #include "THashList.h" - #include "TROOT.h" + #include #include #include +#include +#include +#include +#include #ifdef __CLING__ const auto tmp_root_file_name = "tmp_hist_interpreted.root"; diff --git a/test/tcollex.cxx b/test/tcollex.cxx index 1d75c205bdf95..304f334bc00a4 100644 --- a/test/tcollex.cxx +++ b/test/tcollex.cxx @@ -1,9 +1,6 @@ // @(#)root/test:$Id$ // Author: Fons Rademakers 19/08/96 -#include - -#include "Riostream.h" #include "TString.h" #include "TObjString.h" #include "TSortedList.h" @@ -13,6 +10,7 @@ #include "TBtree.h" #include "TStopwatch.h" +#include // To focus on basic collection protocol, this sample program uses // simple classes inheriting from TObject. One class, TObjString, is a diff --git a/test/vlazy.cxx b/test/vlazy.cxx index 6806a73178303..cfac0396a7659 100644 --- a/test/vlazy.cxx +++ b/test/vlazy.cxx @@ -13,8 +13,8 @@ #include "TStopwatch.h" #include "TMatrix.h" #include "TMatrixFLazy.h" -#include "Riostream.h" +#include class do_downsample : public TElementPosActionF { private: From cb7d60e006bd05bb715da97b49c32afd2e2bd758 Mon Sep 17 00:00:00 2001 From: ferdymercury Date: Tue, 8 Sep 2026 07:57:39 +0200 Subject: [PATCH 3/3] [nfc] sort C++ std includes alphabetically as suggested by jblomer Co-authored-by: ferdymercury --- test/stressHistoFit.cxx | 3 ++- test/stressHistogram.cxx | 4 ++-- tutorials/machine_learning/createData.C | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/test/stressHistoFit.cxx b/test/stressHistoFit.cxx index b6f6bfdefc259..59fb68d19cb26 100644 --- a/test/stressHistoFit.cxx +++ b/test/stressHistoFit.cxx @@ -130,9 +130,10 @@ extern "C" { #endif #endif +#include #include #include -#include + using std::string, std::vector, std::cout, std::endl; diff --git a/test/stressHistogram.cxx b/test/stressHistogram.cxx index b05834526e081..e3f4e6b9f22cf 100644 --- a/test/stressHistogram.cxx +++ b/test/stressHistogram.cxx @@ -90,11 +90,11 @@ #include "TROOT.h" #include -#include #include -#include #include #include +#include +#include #include #ifdef __CLING__ diff --git a/tutorials/machine_learning/createData.C b/tutorials/machine_learning/createData.C index 5b37c7b14b980..aeb2ebd41db1b 100644 --- a/tutorials/machine_learning/createData.C +++ b/tutorials/machine_learning/createData.C @@ -19,8 +19,8 @@ #include "TLegend.h" #include "TBranch.h" -#include #include +#include void plot( TString fname = "data.root", TString var0="var0", TString var1="var1" ) {