Belle II Software  release-08-01-10
RBB_HER.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 import basf2 as b2
13 b2.logging.log_level = b2.LogLevel.WARNING
14 
15 # -------------------------
16 # here we register modules
17 # -------------------------
18 
19 progress = b2.register_module('Progress')
20 paramloader = b2.register_module('Gearbox')
21 geometry = b2.register_module('Geometry')
22 geometry.param('components', ['TOP'])
23 input = b2.register_module('RootInput')
24 topdigi = b2.register_module('TOPDigitizer')
25 topback = b2.register_module('TOPBackground')
26 
27 param_back = {'TimeOfSimulation': 100.0, 'Type': 'RBB_HER',
28  'Output': 'RBB_HER.root'}
29 # TimeOfSimulation in us
30 # Type the backgound type just for labeing
31 
32 topback.param(param_back)
33 # --------------------------------------
34 # here we set the parameters of modules
35 # --------------------------------------
36 
37 input.param('inputFileNames', ['/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_0.root',
38  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_1.root',
39  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_2.root',
40  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_3.root',
41  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_4.root',
42  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_5.root',
43  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_6.root',
44  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_7.root',
45  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_8.root',
46  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_9.root',
47  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_10.root',
48  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_11.root',
49  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_12.root',
50  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_13.root',
51  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_14.root',
52  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_15.root',
53  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_16.root',
54  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_17.root',
55  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_18.root',
56  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_19.root',
57  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_20.root',
58  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_21.root',
59  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_22.root',
60  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_23.root',
61  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_24.root',
62  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_25.root',
63  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_26.root',
64  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_27.root',
65  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_28.root',
66  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_29.root',
67  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_30.root',
68  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_31.root',
69  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_32.root',
70  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_33.root',
71  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_34.root',
72  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_35.root',
73  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_36.root',
74  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_37.root',
75  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_38.root',
76  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_39.root',
77  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_40.root',
78  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_41.root',
79  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_42.root',
80  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_43.root',
81  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_44.root',
82  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_45.root',
83  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_46.root',
84  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_47.root',
85  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_48.root',
86  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_49.root',
87  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_50.root',
88  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_51.root',
89  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_52.root',
90  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_53.root',
91  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_54.root',
92  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_55.root',
93  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_56.root',
94  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_57.root',
95  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_58.root',
96  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_59.root',
97  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_60.root',
98  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_61.root',
99  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_62.root',
100  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_63.root',
101  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_64.root',
102  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_65.root',
103  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_66.root',
104  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_67.root',
105  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_68.root',
106  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_69.root',
107  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_70.root',
108  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_71.root',
109  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_72.root',
110  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_73.root',
111  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_74.root',
112  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_75.root',
113  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_76.root',
114  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_77.root',
115  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_78.root',
116  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_79.root',
117  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_80.root',
118  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_81.root',
119  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_82.root',
120  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_83.root',
121  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_84.root',
122  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_85.root',
123  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_86.root',
124  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_87.root',
125  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_88.root',
126  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_89.root',
127  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_90.root',
128  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_91.root',
129  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_92.root',
130  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_93.root',
131  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_94.root',
132  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_95.root',
133  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_96.root',
134  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_97.root',
135  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_98.root',
136  '/home/belle/tara/public/basf2/Work_MCgen/output/output_RBB_HER_study_99.root'])
137 
138 # create path
139 main = b2.create_path()
140 
141 # add modules to path
142 
143 main.add_module(input)
144 main.add_module(progress)
145 main.add_module(paramloader)
146 main.add_module(geometry)
147 main.add_module(topdigi)
148 main.add_module(topback)
149 
150 b2.process(main)
151 
152 print(b2.statistics)