Interactively I create a class, define histograms and cuts, fill and do
dsired fits successfully as follows:
....
<fsgi03> root
*******************************************
* *
* W E L C O M E to R O O T *
* *
* Version 2.24/04 5 May 2000 *
* *
* You are welcome to visit our Web site *
* http://root.cern.ch *
* *
*******************************************
CINT/ROOT C/C++ Interpreter version 5.14.37, Apr 29 2000
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] .L Myxc.C
root [1] Myxc t
root [2] t.Loop()
......
Now I would like to perform this task in batch in order to
accommodate more extensive plots and fitting. Here is a
script runMyxc that I've tried:
......
#!/bin/sh
. /usr/local/etc/setups.sh
#
setup root
#
cd /usr/e781/data05/scratch/dauwe/
# do root in batch mode and quit when finished
$ROOTSYS/bin/root -b -q {
/usr/e781/data05/scratch/dauwe/Myxc.C;
Myxc t;
t.Loop();
}
......
But here is what happens:
.....
<fsgi03> . ./runMyxc
*******************************************
* *
* W E L C O M E to R O O T *
* *
* Version 2.24/04 5 May 2000 *
* *
* You are welcome to visit our Web site *
* http://root.cern.ch *
* *
*******************************************
CINT/ROOT C/C++ Interpreter version 5.14.37, Apr 29 2000
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0]
Processing {...
Error in <TRint::ProcessFile>: macro { not found in path
.:/afs/fnal.gov/ups/root/v2_24_04/IRIX+6/macros
/usr/e781/data05/scratch/dauwe/Myxc.C: Double_t: command not found
/usr/e781/data05/scratch/dauwe/Myxc.C: Double_t: command not found
/usr/e781/data05/scratch/dauwe/Myxc.C: line 17: syntax error near
unexpected token `backg(D'
/usr/e781/data05/scratch/dauwe/Myxc.C: line 17: `Double_t backg(Double_t
*x, Double_t *par) {'
bash: Myxc: command not found
bash: ./runMyxc: line 11: syntax error near unexpected token `;'
bash: ./runMyxc: line 11: ` t.Loop(); '
.....
Thanks for any suggestions you can give.
Loretta J. Dauwe
E781
dauwe@fnal.gov
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:00 MET