Skip to content
Snippets Groups Projects
Commit 02893e08 authored by Ulrich Schwickerath's avatar Ulrich Schwickerath
Browse files

review MC creation

parent 3fbc21ab
No related branches found
No related tags found
No related merge requests found
......@@ -40,8 +40,15 @@ A source code example of DELPHI tuned Pythia can be found in the [Pythia folder]
## [Creating Monte Carlo samples on the HTCondor batch farm at CERN](htcondor/create_mc.sub)
To run the same job on the HTCondor batch farm, you need to follow these steps
### Create a job directory
```
cd ~/
mkdir htcondor
cd htcondor
```
### Create a job script
First, wrap the commands you need to run in a script, eg
Wrap the commands you need to run in a script, eg
```
#!/bin/bash
......@@ -75,25 +82,59 @@ The above script will queue your job and ask for resources on CentOS7.
Ensure, that the configured directories exist. In the above example, do
```
cd htcondor
mkdir output
mkdir error
mkdir log
cp ../scripts/create_mc.sh .
```
### Submit the job to the system
Now you can submit your job. In the above example, run
```
kinit
condor_submit create_mc.sub
```
from the htcondor sub-directory.
from the htcondor folder. You should see something like:
```
Submitting job(s).
1 job(s) submitted to cluster 2490640.
```
The command
```
condor_q
```
will show you the status of your job.
will show you the status of your job, for example:
```
-- Schedd: bigbird13.cern.ch : <137.138.156.150:9618?... @ 11/01/19 13:33:06
OWNER BATCH_NAME SUBMITTED DONE RUN IDLE TOTAL JOB_IDS
schwicke CMD: create_mc.sh 11/1 13:32 _ _ 1 1 2490640.0
1 jobs; 0 completed, 0 removed, 1 idle, 0 running, 0 held, 0 suspended
```
Upon job completion, output files will be returned to the submission directory by default, eg:
```
~/htcondor]$ ls -ltr
total 44684
-rwxr-xr-x. 1 schwicke xx 200 1. Nov 13:28 create_mc.sh
-rw-r--r--. 1 schwicke xx 323 1. Nov 13:28 create_mc.sub
drwxr-xr-x. 2 schwicke xx 2048 1. Nov 13:32 output
drwxr-xr-x. 2 schwicke xx 2048 1. Nov 13:32 log
drwxr-xr-x. 2 schwicke xx 2048 1. Nov 13:32 error
-rw-r--r--. 1 schwicke xx 280 1. Nov 13:35 igtots.logn
-rw-r--r--. 1 schwicke xx 10571 1. Nov 13:35 delana.tit
-rwxr-xr-x. 1 schwicke xx 15289420 1. Nov 13:35 simrun36
-rw-r--r--. 1 schwicke xx 30613 1. Nov 13:35 survey.sumr
-rw-r--r--. 1 schwicke xx 11447 1. Nov 13:35 simlocal.title
-rw-r--r--. 1 schwicke xx 460800 1. Nov 13:35 simana.xsdst
-rw-r--r--. 1 schwicke xx 4531200 1. Nov 13:35 simana.fadsim
-rw-r--r--. 1 schwicke xx 14776 1. Nov 13:35 scanlist.sumr
-rw-r--r--. 1 schwicke xx 983040 1. Nov 13:35 simana.fadana
-rw-r--r--. 1 schwicke xx 1725 1. Nov 13:35 delsimrn.out88
-rwxr-xr-x. 1 schwicke xx 24409644 1. Nov 13:35 delana45.exe
```
## [Running an analysis job interactively](scripts/testjob.sh)
The following script can be run interactively or submitted to a batch farm with DELPHI setup
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment