Belle II Software  release-08-01-10
generateMixedMCforDecFileVal.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 """
13 <header>
14  <output>../mixed.cdst.root</output>
15  <description>creating mixed MC cdst files needed for the DecayFile/Multiplicity validation</description>
16 </header>
17 """
18 
19 import basf2 as b2
20 import generators as ge
21 
22 b2.set_random_seed('mixed')
23 
24 # create path
25 main = b2.create_path()
26 
27 # default to early phase 3 (exp=1003), run 0, number of events = 100000
28 main.add_module("EventInfoSetter", expList=1003, runList=0, evtNumList=100000)
29 
30 # generate BBbar events
31 ge.add_evtgen_generator(path=main, finalstate='mixed')
32 
33 # finally add cdst output
34 main.add_module('RootOutput', outputFileName='../mixed.cdst.root')
35 
36 main.add_module('Progress')
37 # process events and print call statistics
38 b2.process(path=main)
39 print(b2.statistics)