Belle II Software  release-05-01-25
test0_TwoTrackMuonsForLuminosity.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 # Descriptor: e+e- --> mu+mu-(ISR)
4 
5 """
6 <header>
7  <output>../TwoTrackMuonsForLuminosity.dst.root</output>
8  <contact>zhouxy@buaa.edu.cn</contact>
9 </header>
10 """
11 
12 import basf2
13 from ROOT import Belle2
14 from simulation import add_simulation
15 from reconstruction import add_reconstruction, add_mdst_output
16 
17 # Set the global log level
18 basf2.set_log_level(basf2.LogLevel.INFO)
19 
20 main = basf2.create_path()
21 
22 main.add_module("EventInfoSetter", expList=0, runList=1, evtNumList=1000)
23 
24 # generate events
25 main.add_module('KKGenInput',
26  tauinputFile=Belle2.FileSystem.findFile('data/generators/kkmc/mu.input.dat'),
27  KKdefaultFile=Belle2.FileSystem.findFile('data/generators/kkmc/KK2f_defaults.dat'),
28  taudecaytableFile='',
29  kkmcoutputfilename='kkmc_mumu.dat')
30 
31 # detector simulation
32 add_simulation(main)
33 
34 # reconstruction
35 add_reconstruction(main)
36 
37 # Finally add mdst output
38 output_filename = "../TwoTrackMuonsForLuminosity.dst.root"
39 add_mdst_output(main, filename=output_filename)
40 
41 # generate events
42 basf2.process(main)
43 
44 # show call statistics
45 print(basf2.statistics)
basf2.process
def process(path, max_event=0)
Definition: __init__.py:25
Belle2::FileSystem::findFile
static std::string findFile(const std::string &path, bool silent=false)
Search for given file or directory in local or central release directory, and return absolute path if...
Definition: FileSystem.cc:147