Belle II Software  release-05-01-25
test0_TwoTrackElectronsForLuminosity.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 # Descriptor: e+e- --> e+e-(ISR)
4 
5 """
6 <header>
7  <output>../TwoTrackElectronsForLuminosity.dst.root</output>
8  <contact>zhouxy@buaa.edu.cn</contact>
9 </header>
10 """
11 
12 import basf2
13 from simulation import add_simulation
14 from reconstruction import add_reconstruction, add_mdst_output
15 
16 # Set the global log level
17 basf2.set_log_level(basf2.LogLevel.INFO)
18 
19 main = basf2.create_path()
20 
21 main.add_module("EventInfoSetter", expList=0, runList=1, evtNumList=1000)
22 
23 # Register the BABAYAGA.NLO module
24 babayaganlo = basf2.register_module('BabayagaNLOInput')
25 
26 # Set the logging level for the BABAYAGA.NLO module to INFO
27 babayaganlo.set_log_level(basf2.LogLevel.INFO)
28 
29 babayaganlo.param('FinalState', 'ee') # ee, gg, mm
30 babayaganlo.param('DebugEnergySpread', 5.e-3)
31 babayaganlo.param('ScatteringAngleRange', [35.0, 145.0])
32 babayaganlo.param('MinEnergy', 0.01)
33 babayaganlo.param('MaxAcollinearity', 180.)
34 
35 babayaganlo.param('Mode', 'unweighted') # weighted, unweighted
36 babayaganlo.param('Order', 'exp') # born, alpha, exp
37 babayaganlo.param('Model', 'matched') # matched
38 babayaganlo.param('VacuumPolarization', 'hlmnt')
39 babayaganlo.param('VPUncertainty', True)
40 babayaganlo.param('NPhotons', -1)
41 babayaganlo.param('Epsilon', 1.e-7)
42 babayaganlo.param('SearchMax', 1000000)
43 # babayaganlo.param('FMax', 1.e+6) # for unweighted generation
44 
45 babayaganlo.param('UserMode', 'NONE')
46 # babayaganlo.param('EEMIN', 1.);
47 # babayaganlo.param('TEMIN', 17.5);
48 # babayaganlo.param('EEVETO', 0.0);
49 # babayaganlo.param('TEVETO', 12.5);
50 # babayaganlo.param('EGMIN', 1.0);
51 # babayaganlo.param('TGMIN', 1.0);
52 # babayaganlo.param('EGVETO', 0.0);
53 # babayaganlo.param('TGVETO', 5.0);
54 
55 main.add_module(babayaganlo)
56 
57 # detector simulation
58 add_simulation(main)
59 
60 # reconstruction
61 add_reconstruction(main)
62 
63 # Finally add mdst output
64 output_filename = "../TwoTrackElectronsForLuminosity.dst.root"
65 add_mdst_output(main, filename=output_filename)
66 
67 # generate events
68 basf2.process(main)
69 
70 # show call statistics
71 print(basf2.statistics)
basf2.process
def process(path, max_event=0)
Definition: __init__.py:25