[ROOT] Pointer to element of TClonesArray

From: Stefan Steinbeck (stefans@mail.desy.de)
Date: Thu Feb 15 2001 - 14:20:32 MET


Hello,

I did set up a tree (splitlevel=1) with consist among other members-
subbranches of two TClonesArray's a,b (storing two different particles,
wich one decays into the other). 
Is there a way to set up a pointer (or something equivalent in usage) from
one element of the first TClonesArray a to an element of the other
TClonesArray b? 

In principle the source looks the following way:

class RecoPsi : public TObject{
...
  RecoMu	*mu1,*mu2;		// something like that
...}
class RecoMu : public TObject {
...}
class MuEvent: public TObject {
...
  TClonesArray          *psi;
  TClonesArray		*mu;
...}

Thank you very much in advance for your help!

Best regards,
	Stefan 



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