You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\page refrunSimExamplesExternalToHybrid Example ExternalToHybrid
3
+
/doxy -->
4
+
5
+
This example demonstrates how to bypass the Hyperloop limitations when using external generators by switching the configuration to hybrid mode, using the new `GeneratorHybrid.switchExtToHybrid` parameter (set to false by default).
6
+
7
+
This solution works only with updated O2sim versions containing the `switchExtToHybrid` option.
8
+
9
+
# Configuration Files
10
+
11
+
Two example configuration files are provided, each pointing to different hybrid JSON files:
12
+
13
+
-**GeneratorHyperloopHybridCocktail.ini** → Creates a cocktail mixing two Pythia8 based generators and a boxgen instance
14
+
-**GeneratorHyperloopHybrid.ini** → Defines sequential generation of boxgen and EPOS4 events called with an external generator
15
+
16
+
# Script Description
17
+
18
+
## rundpl.sh
19
+
20
+
This script demonstrates event generation using the DPL framework, launching it with the external generator in hybrid mode.
21
+
22
+
### Available Flags
23
+
24
+
-**-i, --ini CONFIG** → Specifies the configuration ini file (default: `GeneratorHyperloopHybridCocktail.ini`)
25
+
-**-n, --nevents EVENTS** → Sets the number of events to generate (default: 5)
26
+
-**-h, --help** → Prints usage instructions and o2-sim-dpl-eventgen help
27
+
-**--** → Passes remaining command line arguments to o2-sim-dpl-eventgen
28
+
29
+
### Usage Examples
30
+
31
+
Run with default settings (5 events using cocktail configuration):
32
+
```bash
33
+
./rundpl.sh
34
+
```
35
+
36
+
Generate 10 events using the sequential configuration:
0 commit comments