Skip to content

Commit

Permalink
Check Link collections in the same order as in yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Sep 16, 2024
1 parent 05b000a commit e1988f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_EDM4hepFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import pytest
from itertools import count

# For new simply copy these from createEDM4hepFile.py
# For now simply copy these from createEDM4hepFile.py
FRAMES = 3
VECTORSIZE = 5

Expand Down Expand Up @@ -497,12 +497,12 @@ def test_LinkCollections(event, particle, reco_particle, track):
simtracker_hit = event.get("SimTrackerHitCollection")[0]
vertex = event.get("VertexCollection")[0]

check_LinkCollection(event, "RecoMCParticleLink", reco_particle, particle)
check_LinkCollection(event, "CaloHitSimCaloHitLink", calo_hit, simcalo_hit)
check_LinkCollection(
event, "TrackerHitSimTrackerHitLink", tracker_hit, simtracker_hit
)
check_LinkCollection(event, "CaloHitMCParticleLink", calo_hit, particle)
check_LinkCollection(event, "ClusterMCParticleLink", cluster, particle)
check_LinkCollection(event, "TrackMCParticleLink", track, particle)
check_LinkCollection(event, "RecoMCParticleLink", reco_particle, particle)
check_LinkCollection(event, "VertexRecoParticleLink", vertex, reco_particle)

0 comments on commit e1988f5

Please sign in to comment.