Marco,
Use a TTree instead of TNtuple and proceed, for example, like in
$ROOTSYS/tutorials/tree/tree2.C
Make as many branches as you have vectors and call only
mytree.Fill()
Rene Brun
Marco Calviani wrote:
> Hi list,
> i have a program that read data from a file sequentially filling
> four vectors: after a certain condition is satisfied a routine is
> called to analyze the stored data and produces again four vectors of
> float. I would like to store the result in an ntuple (since i'm only
> using floats) at the end of this routine, after which the initial data
> countinues to be read an the process continues.
>
> In order to perform this operationI cannot use ntuple->Fill(const
> Float_t *x) since it is only 1 vector and i cannot use Int_t
> Fill(Float_t x0,Float_t x1,Float_t x2,Float_t x3,Float_t x4 ,Float_t
> x5,Float_t x6,Float_t x7,Float_t x8,Float_t x9 ,Float_t x10,Float_t
> x11,Float_t x12,Float_t x13,Float_t x14) since they are not vectors.
> I would need something like this:
>
> ntuple->Fill(const Float *x1, const Float *x2, const Float *x3....)
>
> Is it possibile to do it in another way?
> Best regards,
> marco
Received on Wed Jan 10 2007 - 15:42:32 CET
This archive was generated by hypermail 2.2.0 : Wed Jan 10 2007 - 17:50:00 CET