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

add HTCondor documentation

parent 9c12d56c
No related branches found
No related tags found
No related merge requests found
# DELPHI software simple examples
This repository shows basic examples of how to run the software stack and perform various tasks.
## [Creating Monte Carlo samples interactively](create_mc.sh)
## [Creating Monte Carlo samples interactively](scripts/create_mc.sh)
To creating a few events with a build-in generator run
```
runsim -VERSION va0u -LABO CERN -NRUN 1000 -EBEAM 45.625 -igen qqps -NEVMAX 10
......@@ -25,7 +25,55 @@ Created files:
Analysis can be run as well on the full DST output in which case a bunch of packages will be rerun.
## [Running an analysis job interactively](testjob.sh)
## [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 script
First, wrap the commands you need to run in a script, eg
```
#!/bin/bash
# produce 10 jetset events with build-in generator,
# simulate
# reconstruct
# and create short DST output
runsim -VERSION va0u -LABO CERN -NRUN 1000 -EBEAM 45.625 -igen qqps -NEVMAX 10
```
and save this in a file, say: **create_mc.sh**, and ensure that it is executable:
```
chmod +x create_mc.sh
```
### create the submission file for HTCondor
For HTCondor, unlike LSF, you need to create a submission script which describes the your job.
```
executable = create_mc.sh
arguments = $(ClusterID) $(ProcId)
output = output/create_mc.$(ClusterId).$(ProcId).out
error = error/create_mc.$(ClusterId).$(ProcId).err
log = log/create_mc.$(ClusterId).log
requirements = (OpSysAndVer =?= "CentOS7")
queue
```
Save this in a file called create_mc.sub, for example.
See [the batch documentation at CERN](https://batchdocs.web.cern.ch/batchdocs/local/index.html) for more details.
The above script will queue your job and ask for resources on CentOS7.
### Submit the job to the system
Now you can submit your job with
```
kinit
condor_submit create_mc.sub
```
The command
```
condor_q
```
will show you the status of your job.
## [Running an analysis job interactively](scripts/testjob.sh)
The following script can be run interactively or submitted to a batch farm with DELPHI setup
```
......@@ -82,4 +130,6 @@ It
* creates a data input fiel which would read **simana.xsdst** from the local folder where the executable will be started
* runs the job
## Running an analysis job on HTCondor
This works exactly as described above. Save the script above to some file, create a submit file and ensure that the exectuable
name matches what you need.
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment