Skip to content

Commit fd576a7

Browse files
committed
Fix roundtrip test by not checking for collections that are not there
1 parent 982f8d3 commit fd576a7

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

tests/edm4hep_roundtrip.cpp

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,22 @@ int main() {
1919
const auto lcioEvent = EDM4hep2LCIOConv::convertEvent(origEvent, metadata);
2020
const auto roundtripEvent = LCIO2EDM4hepConv::convertEvent(lcioEvent.get());
2121

22-
ASSERT_SAME_OR_ABORT(edm4hep::CalorimeterHitCollection, "caloHits");
23-
ASSERT_SAME_OR_ABORT(edm4hep::MCParticleCollection, "mcParticles");
24-
ASSERT_SAME_OR_ABORT(edm4hep::SimCalorimeterHitCollection, "simCaloHits");
25-
ASSERT_SAME_OR_ABORT(edm4hep::SimTrackerHitCollection, "simTrackerHits");
26-
ASSERT_SAME_OR_ABORT(edm4hep::TrackCollection, "tracks");
27-
ASSERT_SAME_OR_ABORT(edm4hep::TrackerHit3DCollection, "trackerHits");
28-
ASSERT_SAME_OR_ABORT(edm4hep::TrackerHitPlaneCollection, "trackerHitPlanes");
29-
ASSERT_SAME_OR_ABORT(edm4hep::TrackerHitSimTrackerHitLinkCollection, "simTrackerHitLinks");
30-
ASSERT_SAME_OR_ABORT(edm4hep::ClusterCollection, "clusters");
31-
ASSERT_SAME_OR_ABORT(edm4hep::ReconstructedParticleCollection, "recos");
32-
ASSERT_SAME_OR_ABORT(edm4hep::ParticleIDCollection, "ParticleID_coll_1");
33-
ASSERT_SAME_OR_ABORT(edm4hep::ParticleIDCollection, "ParticleID_coll_2");
34-
ASSERT_SAME_OR_ABORT(edm4hep::ParticleIDCollection, "ParticleID_coll_3");
35-
ASSERT_SAME_OR_ABORT(edm4hep::RecoMCParticleLinkCollection, "mcRecoLinks");
36-
ASSERT_SAME_OR_ABORT(edm4hep::CaloHitSimCaloHitLinkCollection, "mcCaloHitsLinks");
22+
ASSERT_SAME_OR_ABORT(edm4hep::CalorimeterHitCollection, "caloHits")
23+
ASSERT_SAME_OR_ABORT(edm4hep::MCParticleCollection, "mcParticles")
24+
ASSERT_SAME_OR_ABORT(edm4hep::SimCalorimeterHitCollection, "simCaloHits")
25+
ASSERT_SAME_OR_ABORT(edm4hep::SimTrackerHitCollection, "simTrackerHits")
26+
ASSERT_SAME_OR_ABORT(edm4hep::TrackCollection, "tracks")
27+
ASSERT_SAME_OR_ABORT(edm4hep::TrackerHit3DCollection, "trackerHits")
28+
ASSERT_SAME_OR_ABORT(edm4hep::TrackerHitPlaneCollection, "trackerHitPlanes")
29+
ASSERT_SAME_OR_ABORT(edm4hep::TrackerHitSimTrackerHitLinkCollection, "simTrackerHitLinks")
30+
ASSERT_SAME_OR_ABORT(edm4hep::ClusterCollection, "clusters")
31+
ASSERT_SAME_OR_ABORT(edm4hep::ReconstructedParticleCollection, "recos")
32+
ASSERT_SAME_OR_ABORT(edm4hep::RecoMCParticleLinkCollection, "mcRecoLinks")
33+
ASSERT_SAME_OR_ABORT(edm4hep::CaloHitSimCaloHitLinkCollection, "mcCaloHitsLinks")
3734
ASSERT_SAME_OR_ABORT(edm4hep::RecDqdxCollection, "tracks_dQdx")
38-
ASSERT_SAME_OR_ABORT(edm4hep::VertexCollection, "vertices");
39-
ASSERT_SAME_OR_ABORT(edm4hep::ReconstructedParticleCollection, "vtx_recos");
40-
ASSERT_SAME_OR_ABORT(edm4hep::VertexRecoParticleLinkCollection, "startVtxLinks");
35+
ASSERT_SAME_OR_ABORT(edm4hep::VertexCollection, "vertices")
36+
ASSERT_SAME_OR_ABORT(edm4hep::ReconstructedParticleCollection, "vtx_recos")
37+
ASSERT_SAME_OR_ABORT(edm4hep::VertexRecoParticleLinkCollection, "startVtxLinks")
4138

4239
return 0;
4340
}

0 commit comments

Comments
 (0)