Hi Elena, Why is it confusing? When you do root > .x file.C Root will execute the function named "file" in file.C If you have several functions in the file, you can do root > .L file.C root > somefunction(); where somefunction is one of the functions in file.C same logic with ACLIC. Doing root -b -q file.C is identical to root > .x file.C root > .q Rene Brun On Thu, 9 May 2002, Elena Vataga wrote: > > > Hello, rooters! > > > I have named script fit_l7b0.C: > { > #include "TH1.h" > #include "TH2.h" > #include "TF1.h" > #include "TProfile.h" > > int loop_l7_b0() { > .... > } > > This script runs fine in root. > > When I try to make > root[] .L fit_l7b0.C++ > it creates fit_l7b0_C.so. > > Trying to make > root -b -q fit_l7b0_C.so >& l7b0_loop.LOG > I am getting: > Error: Function loop_l7_b0_C() is not defined in current scope FILE: > LINE:0 > > If I rename my function in loop_l7_b0_C(), this lib runs fine in batch > but I cannot use it from root[] prompt. > A bit confusing.. > Is it a normal behavior? > > > Thank you in advance, > Elena > >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:52 MET