17from ROOT
import Belle2
24Dir =
'GCR2017_unpacked/'
29 Class to split one file to multi files with small data size.
33 """reimplementation of Module::event()."""
36 b2.B2ERROR(
'No EventMetaData found')
38 event = evtmetadata.obj().getEvent()
39 self.return_value(event // nevent)
43main = b2.create_path()
44main.add_module(
'RootInput', inputFileName=Dir + run +
'.root')
45main.add_module(
'ProgressBar')
48for i
in range(0, int(nfile)):
49 out.append(b2.create_path())
50 out[i].add_module(
'RootOutput', outputFileName=Dir + run +
'_' + str(i) +
'.root')
52 split.if_value(f
'>={i}', out[i])
54 split.if_value(f
'={i}', out[i])
a (simplified) python wrapper for StoreObjPtr.