29 sys.exit(
"ReadEclTrgUnpacker.py> # of arg is strange.\n 1.rootname\n 2.output file name\n Exit.")
35b2.set_log_level(b2.LogLevel.ERROR)
38string_length = len(fname_in)
41while (string_loc < string_length):
42 if fname_in[string_loc] == letter_remove:
43 fname_in = fname_in[:string_loc] + fname_in[string_loc + 1::]
44 string_length = len(fname_in)
46print(
"input File : ", fname_in)
47print(
"output File : ", fname_out)
50tcal = b2.register_module(
'TRGECLTimingCal')
51input = b2.register_module(
'RootInput')
52input.param(
"inputFileName", fname_in)
53tcal.param(
"TRGECLCalSim", 0)
54tcal.param(
"TRGECLCalType", 0)
55tcal.param(
"TRGECLCalTCRef", 184)
56tcal.param(
"TRGECLCal3DBhabhaVeto", 1)
57tcal.param(
"TRGECLCalHighEnergyCut", 10)
58tcal.param(
"TRGECLCalLowEnergyCut", 1)
59tcal.param(
"TRGECLCalofname", fname_out)
62main = b2.create_path()
67m_progress = b2.register_module(
'Progress')
68m_progress.param(
"maxN", 4)
69main.add_module(m_progress)