Hi,
I am trying to add data to the leafs of a Branch, without success. Part of my code is the following:
TTree *tree = new TTree(“T”,“bla bla”);
tree->Branch(“ch”,&ch,“chan1/F:chan2:chan3”);
for(int j = 0; j<N; j++){
for(int i = 0; i<M; i++){
…
data[i];
…
} // ends i loop
ch.chan1 = data[0];
tree->Fill();
} // ends j loop
…
I get the correct num of events (lets say j) but all values are at zero.
Thank you in advance for your suggestions.
Loukas