10This example shows how to run WHIZARD using our `whizard` module.
17from ROOT
import Belle2
25events = lastEventNumber - firstEventNumber
28path, lhe, log =
whizard.run_whizard(process=
'mumumumu', experiment=experiment, run=run, events=events)
32main.add_module(
'EventInfoSetter')
33main.add_module(
'LHEInput',
35 createEventMetaData=
False,
39main.add_module(
'BoostMCParticles')
40main.add_module(
'SmearPrimaryVertex')
41main.add_module(
'Progress')
42main.add_module(
'PrintMCParticles', showStatus=
True, showMomenta=
True)
43main.add_module(
'RootOutput')
48shutil.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)