-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
put compat include in separate header
- Loading branch information
1 parent
d9157ba
commit d69324a
Showing
3 changed files
with
26 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
Plugins/EDM4hep/include/Acts/Plugins/EDM4hep/TrackerHitCompatibility.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// This file is part of the ACTS project. | ||
// | ||
// Copyright (C) 2016 CERN for the benefit of the ACTS project | ||
// | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
||
#pragma once | ||
|
||
// Compatibility with EDM4hep < 0.99 and >= 0.99 | ||
#if __has_include(<edm4hep/TrackerHit3D.h>) | ||
#include "edm4hep/TrackerHit3D.h" | ||
#include "edm4hep/TrackerHit3DCollection.h" | ||
#else | ||
#include "edm4hep/TrackerHit.h" | ||
#include "edm4hep/TrackerHitCollection.h" | ||
namespace edm4hep { | ||
using TrackerHit3DCollection = edm4hep::TrackerHitCollection; | ||
using TrackerHit3D = edm4hep::TrackerHit; | ||
} // namespace edm4hep | ||
#endif |