Hi Steve, In the current implementation of TClonesArray, all objects must be of identical length. You can have something like char[20]; as data member of a class in a TClonesArray and then use the function strcmp in TTree::Draw expressions. I am now developing an important extension to TClonesArray that will permit - variable length arrays of basic types - variable length arrays of pointers referencing another class. Rene Brun Steve Lautenschlager wrote: > > Hello, > > I have an object with the following data members: > > 1. TString *Name -- this uniquely identifies the event. An alphanumeric name > in my case is better than just an integer identifier. > > 2. TClonesArray *Array -- large set of data for the event > > I want to create a Tree in which I can search for a particular name and then > load the TClonesArray for that event. > > As I understand, a TString cannot be stored properly in split mode. But I > don't want to read the entire object when all I want to do is check the name > to see if it is the event of interest. Is it possible to load only select > branches when an object has been stored in non-split mode? Is there another > way that this is generally implemented? > > Thanks, > Steve > ________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:25 MET