James Werner
Running your BaBar analysis software in grid - easysub.
After you have installed a new release and have written your code, compiled and linked, you will be able to submit analysis software to grid following the steps:
- Your TCL file must have two parts. The first part will be generated by Easygrid. It contains information that depends on grid configuration:
sourceFoundFile user.tcl
set histFileName Tau1N-Run3-OffPeak-R14-1.root
source Tau1N-Run3-OffPeak-R14-1.tcl
the remain commands you have to put into a tcl file (called in this manual, for example pi0roject.tcl).
- Submit your job: type
easysub dataset_name tcl_file.tcl
For example:
bash-2.05a$ easysub Tau11-Run3-OnPeak-R14 pi0roject.tcl
- If you succeed to submit your job, typing the command:
bash-2.05a$ easygrid dataset_name
will provide you your jobs' status, save results from finished jobs, or recover nasty listings with abort messages.
For example:
bash-2.05a$ easygrid Tau11-Run3-OnPeak-R14
The abort listing is huge, and the only line that is important starts by "reason".
For example:
- reason = Cannot download fullboot.sh from gsiftp://lcgrb01.gridpp.rl.ac.uk/var/edgwl/SandboxDir/DB/https_3a_2f_2flcgrb01.gridpp.rl.ac.uk_3a9000_2fDB55-uCA3ApJlAqTHwInYg/input/
To see what is going wrong:
cat dataset_name.histo | grep reason
and call me for support!
- You will find your results in the directories datasetname-1, 2, 3, ... Check if all of them are there.
- Your ntuples and histograms will be stored at dataset_name-NN/dataset_name-NN.root, where NN is tcl's sequence number.
- You can copy all error files and all listings using the command:
cat dataset_name*/std.err > allerrors
vi allerrors
cat dataset_name*/std.out > alllst
vi alllst
Warning: mix different datasets together is dangerous, if you do not know what you are doing.
You can use a complex query with more than one dataset using BbkDatasetTcl if you use -b and set a dataset name.
You must use -t 2000000 to have more than one file. In case there is only one, rename it to datasetname-1.tcl.
All your tcl files will be datasetname-1.tcl, datasetname-2.tcl, ...
EasyGrid will use your tcls files instead to run BbkDatasetTcl again.
Top