Logo ROOT  
Reference Guide
pyroot Directory Reference
Directory dependency graph for pyroot:

Files

file  demo.py [code]
 To run, do "python <path-to>/demo.py".
 
file  demoshelp.py [code]
  View in nbviewer Open in SWAN
Display demo help.
 
file  DynamicSlice.py [code]
  View in nbviewer Open in SWAN
Example of function called when a mouse event occurs in a pad.
 
file  fillrandom.py [code]
  View in nbviewer Open in SWAN
FillRandom example
 
file  fit1.py [code]
  View in nbviewer Open in SWAN
Fit example.
 
file  fit1_py.py [code]
 
file  formula1.py [code]
  View in nbviewer Open in SWAN
TF1 example.
 
file  geometry.py [code]
  View in nbviewer Open in SWAN
Geometry
 
file  gerrors.py [code]
  View in nbviewer Open in SWAN
A Simple Graph with error bars
 
file  graph.py [code]
  View in nbviewer Open in SWAN
A Simple Graph Example
 
file  gui_ex.py [code]
 A Simple GUI Example.
 
file  h1ReadAndDraw.py [code]
  View in nbviewer Open in SWAN
A Simple histogram drawing example
 
file  hsimple.py [code]
  View in nbviewer Open in SWAN
This program creates :
 
file  hsum.py [code]
  View in nbviewer Open in SWAN
Simple example illustrating how to use the C++ interpreter
 
file  mrt.py [code]
  View in nbviewer Open in SWAN
Build ROOT Ntuple from other source.
 
file  na49geomfile.py [code]
 Before executing this macro, the file makegeometry.C must have been executed.
 
file  na49view.py [code]
 This macro generates two views of the NA49 detector.
 
file  na49visible.py [code]
 Set visibility attributes for the NA49 geometry Set Shape attributes.
 
file  ntuple1.py [code]
  View in nbviewer Open in SWAN
Ntuple drawing example.
 
file  numberEntry.py [code]
 Example frame with one box where the user can increase or decrease a number and the shown value will be updated accordingly.
 
file  parse_CSV_file_with_TTree_ReadStream.py [code]
 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 [code]
  View in nbviewer Open in SWAN
This tutorial illustrates the conversion of STL vectors and TVec to numpy arrays without copying the data.
 
file  pyroot002_pythonizationDecorator.py [code]
  View in nbviewer Open in SWAN
This tutorial shows how to use the @pythonization decorator to add extra behaviour to C++ user classes that are used from Python via PyROOT.
 
file  pyroot003_prettyPrinting.py [code]
  View in nbviewer Open in SWAN
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 [code]
  View in nbviewer Open in SWAN
This tutorial illustrates how PyROOT supports declaring C++ callables from Python callables making them, for example, usable with RDataFrame.
 
file  pyroot005_tfile_context_manager.py [code]
  View in nbviewer Open in SWAN

 
file  pyroot006_tcontext_context_manager.py [code]
  View in nbviewer Open in SWAN

 
file  ratioplot.py [code]
  View in nbviewer Open in SWAN
Display two histograms and their ratio.
 
file  shapes.py [code]
  View in nbviewer Open in SWAN
Draw the geometry using the x3d viewver.
 
file  staff.py [code]
  View in nbviewer Open in SWAN
example of macro to read data from an ascii file and create a root file with a Tree.
 
file  surfaces.py [code]
  View in nbviewer Open in SWAN
Surfaces example
 
file  tornado.py [code]
 Tornado example.
 
file  zdemo.py [code]
  View in nbviewer Open in SWAN
This macro is an example of graphs in log scales with annotations.