Event.cxx and default constructor requirement

Hello!

Constructor in Event example have the embedded pointer:
fgTracks = new TClonesArray(“Track”, 1000),
that, I think, conflicts with the default constructor requirement about allocation any space for embedded pointer objects.

Where is my logic mistake ?

thanks

Hi,

Note that the complete instruction is

and that fgTracks is static. This means that the TClonesArray allocation is done once and only once per process. This is a trick to insure re-use of the same memory/object (for the TClonesArray) for all the event objects.

Cheers,
Philippe.