12Example: Herwig continuum generator (ccbar production) using
13`add_herwig_continuum_generator` from the `herwig` module.
17 basf2 Herwig.py -n 1000 # Y(4S), default conditions (exp 0, run 0)
18 basf2 Herwig.py --experiment 12 --run 798 -n 1000 # per-run beam energy; global tags required
20All CLI flags (--experiment, --run and -n) are automatically forwarded to add_herwig_continuum_generator().
22For use without CLI flags, pass the experiment, run, and event number to
23both EventInfoSetter and add_herwig_continuum_generator() explicitly.
27from herwig
import add_herwig_continuum_generator
29main = b2.create_path()
31main.add_module(
'EventInfoSetter',
37add_herwig_continuum_generator(path=main, finalstate=
'ccbar',
43main.add_module(
'Progress')
47b2.process(main, calculateStatistics=
True)