![]() |
Project
|
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
).
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.
Demonstrating how the Hybrid generator can be setup with multiple clones of the same generator to speedup event generation (for a single timeframe).