Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
examples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
delphi
examples
Commits
5804cb3c
Commit
5804cb3c
authored
7 years ago
by
Ulrich Schwickerath
Browse files
Options
Downloads
Patches
Plain Diff
add HTCondor documentation
parent
9c12d56c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+53
-3
53 additions, 3 deletions
README.md
scripts/create_mc.sh
+0
-0
0 additions, 0 deletions
scripts/create_mc.sh
scripts/testjob.sh
+0
-0
0 additions, 0 deletions
scripts/testjob.sh
with
53 additions
and
3 deletions
README.md
+
53
−
3
View file @
5804cb3c
# 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.
This diff is collapsed.
Click to expand it.
create_mc.sh
→
scripts/
create_mc.sh
+
0
−
0
View file @
5804cb3c
File moved
This diff is collapsed.
Click to expand it.
testjob.sh
→
scripts/
testjob.sh
+
0
−
0
View file @
5804cb3c
File moved
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment