[ROOT] Problem Filling a File

From: Jose Caballero (Jose.Caballero@ciemat.es)
Date: Mon Oct 06 2003 - 12:44:23 MEST


Hello:

I work with ROOT 3.05/05 on Linux RedHat

I have a Struct (C Like) similar to

struct ST{

   Int_t number;

   Int_t var1[1000];

   Int_t var2[1000];

   Float_t var3[1000];

   Float_t var4[1000];

} NTUPLE;

And then I define the following Branches:

MyTree->Branch("NumberOfData", &NTUPLE.number, "number/I");

MyTree->Branch("DATA1",         NTUPLE.var1,   "var1[number]/I:var2[number]" );

MyTree->Branch("DATA2",         NTUPLE.var3,   "var3[number]/F:var4[number]" );


When I execute MyTree->Fill(), and I Draw the content of the file, var1 and va2 have the same information, and var3 and var4 have the same information ...

Why? What am I doing wrong?



Thank you very much in advance for your help and patience.
Jose Caballero.



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET