ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Variables
mrt Namespace Reference

Variables

string ifn = 'aptuple.txt'
 
string ofn = 'aptuple.root'
 
tuple infile = open( 'aptuple.txt', 'r' )
 
tuple lines = infile.readlines()
 
list title = lines[0]
 
tuple labels = string.split( lines[1] )
 
tuple outfile = TFile( ofn, 'RECREATE', 'ROOT file with an NTuple' )
 
tuple ntuple = TNtuple( 'ntuple', title, string.join( labels, ':') )
 
tuple words = string.split( line )
 
tuple row = map( float, words )
 

Detailed Description

Build ROOT Ntuple from other source.   
This program reads the `aptuple.txt' file row by row, then creates
the Ntuple by adding row by row.

Variable Documentation

string mrt.ifn = 'aptuple.txt'
tuple mrt.infile = open( 'aptuple.txt', 'r' )
tuple mrt.labels = string.split( lines[1] )
tuple mrt.lines = infile.readlines()
tuple mrt.ntuple = TNtuple( 'ntuple', title, string.join( labels, ':') )

Definition at line 22 of file mrt.py.

string mrt.ofn = 'aptuple.root'

Definition at line 12 of file mrt.py.

Referenced by TQueryResultManager.SaveQuery().

tuple mrt.outfile = TFile( ofn, 'RECREATE', 'ROOT file with an NTuple' )
tuple mrt.row = map( float, words )

Definition at line 26 of file mrt.py.

Referenced by TFITSHDU._release_resources(), RooDataHist.add(), TResponseTable.AddElement(), TUnfold.AddMSparse(), TUnfold.AddRegularisationCondition(), TMVA::MethodANNBase.AddWeightsXMLTo(), assembly(), TMVA::VariablePCATransform.AttachXMLTo(), TTreeSQL.CheckTable(), ClassImp(), TAlien.Command(), RooFitResult.correlation(), RooFitResult.covariance(), TTreeSQL.CreateBranches(), TIndexTable.CreateDescriptor(), TSQLFile.DeleteKeyFromDB(), TGQuartz.DrawFTGlyphIntoPixmap(), TGX11TTF.DrawImage(), TGWin32.DrawImage(), TGTable.ExpandRows(), TTableSorter.FillIndexArray(), TGTable.FindCell(), TResponseTable.FindResponseLocation(), TGTableLayout.FindRowColSizesHomogeneous(), TGTableLayout.FindRowColSizesMultiplyAttached(), TGTableLayout.FindRowColSizesSinglyAttached(), TFITSHDU.GetArrayRow(), TGTable.GetCell(), TAlien.GetColumn(), TTreeSQL.GetColumnIndice(), TGTableLayout.GetDefaultSize(), TTreeSQL.GetEntries(), TSQLFile.GetLocking(), TSQLFile.GetLongString(), TUnfoldDensity.GetLxMinusBias(), TSQLObjectDataPool.GetObjectRow(), TProofServ.GetPriority(), TMySQLServer.GetTableInfo(), TSQLServer.GetTableInfo(), TODBCServer.GetTablesList(), TMySQLServer.GetTablesList(), TSQLServer.GetTablesList(), TFITSHDU.GetTabRealVectorCells(), TFITSHDU.GetTabRealVectorColumn(), TFITSHDU.GetTabStringColumn(), TGSimpleTableInterface.GetValue(), TTreeTableInterface.GetValue(), TTreeTableInterface.GetValueAsString(), gl2psPrintPostScriptPixmap(), TGTable.Init(), TMVA::LDA.Initialize(), RooFitResult.isIdentical(), TGTableLayout.Layout(), TFITSHDU.LoadHDU(), TMultiDimFit.MakeCoefficients(), TEveTrans.MultLeft(), TEveTrans.MultRight(), TMySQLResult.Next(), TPgSQLResult.Next(), TTreeResult.Next(), TOracleResult.Next(), TMatrixTSparseRow< Element >.operator()(), TMatrixTSparseDiag< Element >.operator()(), TMatrixTSparseRow< Element >.operator=(), TTable.Print(), TEveTrans.Print(), TFITSHDU.PrintFullTable(), TMatrixTSparse< Element >.RandomizePD(), TSQLFile.ReadConfigurations(), TMVA::VariablePCATransform.ReadFromXML(), TMVA::VariableDecorrTransform.ReadFromXML(), TSQLFile.ReadSQLClassInfos(), TMVA::Tools.ReadTMatrixDFromXML(), TMVA::VariablePCATransform.ReadTransformationFromStream(), TMVA::VariableDecorrTransform.ReadTransformationFromStream(), TMVA::MethodANNBase.ReadWeightsFromXML(), RooDataHist.reduceEng(), TEveTrans.RotateLF(), RooDataHist.set(), TGText.SetCurrentRow(), TResponseTable.SetResponse(), TGTableLayout.SetRowColSizesInit(), TGTable.ShrinkRows(), RooAbsData.split(), TSQLFile.SQLMaximumValue(), TSQLFile.SQLObjectInfo(), TSQLFile.SQLObjectsInfo(), sqlselect(), TSQLFile.StreamKeysForDirectory(), ROOT::Math::SVector< T, D >.Sub(), TUnfoldSys.SubtractBackground(), TRandom1.TRandom1(), TMVA::Tools.WriteTMatrixDToXML(), TMVA::VariablePCATransform.WriteTransformationToStream(), and TMVA::VariableDecorrTransform.WriteTransformationToStream().

list mrt.title = lines[0]

Definition at line 17 of file mrt.py.

tuple mrt.words = string.split( line )

Definition at line 25 of file mrt.py.