Preliminaries
The sample scripts and grid environment are located on ilcsim2.fnal.gov. You must have a working Fermilab Kerberos account to access any of these resources. Using ssh to login directly will not work unless you start a Kerberos session.
kinit me@FNAL.GOV ssh me@ilcsim2.fnal.gov
Grid Environment
Execute these command in your shell to setup the grid environment.
source /fnal/ups/grid/setup.sh voms-proxy-init -hours 96 -voms ilc:/ilc/sid
You need to have a valid grid certificate installed and correctly registered with ilc/sid group (not covered here).
SLIC
The sample SLIC scripts are located at ~/jmccorm/grid/slic/exampleRunDir.
sid_job_submission.csh is the top-level script used to submit jobs to the fermigrid.
It takes the following arguments, in order, all of which are mandatory.
- list of stdhep files in text file format
- number of jobs to run (usually 1)
- events to run (usually number of events in stdhep file)
- detector lcdd file (copied from LCDetectors)
- output directory (relative output path in zip bundle)
- physics list (default of QGSP_BERT recommended)
- copy back directory (usually current working dir)
Below is an example of using this script.
./sid_job_submission.csh myEventFiles.txt 1 1000 ./detectors/sidloi3.lcdd output/ QGSP_BERT `pwd`
The script depends on two other scripts being present in the working directory. The sid_slic_grid.csh scruot creates the Condor JDF file, and sid_run_slic_grid.csh runs slic in the grid environment.