[ROOT] TTree::MakeSelector and TClonesArray

From: Stefan Steinbeck (stefans@mail.desy.de)
Date: Wed Apr 25 2001 - 18:12:08 MEST


Dear Root-ers,

for the analysis of a tree (containing some TClonesArray's) I would like
to use the class, which is created by the TTree::MakeSelector method.
It is somehow not possible for me to access members of the TClonesArray,
which the GetEntry method.
For example assume a tree 'mytree' which a TClonesArray  'myparticle' and
a member 'momentum'. To access the first entry of 'momentum',  I'll tried
to following:

	b_myparticle_momentum->GetEntry(1);
	cout <<	myparticle_momentum[0] << endl;

Can you tell me the correct way?

Thanks a lot for your help,
	Stefan



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:43 MET