Webpython myScript.py Data.root hist.root • Step 3: open the input le for reading { Once we have the le name, it is time to open the le { ROOT handles interactions with les by using the TFile class { Open the le using: inFile = ROOT.TFile.Open(inFileName ,"READ") 2 Web#include "TROOT.h" #include "TSystem.h" #include "TH1F.h" #include "TF1.h" #include "RooHistPdf.h" #include "RooRealVar.h" #include "RooPlot.h" #include "RooDataHist ...
ROOT: Tutorials
WebAug 16, 2012 · I tried to set SetLogy () in TH1F histogram defined as TH1F *histo_trkpt5_TileBeta = new TH1F ("histo_trkpt5_TileBeta","histo_trkpt5_TileBeta",100,0,2); chain->Draw ("trkpt5_TileBeta>>histo_trkpt5_TileBeta",""); histo_trkpt5_TileBeta ->Write (); so that the log scale is applied to the histogram and as such saved to the tree in a file. WebWhen plotting an histogram or a graph the logarithmic scale can be set using: gPad->SetLogx (1); set the logarithmic scale on the X axis gPad->SetLogy (1); set the logarithmic scale on the Y axis When the … chorll
ROOT Users Guide - Department of Physics
WebMar 30, 2005 · brun March 30, 2005, 10:22am #2. You should set the Log option in the subpad, not in the canvas, ie. instead of: c -> Divide (1,2) //canvas divided into 2parts. c … WebIf you have write access to the tutorials directory, the new files will be created in the tutorials directory, otherwise they will be created in the user directory. You can start by executing the standard ROOT demos with a session like: root > .x demos.C or root > .x $ROOTSYS/tutorials/demos.C Webplotted in the log scale. However if I draw the histograms first and then try to switch to log scale (either by issuing gPad->SetLogy () or simply by right clicking the TPad and choosing log scale in the menu), I get the error: Error in : log scale requested with zero or negative argument (0.000000) chorlito carambolo