21d = datetime.datetime.today()
22print(d.strftime(
'job start: %Y-%m-%d %H:%M:%S\n'))
24main = b2.create_path()
27patha =
"/group/belle2/BGcampaigns/g4sim/" + folder
29pathb = patha +
'/output/'
30pathc = patha +
'/beast_hist/'
32for i
in range(num * 10, (num + 1) * 10):
33 filenn = pathb + bgType +
'_' + accRing +
'_study-phase2-' + str(i) +
'.root'
37histfile = pathc + bgType +
'_' + accRing +
'_' + str(num) +
'.root'
39input_module = b2.register_module(
'RootInput')
40input_module.param(
'inputFileNames', fnames)
41main.add_module(input_module)
44histo = b2.register_module(
'HistoManager')
45histo.param(
'histoFileName', histfile)
48gearbox = b2.register_module(
'Gearbox')
49gearbox.param(
'fileName',
'/geometry/Beast2_phase2.xml')
50main.add_module(gearbox)
52main.add_module(
"Progress")
57MIP_to_PE = [27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27]
58he3digi = b2.register_module(
'He3Digitizer')
59he3digi.param(
'conversionFactor', 0.303132019)
60he3digi.param(
'useMCParticles',
False)
61main.add_module(he3digi)
62diadigi = b2.register_module(
'BeamDigitizer')
63diadigi.param(
'WorkFunction', 13.25)
64diadigi.param(
'FanoFactor', 0.382)
65main.add_module(diadigi)
66pindigi = b2.register_module(
'PinDigitizer')
67pindigi.param(
'WorkFunction', 3.64)
68pindigi.param(
'FanoFactor', 0.13)
69main.add_module(pindigi)
70clawsdigi = b2.register_module(
'ClawsDigitizer')
71clawsdigi.param(
'C_MIP_to_PE', MIP_to_PE)
72main.add_module(clawsdigi)
73qcssdigi = b2.register_module(
'QcsmonitorDigitizer')
74qcssdigi.param(
'ScintCell', 40)
75qcssdigi.param(
'C_keV_to_MIP', 1629.827)
76qcssdigi.param(
'C_MIP_to_PE', 15.0)
77qcssdigi.param(
'MIPthres', 0.5)
78main.add_module(qcssdigi)
79fangsdigi = b2.register_module(
'FANGSDigitizer')
80main.add_module(fangsdigi)
81tpcdigi = b2.register_module(
'TpcDigitizer')
82main.add_module(tpcdigi)
84beamab_study = b2.register_module(
'BeamabortStudy')
85main.add_module(beamab_study)
87claws_study = b2.register_module(
'ClawsStudy')
88main.add_module(claws_study)
90fangs_study = b2.register_module(
'FANGSStudy')
91main.add_module(fangs_study)
93tpc_study = b2.register_module(
'MicrotpcStudy')
94main.add_module(tpc_study)
96he3_study = b2.register_module(
'He3tubeStudy')
97main.add_module(he3_study)
99pin_study = b2.register_module(
'PindiodeStudy')
102qcs_study = b2.register_module(
'QcsmonitorStudy')
107print(
'Event Statistics:')
110d = datetime.datetime.today()
111print(d.strftime(
'job finish: %Y-%m-%d %H:%M:%S\n'))