Re: tutorial: how to create a tree

From: Valery Fine (fine@bnl.gov)
Date: Mon Aug 03 1998 - 00:41:48 MEST


Dear Elemer Nagy

On  2 Aug 98 at 12:19, you wrote:

> I wanted to execute the sample job of Valery Fine
> "creation of a root tree".

  First I'd like to beg a pardon since I am not the author of that 
code but Rene Brun and my name is mentioned there by mistake.
> 
> This program contains statements of
> 
> #include "TROOT.h"
> 
> etc.
> 
> When executing my macro containing these statements,
> it gives the following error:
> 
> Error: source file "TROOT.h" cannot open
> FILE:/afs/fnal.gov/files/home/room3/enagy/root/tutor/./crea_tree.C
> LINE:77 NULL
> 
  This example is NOT a macro. It is a piece of the STAND-ALONE code 
to be compiled with the native compiler and run with no extra ROOT 
executable. 

  This explains the message you got. An interactive ROOT includes all 
ROOT classes pre-compiled. This means one needs no extra "include" to 
define any ROOT class to use it. These include statements must be 
supplied for the "native" compiler only to create "stand-alone"
application (it is useful for the batch processing for example)

> 
> How can/should one use them in a macro?
> 

  The working example of "how to manage the user defined tree" can be 
found under "test" subdirectory of the ROOT destribution kit.

  You may find in there:

    1. Makefile to create:

       1.1. stand_alone code
       1.2. share library to be used within a "normal" ROOT session

    2. Several ROOT macros. All of them  assume the "Event" share 
       library with ROOT dictionary has been created / loaded(see 
       above)


  Please, look this "test" sub-directory up. Very likely it 
answers your questions.

  With my best regards,
                                      Valery
=================================================================
Dr. Valeri Faine (Fine)
    -------------------          Phone: +1 516 344 7806
Brookhaven National Laboratory   FAX  : +1 516 344 4206
Bldg. 510A /STAR                 mailto:fine@bnl.gov
Upton, New York, 11973-5000      http://nicewww.cern.ch/~fine
USA
                                 
Dr. Valery Fine                  Telex : 911621 dubna su
    -----------
LCTA/Joint Inst.for Nuclear Res. Phone : +7 09621 6 40 80
141980 Dubna, Moscow region      Fax   : +7 09621 6 51 45
Russia                           mailto:fine@main1.jinr.dubna.su                              



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