Re: [ROOT] TVirtualGeoTrack, TObjArray not defined

From: Andrei Gheata (
Date: Fri Mar 05 2004 - 10:05:01 MET

Hi Kerry,

The error in the include file is fixed. I've also added the possibility 
to create/assign tracks to a parent:
= creation:
   TVirtualGeoTrack* TGeoManager::MakeTrack(Int_t id, Int_t pdg, TObject 
  - this creates a track not assigning a mother and not adding it to the 
list of primaries held by the manager class

= adding as daughter to other track:
  Int_t TVirtualGeoTrack::AddDaughter(TVirtualGeoTrack *other); 
returning the new daughter index.

You will find this in CVS by the end of the day.

LEE, KERRY T. (JSC-SR) (UHCL) wrote:
> Hi Andrei,
> I am using ROOT 4.00/02 and in when I try to use TVirtualGeoTrack the
> compiler complained about TObjArray.  When looking at the TVirtualGeoTrack.h
> code, there is an error in the include list.  Instead of
> #ifndef ROOT_TObject   //Should be ROOT_TObjArray
> #include "TObArray.h"  //missing a j
> #endif
> it should be
> #ifbdef ROOT_TObjArray
> #include "TObjArray.h"
> #endif
> After I changed these two things everything compiled fine.  I looked at
> version 4.00/00 and 3.10/02 code and the bug exists there too.  Easy to miss
> if TObjArray.h is included elsewhere.
> Thanks
> Kerry

This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET