14from ROOT 
import TFile, TNtuple, TROOT
 
   20print(
'opening file %s ...' % ifn)
 
   21infile = open( ifn, 
'r' )
 
   24labels = lines[1].split()
 
   26print(
'writing file %s ...' % ofn)
 
   27outfile = 
TFile( ofn, 
'RECREATE', 
'ROOT file with an NTuple' )
 
   28ntuple  = 
TNtuple( 
'ntuple', title, 
':'.join( labels ) )
 
   32    row = map( float, words )
 
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 simple TTree restricted to a list of float variables only.