Test to read relations in the input files.
Definition at line 17 of file chain_input.py.
◆ event()
reimplementation of Module::event().
prints PXD true and simhit indices, using relations
Definition at line 23 of file chain_input.py.
24 """reimplementation of Module::event().
26 prints PXD true and simhit indices, using relations
29 nevents = filemetadata.obj().getNEvents()
30 if self.iEvent < 12
and not nevents == 12:
31 basf2.B2FATAL(
"FileMetaData from file 1 not loaded!")
32 elif self.iEvent >= 12
and not nevents == 15:
33 basf2.B2FATAL(
"FileMetaData from file 2 not loaded!")
37 relations = hit.getRelationsFrom(
"PXDTrueHits")
38 for truehit
in relations:
39 print(
'truehit %d => hit %d' % (truehit.getArrayIndex(), hit.getArrayIndex()))
The documentation for this class was generated from the following file: