Hi,
I am experiencing issues while trying to access data stored in Ttree.
I am using Loop function in makeClass. My Ttree consists of:
// Declaration of leaf types
Int_t info_iev;
Int_t info_len1;
Int_t info_len2;
Int_t info_len3;
Int_t info_len4;
Int_t info_loop;
ULong64_t info_trigTime;
Double_t info_xscale[4];
Double_t info_yscale[4];
Double_t info_yoffset[4];
//Float_t info_timer1;
//Float_t info_timer2;
Short_t y1[20002]; //[len1]
Short_t y2[0]; //[len2]
Short_t y3[20002]; //[len3]
Short_t y4[0]; //[len4]
Int_t debug;
Int_t fMode;
when i try to access data, i get the right values for all but info_xscale and info_yscale.
The two arrays return the same incorrect value everytime. I am trying to access these arrays with the following code:
for (Long64_t jentry=1; jentry<nentries;jentry++)
{
Long64_t ientry = LoadTree(jentry);
if (ientry < 0) break;
nb = fChain->GetEntry(jentry); nbytes += nb;
fChain->Show(jentry);
for (int i=0; i<4; i++) {
cout<<info_xscale[i]<<"\n";
}
when creating a tree I set the problematic branch like this:
T2c->Branch("info", &info, "iev/I:len1/I:len2/I:len3/I:len4/I:loop/I:trigTime/l:xscale[4]/D:yscale[4]/D:yoffset[4]/D");
When using fChain->Show(jentry) function I get the output that has correct values for all leafs. the problem only occurs when trying to access individual array od info_xscale and info_yscale.
I assume the problem is in how I access these arrays, since the Tree seems to be initialized correctly.
I would appriciate any advice on how to approach these problem.
Thank you in advance.
_ROOT Version: 6.28/00
Platform: Not Provided
Compiler: Not Provided