Dear rooters,
after having created a TTree with a 2-dimentional array, I am not able to retrieve the data I have stored... In the attached file you can find the macro I use to write the array in the tree, and then the tree in the file. Then, in order to retrieve it, I tried in a way similar to the ione used in the case of simple "elements":
root [1] TFile *file = new TFile("outArrayS.root","READ") root [2] TTree *tree = (TTree*)file->Get("T") root [3] Short_t a[1500] root [4] tree->SetBranchAddress("a",&a) root [5] tree->GetEntry(0)
but then, the objects I read are different from those I expected. For example, the 366th entry of array a should be (I think...) equal to 8 (the value of bincontent[367] in the macro).
Could you help me in understanding what I am doing wrong?
Thanks a lot.
Best Regards,
chiara
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:01 MET