Selected examples illustrating how to use ROOT's Python interface: PyROOT.
Files | |
file | demo.py |
To run, do an "execfile( '<path-to>/demo.py' )" or "python <path-to>/demo.py". | |
file | demoshelp.py |
Display demo help. | |
file | DynamicSlice.py |
Example of function called when a mouse event occurs in a pad. | |
file | fillrandom.py |
FillRandom example | |
file | fit1.py |
Fit example. | |
file | formula1.py |
TF1 example. | |
file | geometry.py |
Geometry | |
file | gerrors.py |
A Simple Graph with error bars | |
file | graph.py |
A Simple Graph Example | |
file | gui_ex.py |
A Simple GUI Example. | |
file | h1draw.py |
A Simple histogram drawing example | |
file | hsimple.py |
This program creates : | |
file | hsum.py |
Simple example illustrating how to use the C++ interpreter | |
file | mrt.py |
Build ROOT Ntuple from other source. | |
file | multifit.py |
Example showing how to fit in a sub-range of an histogram An histogram is created and filled with the bin contents and errors defined in the table below. | |
file | na49geomfile.py |
Before executing this macro, the file makegeometry.C must have been executed. | |
file | na49view.py |
This macro generates two views of the NA49 detector. | |
file | na49visible.py |
Set visibility attributes for the NA49 geometry Set Shape attributes. | |
file | ntuple1.py |
Ntuple drawing example. | |
file | numberEntry.py |
file | parse_CSV_file_with_TTree_ReadStream.py |
This function provides an example of how one might massage a csv data file to read into a ROOT TTree via TTree::ReadStream. | |
file | pyroot001_arrayInterface.py |
This tutorial illustrates the conversion of STL vectors and TVec to numpy arrays without copying the data. | |
file | pyroot002_TTreeAsMatrix.py |
This tutorial shows how a TTree can be quickly converted to a numpy array or a pandas.DataFrame. | |
file | pyroot003_prettyPrinting.py |
This tutorial illustrates the pretty printing feature of PyROOT, which reveals the content of the object if a string representation is requested, e.g., by Python's print statement. | |
file | pyroot004_NumbaDeclare.py |
This tutorial illustrates how PyROOT supports declaring C++ callables from Python callables making them, for example, usable with RDataFrame. | |
file | ratioplot.py |
Display two histograms and their ratio. | |
file | shapes.py |
Draw the geometry using the x3d viewver. | |
file | staff.py |
example of macro to read data from an ascii file and create a root file with a Tree. | |
file | surfaces.py |
Surfaces example | |
file | tornado.py |
Tornado example. | |
file | zdemo.py |
This macro is an example of graphs in log scales with annotations. | |