26 from ROOT
import Belle2
32 calChannel = int(argvs[1])
34 b2.B2RESULT(
'using calibration channel ' + str(calChannel))
38 ''' subtract time of the first calibration signal '''
41 ''' event function '''
44 t0 = [0
for i
in range(64)]
45 num = [0
for i
in range(64)]
47 channel = digit.getChannel()
50 if ch == calChannel
and digit.getHitQuality() == 4:
52 t0[i] = digit.getTime()
55 t0[i] = min(t0[i], digit.getTime())
59 i = int(digit.getChannel()/8)
61 digit.subtractT0(t0[i])
64 digit.setHitQuality(0)
66 b2.B2ERROR(
"No calibration double pulses found in the event")
70 main = b2.create_path()
73 roinput = b2.register_module(
'RootInput')
74 main.add_module(roinput)
80 output = b2.register_module(
'RootOutput')
81 main.add_module(output)
84 progress = b2.register_module(
'Progress')
85 main.add_module(progress)
a (simplified) python wrapper for StoreArray.