[ROOT] Storing not event related objects in a TTree

From: Ole Streicher (ole.streicher@gmx.de)
Date: Tue Aug 27 2002 - 12:35:05 MEST


Hi!

Sorry for filling the list up with questions ;-)

How can I store objects in a TTree which are not local to an event?
Example: I have a class that stores a set of parameters and a class
that stores the event.

class MyParameter {
 private: 
  int p1[10000];
//...
 ClassDef(MyParameter,1)
};

class MyEvent {
 private:
  MyParameter* par;
  MyTrack *track;
//...
 ClassDef(MyEvent,1)
};

Now, I have two Parameter sets "MyParameter par1, par2;", and I want 
-- based on some algorithm -- to put into my event either a link to
par1 or par2. The problem here is that I want ofcourse not the
complete parameter set to be stored in each event, but each different
parameter set should be stored only once.

How do I do that? I found no option that allows me to distinguish
between data that are stored within each event (like the track in the
example above) and which are stored only once.

Ole



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:05 MET