Belle II Software development
RBB_LER.py
1#!/usr/bin/env python3
2
3
10
11import basf2 as b2
12b2.logging.log_level = b2.LogLevel.WARNING
13
14# -------------------------
15# here we register modules
16# -------------------------
17
18progress = b2.register_module('Progress')
19paramloader = b2.register_module('Gearbox')
20geometry = b2.register_module('Geometry')
21geometry.param('components', ['TOP'])
22input = b2.register_module('RootInput')
23topdigi = b2.register_module('TOPDigitizer')
24topback = b2.register_module('TOPBackground')
25
26param_back = {'TimeOfSimulation': 100.0, 'Type': 'RBB_LER',
27 'Output': 'RBB_LER.root'}
28# TimeOfSimulation in us
29# Type the backgound type just for labeing
30
31topback.param(param_back)
32# --------------------------------------
33# here we set the parameters of modules
34# --------------------------------------
35
36input.param('inputFileNames', ['/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_0.root',
37 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_1.root',
38 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_2.root',
39 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_3.root',
40 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_4.root',
41 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_5.root',
42 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_6.root',
43 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_7.root',
44 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_8.root',
45 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_9.root',
46 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_10.root',
47 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_11.root',
48 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_12.root',
49 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_13.root',
50 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_14.root',
51 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_15.root',
52 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_16.root',
53 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_17.root',
54 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_18.root',
55 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_19.root',
56 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_20.root',
57 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_21.root',
58 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_22.root',
59 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_23.root',
60 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_24.root',
61 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_25.root',
62 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_26.root',
63 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_27.root',
64 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_28.root',
65 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_29.root',
66 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_30.root',
67 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_31.root',
68 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_32.root',
69 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_33.root',
70 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_34.root',
71 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_35.root',
72 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_36.root',
73 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_37.root',
74 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_38.root',
75 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_39.root',
76 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_40.root',
77 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_41.root',
78 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_42.root',
79 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_43.root',
80 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_44.root',
81 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_45.root',
82 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_46.root',
83 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_47.root',
84 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_48.root',
85 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_49.root',
86 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_50.root',
87 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_51.root',
88 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_52.root',
89 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_53.root',
90 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_54.root',
91 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_55.root',
92 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_56.root',
93 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_57.root',
94 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_58.root',
95 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_59.root',
96 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_60.root',
97 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_61.root',
98 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_62.root',
99 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_63.root',
100 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_64.root',
101 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_65.root',
102 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_66.root',
103 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_67.root',
104 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_68.root',
105 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_69.root',
106 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_70.root',
107 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_71.root',
108 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_72.root',
109 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_73.root',
110 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_74.root',
111 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_75.root',
112 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_76.root',
113 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_77.root',
114 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_78.root',
115 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_79.root',
116 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_80.root',
117 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_81.root',
118 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_82.root',
119 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_83.root',
120 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_84.root',
121 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_85.root',
122 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_86.root',
123 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_87.root',
124 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_88.root',
125 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_89.root',
126 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_90.root',
127 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_91.root',
128 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_92.root',
129 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_93.root',
130 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_94.root',
131 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_95.root',
132 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_96.root',
133 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_97.root',
134 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_98.root',
135 '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_LER_study_99.root'])
136
137# create path
138main = b2.create_path()
139
140# add modules to path
141
142main.add_module(input)
143main.add_module(progress)
144main.add_module(paramloader)
145main.add_module(geometry)
146main.add_module(topdigi)
147main.add_module(topback)
148
149b2.process(main)
150
151print(b2.statistics)