Data Structure Question - Storing Data per Event

Hi,

I have a problem similar to ohmartn’s, but my case is a little more complicated.

I want to store the output of an acquisition system into a ROOT file; the acquisition can use several cards, each one with its number of channels. The events of each channels are made of several single variables, and one (or more, in the future) array of N samples - N can change at every acquisition.

Right now I am using trees to represent cards, branches to represent channels, and one entry for each event. The array of samples is the last field of the associated struct.

If I understand correctly the above sample, trees are used to represent channels; I need ad additional level to differentiate the cards…

I was thinking about using STL vectors… what do you think about it?

EDIT: I keep looking in the forum… I just found that vectors may be a good idea:
[root.cern.ch/phpBB3/viewtopic.p … ays#p76165](TTree: multiple variable length arrays
I’ll try!