23from rawdata
import add_unpackers
27main = b2.create_path()
28inputfile =
'/ghi/fs01/belle2/bdata/Data/Raw/e0007/r01112/sub00/*.root'
29main.add_module(
'RootInput', inputFileNames=[inputfile])
32outputName =
"eclCosmicECollectorOutput.root"
35 outputName = sys.argv[1]
36main.add_module(
"HistoManager", histoFileName=outputName)
38main.add_module(
'Progress')
41add_unpackers(main, components=
'ECL')
43b2.set_log_level(b2.LogLevel.INFO)
46eclCosmicE = b2.register_module(
'eclCosmicECollector', logLevel=b2.LogLevel.DEBUG, debugLevel=9)
47eclCosmicE.param(
'minCrysE', 0.01)
48eclCosmicE.param(
'mockupL1',
False)
49eclCosmicE.param(
'trigThreshold', 0.1)
50main.add_module(eclCosmicE)
54centralGT =
"data_reprocessing_prompt_bucket3b"
56 centralGT = sys.argv[2]
58b2.use_database_chain()
59b2.use_central_database(centralGT)
60b2.use_local_database(
"localdb/database.txt")