10 This example shows how to run WHIZARD using our `whizard` module.
17 from ROOT
import Belle2
25 events = lastEventNumber - firstEventNumber
28 path, lhe, log =
whizard.run_whizard(process=
'mumumumu', experiment=experiment, run=run, events=events)
32 main.add_module(
'EventInfoSetter')
33 main.add_module(
'LHEInput',
39 main.add_module(
'BoostMCParticles')
40 main.add_module(
'SmearPrimaryVertex')
41 main.add_module(
'Progress')
42 main.add_module(
'PrintMCParticles', showStatus=
True, showMomenta=
True)
43 main.add_module(
'RootOutput')
48 shutil.rmtree(path, ignore_errors=
True)
static Environment & Instance()
Static method to get a reference to the Environment instance.
def run_whizard(process, experiment, run, events, print_sindarin=False)