Introduction
|
|
Opening files
|
Opening and navigating files in Uproot isn’t that different from doing so in ROOT.
Use .keys() to see the contents of a file.
Use the form file['key'] to access an object inside a file.
|
Trees, Branches, and Events
|
TTrees are tables of data.
Trees are made of branches, which are columns in the table.
Each row represents an event.
|
Histograms
|
Use the bins and/or range parameters to improve histogram binning.
Make sure your axes are labeled.
Jagged arrays must be flattened before histogramming.
|
Columnar Analysis
|
Selections are created by comparisons on arrays and are represented by masks (arrays of Boolean values).
Selections are applied by acting like a mask is an array index.
Avoid for loops whenever possible in analysis (especially in Python).
|
Getting Physics-Relevant Information
|
|
Advanced topic: Fitting (optional)
|
|
Further resources
|
|