maybe exist other(better) way without serious re-write Event source code ?
We assume a file output.root has branch only from TClonesArray (see above) without information about number of tracks, how draw number of tracks = TClonessArray::GetEntriesFast
T->Draw(" ??? ")
You should make only one top level branch with your event pointer.
In turn, this will create subbranchs with each memeber of your class.
In this way you do not have to specify addresses of each member.
In case of a TClonesArray, you will see as many branches as you have data in your TClonesArray. See example in our standard test example
in $ROOTSYS/test/Event.cxx,MainEvent.cxx.
Use $ROOTSYS/test/Makefile as an example.
For more complex cases we are planning on introducing the @ notation as follow:
When TTree::Draw see fCollection.Something (and fCollection is an STL Collection or a TClonesArray), it plots ‘Something’ for each elements. With the @ notation, when TTree::Draw will see @fCollection.Something it will plots ‘Something’ for the collection itself.