Re: [ROOT] Extending TRint

From: Valeri Fine (Faine) (fine@bnl.gov)
Date: Wed Dec 20 2000 - 20:42:03 MET


> > I am currently working on an command line interface for the MINOS
> > experiement. I would like to provide users an interactive way to setup,
> > run, and examine reconstruction and analysis jobs. For this I need to
> > accept certain "MINOS specific" commands from the terminal, but would also
> > like to give the users full access to root for histogram plotting etc.
> > etc.
> > 
> > One way I thought to do this would be to create a derived class from TRint
> > and replace the HandleTermInput method. This basically works, but is
> 
> Hi Mark,
> 
> Instead of deriving TRint, maybe you can try to provided those extra features
> via a typical C++ addon library (for which you provide a cint dictionary created
> by rootcint).
> 
> Since you wanted this library to always be available you can (for example)
> just link a new executable based on $ROOTSYS/src/rmain.cxx (like you probably)
> and making sure you link against the library and the object file of the 
> dictionary.  (i.e g++ ... minosDict.o rmain.o -L ......)

For this particular case the user library can be loaded within the custom "rootlogon.C" macro
This way no change within ROOT binary / source is required.

               Valeri



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:40 MET