18 from ROOT
import Belle2
22 nevent = int(argvs[2])
25 Dir =
'GCR2017_unpacked/'
30 Class to split one file to multi files with small data size.
34 """reimplementation of Module::event()."""
37 b2.B2ERROR(
'No EventMetaData found')
39 event = evtmetadata.obj().getEvent()
40 self.return_value(event // nevent)
44 main = b2.create_path()
45 main.add_module(
'RootInput', inputFileName=Dir + run +
'.root')
46 main.add_module(
'ProgressBar')
48 main.add_module(split)
49 for i
in range(0, int(nfile)):
50 out.append(b2.create_path())
51 out[i].add_module(
'RootOutput', outputFileName=Dir + run +
'_' + str(i) +
'.root')
53 split.if_value(
'>={}'.format(i), out[i])
55 split.if_value(
'={}'.format(i), out[i])
a (simplified) python wrapper for StoreObjPtr.