Possible problem ?

From: Nick van Eijndhoven (Nick@phys.uu.nl)
Date: Thu Aug 13 1998 - 11:33:35 MEST


Dear ROOTers,
In setting up some classes for data analysis of events concerning
heavy-ion collisions I wonder about the following :

I have a class Track and a class Jet and my event data consists
of a ROOT Tree in which there is a branch for tracks and a branch
for jets of a certain event.
Both Track and Jet contain a data member float fEnergy
In case I have the libs containing the Track and Jet classes
available in my ROOT environment there clearly is no problem,
since I can just use the Track and Jet member functions to investigate
e.g. the fEnergy of both of them and even plot one against the other.
However, in case I don't have the libs, I would use the MakeCode()
facility to be able to analyse the Tree.
As far as I can see this now gives a problem, since the fEnergy
would be related to both classes. 
Question : Am I right here that the produced code can't work ?
           Or does MakeCode properly take care of the problem ?

Obviously a way out would be to define fTrackEnergy and fJetEnergy,
but as far as I can see this is no solution once one thinks of
(re)using code of other related experiments.

Suggestion : In case MakeCode encounters the same variable name
             in different branches, could then on each additional
             occurence of that variable some suffix be added auto-
             matically be MakeCode ?

In case of the above situation this would result in e.g. :

fEnergy and fEnergy_2

In case the problems I expect in the above are real, the latter
is just a suggestion and in case someone has a better solution
please let me know.      
-- 

                                              Cheers,

                               _/_/      _/    _/   _/_/_/_/    _/   _/
                              _/  _/    _/    _/   _/          _/  _/
                             _/    _/  _/    _/   _/          _/_/
                            _/      _/_/    _/   _/          _/  _/
                           _/        _/    _/   _/_/_/_/    _/    _/


*----------------------------------------------------------------------*
 Dr. Nick van Eijndhoven                Department of Subatomic Physics
 email : nick@phys.uu.nl                Utrecht University / NIKHEF
 tel. +31-30-2532331 (direct)           P.O. Box 80.000
 tel. +31-30-2531492 (secr.)            NL-3508 TA Utrecht
 fax. +31-30-2518689                    The Netherlands
 WWW : http://www.phys.uu.nl/~nick      Office : Ornstein lab. 172
 ----------------------------------------------------------------------
 tel. +41-22-7679751 (direct)           CERN PPE Division / ALICE exp.
 tel. +41-22-7675857 (secr.)            CH-1211 Geneva 23
 fax. +41-22-7679480                    Switzerland
 CERN beep : 13+7294                    Office : B 160 1-012
*----------------------------------------------------------------------*



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:36 MET