Newbie question: How to store arrays (in an NTuple)?

Robert Casties (casties@mail.desy.de)
Wed, 26 Feb 1997 14:56:24 +0100 (MET)


Hello!

A beginners question: How do I store and process arrays (16x16 Bytes) as
event-data?

I would like to store one array per event in an NTuple or such. I want to
do some manipulation on the data as computing means, subtracting pedestals
and eliminating bad events. Afterwards I need to do some histograms and
statistics.

Can I use the NTuple-class for my purpose? I have seen that it is possible
to allocate arbitrary variables and store the data via pointer. But how do
I get the data back out? Or do I have to write my own TTree subclass and
which methods does it have to have?

Hope for some advice

Robert