TNtuple (or TTree?) and vector fill

From: Marco Calviani <marco.calviani_at_gmail.com>
Date: Wed, 10 Jan 2007 14:27:46 +0100


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 - 14:36:12 CET

This archive was generated by hypermail 2.2.0 : Wed Jan 10 2007 - 17:50:00 CET