Hi All,
I have do create a bunch of plots and each set is made from a separate directory. I wrote a script to edit the macro which creates the plots and I edited the macro to save the correct plots so I can run this in batch mode.
when I run from the command line I use:
root -q -b …/…/llrPlots.r+
and get
Compiled on 7 March 2007 for linux with thread support.
CINT/ROOT C/C++ Interpreter version 5.15.169, Mar 14 2005
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0]
Processing …/…/llrPlots.r+…
Info in TUnixSystem::ACLiC: creating shared library /home/rep_note/fast/./…/…/llrPlots_r.so
In file included from /home/rep_note/fast/./…/…/llrPlots.r:10,
from /home/rep_note/fast/./…/…/fileT3m8Uy.h:32,
from /home/rep_note/fast/./…/…/fileT3m8Uy.cxx:16:
/home/rep_note/fast/./…/…/macros.C: In function `double computePValue(TH1F*, double)’:
/home/rep_note/fast/./…/…/macros.C:662: warning: unused variable ‘nBins’
/home/rep_note/fast/./…/…/macros.C: At global scope:
/home/rep_note/fast/./…/…/macros.C:131: warning: unused parameter ‘nsigmas’
then runs like a charm.
but when i call from the shell script using root.exe -b -q …/…/llrPlots.r+
I get
Compiled on 7 March 2007 for linux with thread support.
CINT/ROOT C/C++ Interpreter version 5.15.169, Mar 14 2005
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0]
Processing …/…//llrPlots.r+…
Info in TUnixSystem::ACLiC: creating shared library /home/rep_note/fast/./…/…//llrPlots_r.so
Warning: link requested for unknown srcfile /home/rep_note/fast/./…/… FILE:/home/rep_note/fast/./…/…/fileFTV29Mlinkdef.h LINE:10
Syntax error: #pragma link FILE:/home/rep_note/fast/./…/…/fileFTV29Mlinkdef.h LINE:10
Warning: Error occured during reading source files
Warning: Error occured during dictionary source generation
!!!Removing /home/rep_note/fast/./…/…/fileFFoUDh.cxx /home/rep_note/fast/./…/…/fileFFoUDh.h !!!
Error: rootcint: error loading headers…
Error in : Dictionary generation failed!
Info in : Invoking compiler to check macro’s validity
f771: warning: command line option “-Woverloaded-virtual” is valid for C++/ObjC++ but not for F77
f771: warning: command line option “-fuse-cxa-atexit” is valid for C++/ObjC++ but not for F77
g++: installation problem, cannot exec `ratfor’: No such file or directory
In file included from :0:
:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.
Error: Function llrPlots() is not defined in current scope FILE: LINE:0
Possible candidates are…
filename line:size busy function type and name
*** Interpreter error recovered ***
I am sorry if this is not enough information. I am new to the shell scripting and have the learn the tricks but I have called other programs from a shell script, but never compiled one.
gob