24 from rawdata
import add_unpackers
28 main = b2.create_path()
29 inputfile =
'/ghi/fs01/belle2/bdata/Data/Raw/e0007/r01112/sub00/*.root'
30 main.add_module(
'RootInput', inputFileNames=[inputfile])
33 outputName =
"eclCosmicECollectorOutput.root"
36 outputName = sys.argv[1]
37 main.add_module(
"HistoManager", histoFileName=outputName)
39 main.add_module(
'Progress')
42 add_unpackers(main, components=
'ECL')
44 b2.set_log_level(b2.LogLevel.INFO)
47 eclCosmicE = b2.register_module(
'eclCosmicECollector', logLevel=b2.LogLevel.DEBUG, debugLevel=9)
48 eclCosmicE.param(
'minCrysE', 0.01)
49 eclCosmicE.param(
'mockupL1',
False)
50 eclCosmicE.param(
'trigThreshold', 0.1)
51 main.add_module(eclCosmicE)
55 centralGT =
"data_reprocessing_prompt_bucket3b"
57 centralGT = sys.argv[2]
59 b2.use_database_chain()
60 b2.use_central_database(centralGT)
61 b2.use_local_database(
"localdb/database.txt")