12 from b2test_utils
import configure_logging_for_tests, skip_test_if_light
13 from ROOT
import Belle2
16 configure_logging_for_tests()
17 basf2.set_random_seed(
"something important")
21 """Doesn't do anything."""
25 """Test to read relations in the input files."""
31 """reimplementation of Module::event().
33 prints PXD true and simhit indices, using relations
36 nevents = filemetadata.obj().getNEvents()
37 if self.
iEventiEvent < 12
and not nevents == 12:
38 basf2.B2FATAL(
"FileMetaData from file 1 not loaded!")
39 elif self.
iEventiEvent >= 12
and not nevents == 15:
40 basf2.B2FATAL(
"FileMetaData from file 2 not loaded!")
44 relations = hit.getRelationsFrom(
"PXDTrueHits")
45 for truehit
in relations:
46 print(
'truehit %d => hit %d' % (truehit.getArrayIndex(), hit.getArrayIndex()))
52 basf2.find_file(
'framework/tests/chaintest_1.root'),
53 basf2.find_file(
'framework/tests/chaintest_2.root')
56 basf2.conditions.disable_globaltag_replay()
63 main.add_module(
'RootInput', logLevel=basf2.LogLevel.WARNING, inputFileNames=inputfiles)
64 main.add_module(
'EventInfoPrinter')
65 main.add_module(
'PrintCollections', printForEvent=0)
A (simplified) python wrapper for StoreArray.
a (simplified) python wrapper for StoreObjPtr.