Hi Antonio,
On Mon, 2008-05-12 at 10:35 +0200, Antonio Bulgheroni wrote:
> Dear all,
>
> I would like to draw your attention to a new feature I'd like to
> have. In the everyday life, we often have experimental results in the
> form of an ASCII file with data in columns. To put these data into a
> ROOT tree is enough to write myTree->ReadFile(...) but this requires
> to remember by heart the data structure of the file. I think that
> having a graphical import data wizard, showing the data structure of
> the ASCII file and allowing the user to select the name and the type
> for each column would help a lot.
Perhaps something like the attached? It's not that fancy - it doesn't show a "preview" of the file or anything, but it will deduce the number of columns, whether there's a branch descriptor in the beginning or not. The actual reading is done by TTree::ReadFile.
Run as
Root> .L ImportGui.C+ Root> test1() Root> test2()
Check the code for more information.
Yours,
-- ___ | Christian Holm Christensen |_| | ------------------------------------------------------------- | | Address: Sankt Hansgade 23, 1. th. Phone: (+45) 35 35 96 91 _| DK-2200 Copenhagen N Cell: (+45) 24 61 85 91 _| Denmark Office: (+45) 353 25 447 ____| Email: cholm_at_nbi.dk Web: www.nbi.dk/~cholm | |Received on Tue May 13 2008 - 09:46:14 CEST
- text/x-c++src attachment: ImportGui.C
This archive was generated by hypermail 2.2.0 : Tue May 13 2008 - 17:50:01 CEST