|
eventDispenser
|
Minimal end-to-end usage of EventDispenser. More...
Functions | |
| int | main (int argc, char *argv[]) |
| Example entry point. | |
This example demonstrates the essential steps required to use EventDispenser:
EventDispenser distributes a total event count across one or more run numbers. Each run number can represent different conditions (constants, translation tables, etc.). The distribution can be:
This example configures options via eventDispenser::defineOptions() and builds a digitization routine map via gdynamicdigitization::dynamicRoutinesMap(). It then constructs EventDispenser, retrieves the computed run allocation, and processes events.
Build this example together with the Event Dispenser module and its dependencies. Run with the module options, for example:
-n=200 -run=12-n=200 -run_weights=weights.txt| int main | ( | int | argc, |
| char * | argv[] ) |
The example performs the following steps:
| argc | Standard command-line argument count. |
| argv | Standard command-line argument vector. |
EXIT_SUCCESS on success. Definition at line 69 of file event_dispenser_example.cc.