Re: ascii files

From: Vincent Roberfroid <roberfroid_at_fynu.ucl.ac.be>
Date: Tue, 28 Jun 2005 10:08:02 +0200


Rene,

yes indeed TTree has similar methods.
My intention was not to include a new class in the root package, but to propose an
other tool to handle simple ascii file.
I needed some functionnalities such as get a TVector from a row or from a column, a
TGraph from 2 columns, a TTree from some columns, sort all the columns from an other one,... So basically stuffs we usually do on small sample of data and which are not included
(or not directly) in TTree.

Regards,
Vincent

Rene Brun wrote:

> Vincent,
>
> I do not want to be seen as a skizophenic guy refusing to include your
> class, but what you describe in this mail is the very basic of Trees.
> With TTree::Draw you can
> -do calculations with columns
> -select lines on the basis of condition related to a column (or columns)
>
> Rene Brun
>
> On Tue, 28 Jun 2005, Vincent Roberfroid wrote:
>
>> Dear Rene, thank you for the information. I have other interesting
>> functionalities, like the calculation with columns,
>> the selection of lines on the basis of condition related to a column,
>> the removing or the addition of a column...
>> in short, the functionalities present in spreadsheves (such as
>> excel). These functionalities are found indeed in one or other root
>> class
>> but are not joined together, which obliges conversion regularly.
>> Regards,
>> Vincent
>>
>> Rene Brun wrote:
>>
>>> Hi Vincent,
>>>
>>> Note that most of the functionality in your class is already available
>>> via
>>> TGraph(const char *filename, const char *format="%lg %lg",
>>> Option_t *option="");
>>> TNtuple::ReadFile(const char *filename, const char
>>> *branchDescriptor="")
>>> TTree::ReadFile(const char *filename, const char
>>> *branchDescriptor="")
>>>
>>> see also the TGraphErrors constructors
>>>
>>>> From the Tree/TNtuple you can select any of the columns (or
>>>> expressions
>>>
>>>
>>> of columns) and in addition have selections on the rows.
>>>
>>>
>>> Rene Brun
>>>
>>>
>>> On Thu, 23 Jun 2005, Vincent Roberfroid wrote:
>>>
>>>> Hi David,
>>>>
>>>> I created a class to handle simple ascii files with root.
>>>> You can use it if you want.
>>>> http://www.fynu.ucl.ac.be/users/v.roberfroid/work/stuffs/matrixRoot_html/matrixRoot.html
>>>> This documentation must be updated. The code works with all version
>>>> of root > 3.02.
>>>> I put in attachment the code source. Regards,
>>>> Vincent
>>>>
>>>
>>>
>>
>
>
Received on Tue Jun 28 2005 - 10:08:10 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:09 MET