-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!-- doxy | ||
\page refrunSimExamplesHybrid Example Hybrid_parallel | ||
/doxy --> | ||
|
||
Demonstrating how the Hybrid generator can be setup with multiple clones of the same | ||
generator to speedup event generation (for a single timeframe). | ||
|
||
- **run_parallel.sh** main example shell script | ||
- **hybridconfig_parallel.json** → example JSON file for the hybrid generator configuration |
53 changes: 53 additions & 0 deletions
53
run/SimExamples/Hybrid_parallel/hybridconfig_parallel.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"mode" : "parallel", | ||
"generators": [ | ||
{ | ||
"name": "pythia8", | ||
"config": { | ||
"config": "$O2_ROOT/share/Generators/egconfig/pythia8_inel.cfg", | ||
"hooksFileName": "", | ||
"hooksFuncName": "", | ||
"includePartonEvent": false, | ||
"particleFilter": "", | ||
"verbose": 0 | ||
} | ||
}, | ||
{ | ||
"name": "pythia8", | ||
"config": { | ||
"config": "$O2_ROOT/share/Generators/egconfig/pythia8_inel.cfg", | ||
"hooksFileName": "", | ||
"hooksFuncName": "", | ||
"includePartonEvent": false, | ||
"particleFilter": "", | ||
"verbose": 0 | ||
} | ||
}, | ||
{ | ||
"name": "pythia8", | ||
"config": { | ||
"config": "$O2_ROOT/share/Generators/egconfig/pythia8_inel.cfg", | ||
"hooksFileName": "", | ||
"hooksFuncName": "", | ||
"includePartonEvent": false, | ||
"particleFilter": "", | ||
"verbose": 0 | ||
} | ||
}, | ||
{ | ||
"name": "pythia8", | ||
"config": { | ||
"config": "$O2_ROOT/share/Generators/egconfig/pythia8_inel.cfg", | ||
"hooksFileName": "", | ||
"hooksFuncName": "", | ||
"includePartonEvent": false, | ||
"particleFilter": "", | ||
"verbose": 0 | ||
} | ||
} | ||
], | ||
"fractions": [ | ||
1, | ||
1 | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Hybrid generator simulation example in which multiple clones of the same generator | ||
# are listed in a JSON file (hybridconfig_parallel.json in this folder). These multiple | ||
# clones are running in parallel to produce events faster. | ||
|
||
$NEV=100 | ||
$WORKERS=8 | ||
|
||
# Starting simulation with Hybrid generator in parallel mode | ||
${O2_ROOT}/bin/o2-sim --noGeant -j 1 --field ccdb --vertexMode kCCDB --run 300000 --configKeyValues "GeneratorHybrid.configFile=$PWD/hybridconfig_parallel.json;GeneratorHybrid.randomize=false;GeneratorHybrid.num_workers=${WORKERS}" -g hybrid -o genevents_parallel --timestamp 1546300800000 --seed 836302859 -n $NEV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters