12from b2test_utils
import configure_logging_for_tests, skip_test_if_light
13from ROOT
import Belle2
16configure_logging_for_tests()
17basf2.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.
iEvent < 12
and not nevents == 12:
38 basf2.B2FATAL(
"FileMetaData from file 1 not loaded!")
39 elif self.
iEvent >= 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(f
'truehit {truehit.getArrayIndex()} => hit {hit.getArrayIndex()}')
52 basf2.find_file(
'framework/tests/chaintest_1.root'),
53 basf2.find_file(
'framework/tests/chaintest_2.root')
56basf2.conditions.disable_globaltag_replay()
63main.add_module(
'RootInput', logLevel=basf2.LogLevel.WARNING, inputFileNames=inputfiles)
64main.add_module(
'EventInfoPrinter')
65main.add_module(
'PrintCollections', printForEvent=0)
A (simplified) python wrapper for StoreArray.
a (simplified) python wrapper for StoreObjPtr.