Project
Loading...
Searching...
No Matches
Example Hybrid

The usage of the Hybrid generator with the o2-sim is presented in this short manual. All the other generators are implemented as sub-generators and they can be called thanks to a JSON file, fed to o2-sim via the GeneratorHybrid.configFile parameter. The O2sim package needs to be loaded in order to use this example.

The example can be run automatically using the runo2sim.sh script, which contains most of the available generators in O2. The JSON template can be generated using the ${O2DPG_ROOT}/MC/bin/o2_hybrid_gen.py script. To use this example the user can simply copy the entire Hybrid example folder and execute the script after giving it execution permissions (chmod +x runo2sim.sh).

Files description

  • runo2sim.sh → allows to use the hybrid generator example
  • hybridconfig.json → example JSON file for the hybrid generator configuration
  • example.optns → options file to be used in EPOS4 implemented as subgenerator in this example (the .optns must be available in the current working directory)

The usage of the Hybrid generator using cocktails is presented in this example. The syntax of the JSON file shows how the cocktails can be grouped. Each generator will be pulled exactly once in order for each cocktail event generation. The basic Hybrid Generator mechanisms are shown in the Hybrid and Hybrid_parallel example folders. The cocktail configuration can not be setup with the template script for now.

Files description

  • runo2sim.sh → allows to use the hybrid generator example
  • hybridcocktail.json → example JSON file for the hybrid generator configuration using cocktails

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