Class to check the presence of a relation between a Track and an MCParticle
Definition at line 18 of file track_to_mcparticle_relation_test.py.
◆ event()
Event loop
Definition at line 32 of file track_to_mcparticle_relation_test.py.
34 assert self.MCParticles.getEntries() > 0,
"Size of MCParticles StoreArray is 0."
35 assert self.Tracks.getEntries() > 0,
"Size of Tracks StoreArray is 0."
36 for track
in self.Tracks:
37 track_to_mcparticle_relations = track.getRelationsTo(
'MCParticles')
38 assert track_to_mcparticle_relations.size() > 0,
"Somehow there are no relations from this track to an MCParticle. \
39 Why? I don't know. Likely the track is from a fake RecoTrack."
44 set_random_seed(12345)
◆ initialize()
The documentation for this class was generated from the following file: