30 from ROOT
import Belle2
33 main = b2.create_path()
34 DR2 =
'/ghi/fs01/belle2/bdata/users/karim/MC/DR2/release-02-01-00/eegamma/cdst/eegamma_1.root'
35 main.add_module(
'RootInput', inputFileNames=[DR2])
38 outputName =
"ee5x5CollectorOutput_mc.root"
40 outputName = sys.argv[1]
41 main.add_module(
"HistoManager", histoFileName=outputName)
43 eclee5x5 = b2.register_module(
'eclee5x5Collector')
44 eclee5x5.param(
'thetaLabMinDeg', 17.)
45 eclee5x5.param(
'thetaLabMaxDeg', 150.)
46 eclee5x5.param(
'minE0', 0.45)
47 eclee5x5.param(
'minE1', 0.40)
48 eclee5x5.param(
'maxdThetaSum', 2.)
49 eclee5x5.param(
'dPhiScale', 1.)
50 eclee5x5.param(
'maxTime', 10.)
52 eclee5x5.param(
'useCalDigits',
True)
53 eclee5x5.param(
'requireL1',
False)
54 main.add_module(eclee5x5)
56 main.add_module(
'Progress')
58 b2.set_log_level(b2.LogLevel.INFO)
63 b2.use_database_chain()
64 b2.use_central_database(
"Calibration_Offline_Development")
65 b2.use_local_database(
"localdb/database.txt")