diff --git a/k4EDM4hep2LcioConv/include/k4EDM4hep2LcioConv/k4EDM4hep2LcioConv.h b/k4EDM4hep2LcioConv/include/k4EDM4hep2LcioConv/k4EDM4hep2LcioConv.h index 574fea2f..e30bb095 100644 --- a/k4EDM4hep2LcioConv/include/k4EDM4hep2LcioConv/k4EDM4hep2LcioConv.h +++ b/k4EDM4hep2LcioConv/include/k4EDM4hep2LcioConv/k4EDM4hep2LcioConv.h @@ -22,7 +22,15 @@ #include #include #include -#include +#if __has_include("edm4hep/TrackerHit3DCollection.h") +#include "edm4hep/TrackerHit3DCollection.h" +#else +#include "edm4hep/TrackerHitCollection.h" +namespace edm4hep { + using TrackerHit3DCollection = edm4hep::TrackerHitCollection; + using TrackerHit3D = edm4hep::TrackerHit; +} // namespace edm4hep +#endif #include #include diff --git a/k4EDM4hep2LcioConv/include/k4EDM4hep2LcioConv/k4Lcio2EDM4hepConv.h b/k4EDM4hep2LcioConv/include/k4EDM4hep2LcioConv/k4Lcio2EDM4hepConv.h index ffdf9392..2b92617c 100644 --- a/k4EDM4hep2LcioConv/include/k4EDM4hep2LcioConv/k4Lcio2EDM4hepConv.h +++ b/k4EDM4hep2LcioConv/include/k4EDM4hep2LcioConv/k4Lcio2EDM4hepConv.h @@ -24,7 +24,15 @@ #include "edm4hep/SimTrackerHitCollection.h" #include "edm4hep/RawTimeSeriesCollection.h" #include "edm4hep/TrackCollection.h" +#if __has_include("edm4hep/TrackerHit3DCollection.h") #include "edm4hep/TrackerHit3DCollection.h" +#else +#include "edm4hep/TrackerHitCollection.h" +namespace edm4hep { + using TrackerHit3DCollection = edm4hep::TrackerHitCollection; + using MutableTrackerHit3D = edm4hep::TrackerHit; +} // namespace edm4hep +#endif #include "edm4hep/TrackerHitPlaneCollection.h" #include "edm4hep/VertexCollection.h" diff --git a/tests/src/CompareEDM4hepEDM4hep.cc b/tests/src/CompareEDM4hepEDM4hep.cc index 06122224..6b560bef 100644 --- a/tests/src/CompareEDM4hepEDM4hep.cc +++ b/tests/src/CompareEDM4hepEDM4hep.cc @@ -5,7 +5,6 @@ #include "edm4hep/MCParticleCollection.h" #include "edm4hep/SimCalorimeterHitCollection.h" #include "edm4hep/TrackCollection.h" -#include "edm4hep/TrackerHit3DCollection.h" #include "edm4hep/TrackerHitPlaneCollection.h" #include "edm4hep/ClusterCollection.h" diff --git a/tests/src/CompareEDM4hepLCIO.h b/tests/src/CompareEDM4hepLCIO.h index ef98c60e..977496d1 100644 --- a/tests/src/CompareEDM4hepLCIO.h +++ b/tests/src/CompareEDM4hepLCIO.h @@ -23,7 +23,15 @@ #include "edm4hep/SimTrackerHitCollection.h" #include "edm4hep/RawTimeSeriesCollection.h" #include "edm4hep/TrackCollection.h" +#if __has_include("edm4hep/TrackerHit3DCollection.h") #include "edm4hep/TrackerHit3DCollection.h" +#else +#include "edm4hep/TrackerHitCollection.h" +namespace edm4hep { + using TrackerHit3DCollection = edm4hep::TrackerHitCollection; + using TrackerHit3D = edm4hep::TrackerHit; +} // namespace edm4hep +#endif #include "edm4hep/TrackerHitPlaneCollection.h" #include "edm4hep/VertexCollection.h" #include "podio/Frame.h" diff --git a/tests/src/EDM4hep2LCIOUtilities.cc b/tests/src/EDM4hep2LCIOUtilities.cc index e912e1ac..6f09e6b4 100644 --- a/tests/src/EDM4hep2LCIOUtilities.cc +++ b/tests/src/EDM4hep2LCIOUtilities.cc @@ -4,7 +4,14 @@ #include "edm4hep/MCParticleCollection.h" #include "edm4hep/RawCalorimeterHitCollection.h" #include "edm4hep/SimCalorimeterHitCollection.h" +#if __has_include("edm4hep/TrackerHit3DCollection.h") #include "edm4hep/TrackerHit3DCollection.h" +#else +#include "edm4hep/TrackerHitCollection.h" +namespace edm4hep { + using TrackerHit3DCollection = edm4hep::TrackerHitCollection; +} // namespace edm4hep +#endif #include #include #include diff --git a/tests/src/EDM4hep2LCIOUtilities.h b/tests/src/EDM4hep2LCIOUtilities.h index 071aca3d..b4cda5df 100644 --- a/tests/src/EDM4hep2LCIOUtilities.h +++ b/tests/src/EDM4hep2LCIOUtilities.h @@ -6,12 +6,20 @@ #include #include +#if __has_include("edm4hep/TrackerHit3DCollection.h") +#include "edm4hep/TrackerHit3DCollection.h" +#else +#include "edm4hep/TrackerHitCollection.h" +namespace edm4hep { + using TrackerHit3DCollection = edm4hep::TrackerHitCollection; +} // namespace edm4hep +#endif + namespace edm4hep { class CalorimeterHitCollection; class MCParticleCollection; class RawCalorimeterHitCollection; class RawTimeSeriesCollection; - class TrackerHit3DCollection; class TrackerHitPlaneCollection; class TrackCollection; class SimCalorimeterHitCollection; diff --git a/tests/src/ObjectMapping.cc b/tests/src/ObjectMapping.cc index 9c2c9454..a6ac8bb8 100644 --- a/tests/src/ObjectMapping.cc +++ b/tests/src/ObjectMapping.cc @@ -18,7 +18,14 @@ #include "UTIL/LCIterator.h" #include "edm4hep/TrackCollection.h" +#if __has_include("edm4hep/TrackerHit3DCollection.h") #include "edm4hep/TrackerHit3DCollection.h" +#else +#include "edm4hep/TrackerHitCollection.h" +namespace edm4hep { + using TrackerHit3DCollection = edm4hep::TrackerHitCollection; +} // namespace edm4hep +#endif #include "edm4hep/TrackerHitPlaneCollection.h" #include "edm4hep/SimTrackerHitCollection.h" #include "edm4hep/ClusterCollection.h"