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