File tree Expand file tree Collapse file tree 4 files changed +74
-0
lines changed
Expand file tree Collapse file tree 4 files changed +74
-0
lines changed Original file line number Diff line number Diff line change 1+ <!-- doxy
2+ \page refrunSimExamplesHybrid Example Hybrid_parallel
3+ /doxy -->
4+
5+ Demonstrating how the Hybrid generator can be setup with multiple clones of the same
6+ generator to speedup event generation (for a single timeframe).
7+
8+ - ** run_parallel.sh** main example shell script
9+ - ** hybridconfig_parallel.json** &rarr ; example JSON file for the hybrid generator configuration
Original file line number Diff line number Diff line change 1+ {
2+ "mode" : " parallel" ,
3+ "generators" : [
4+ {
5+ "name" : " pythia8" ,
6+ "config" : {
7+ "config" : " $O2_ROOT/share/Generators/egconfig/pythia8_inel.cfg" ,
8+ "hooksFileName" : " " ,
9+ "hooksFuncName" : " " ,
10+ "includePartonEvent" : false ,
11+ "particleFilter" : " " ,
12+ "verbose" : 0
13+ }
14+ },
15+ {
16+ "name" : " pythia8" ,
17+ "config" : {
18+ "config" : " $O2_ROOT/share/Generators/egconfig/pythia8_inel.cfg" ,
19+ "hooksFileName" : " " ,
20+ "hooksFuncName" : " " ,
21+ "includePartonEvent" : false ,
22+ "particleFilter" : " " ,
23+ "verbose" : 0
24+ }
25+ },
26+ {
27+ "name" : " pythia8" ,
28+ "config" : {
29+ "config" : " $O2_ROOT/share/Generators/egconfig/pythia8_inel.cfg" ,
30+ "hooksFileName" : " " ,
31+ "hooksFuncName" : " " ,
32+ "includePartonEvent" : false ,
33+ "particleFilter" : " " ,
34+ "verbose" : 0
35+ }
36+ },
37+ {
38+ "name" : " pythia8" ,
39+ "config" : {
40+ "config" : " $O2_ROOT/share/Generators/egconfig/pythia8_inel.cfg" ,
41+ "hooksFileName" : " " ,
42+ "hooksFuncName" : " " ,
43+ "includePartonEvent" : false ,
44+ "particleFilter" : " " ,
45+ "verbose" : 0
46+ }
47+ }
48+ ],
49+ "fractions" : [
50+ 1 ,
51+ 1
52+ ]
53+ }
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ #
3+ # Hybrid generator simulation example in which multiple clones of the same generator
4+ # are listed in a JSON file (hybridconfig_parallel.json in this folder). These multiple
5+ # clones are running in parallel to produce events faster.
6+
7+ $NEV =100
8+ $WORKERS =8
9+
10+ # Starting simulation with Hybrid generator in parallel mode
11+ ${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
Original file line number Diff line number Diff line change 1616* \subpage refrunSimExamplesHepMC_STARlight
1717* \subpage refrunSimExamplesHepMC_EPOS4
1818* \subpage refrunSimExamplesHybrid
19+ * \subpage refrunSimExamplesHybrid_parallel
1920* \subpage refrunSimExamplesJet_Embedding_Pythia8
2021* \subpage refrunSimExamplesMcTracksToAOD
2122* \subpage refrunSimExamplesMcTracksToAOD
You can’t perform that action at this time.
0 commit comments