TTree::Draw with TArrayS

We have a hardware DAQ module whose vendor-provided software creates ROOT files. Inside is a TTree with a TArrayS branch for each waveform. Is it possible to use TTree::Draw to draw the waveform on a canvas? E.g. something like tree->Draw(“tarrays:Iteration$”,“Entry$==1”) (that doesn’t work, it just gives one point at (0,0).)

Thanks.

Hi @jfcaron ,
sorry for the late reply, this slipped through the cracks apparently.

That should be possible (pinging @pcanal for an authoritative reply).
Could you share (part of) the data so we can try it out?

Cheers,
Enrico

I worked around it, so no need. Thanks!

If I remember correctly TArrayS is not handled as a collection by TTree::Draw.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.