17from ROOT
import TFile, TTree, gROOT, addressof
43 f =
TFile(
'staff.root',
'RECREATE' )
44 tree =
TTree(
'T',
'staff data from ascii file' )
45 tree.Branch(
'staff', staff,
'Category/I:Flag:Age:Service:Children:Grade:Step:Hrweek:Cost' )
52 t = list(filter(
lambda x: x,
re.split(
'\s+', line ) ) )
71if __name__ ==
'__main__':
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
A TTree represents a columnar dataset.