-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to templated links and remove explicit declarations from yaml …
…file (#373) * Replace Link datatypes with type defs * Implement necessary schema evolution to read old links * Simplify schema evolution code by reusing buffers * Use new links category to define links * Remove legacy association headers * Re-organize headers slightly * Fix README links * Rename old schema (evolution) shared lib
- Loading branch information
Showing
29 changed files
with
267 additions
and
447 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
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
23 changes: 23 additions & 0 deletions
23
edm4hep/schema_evolution/include/edm4hep/schema_evolution/OldLinkData.h
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,23 @@ | ||
#ifndef EDM4HEP_SCHEMA_EVOLUTION_OLDLINKDATA_H | ||
#define EDM4HEP_SCHEMA_EVOLUTION_OLDLINKDATA_H | ||
|
||
#define MAKE_DATA_STRUCT(name) \ | ||
struct name { \ | ||
float weight{}; \ | ||
}; | ||
|
||
namespace edm4hep { | ||
|
||
MAKE_DATA_STRUCT(RecoMCParticleLinkData) | ||
MAKE_DATA_STRUCT(CaloHitMCParticleLinkData) | ||
MAKE_DATA_STRUCT(ClusterMCParticleLinkData) | ||
MAKE_DATA_STRUCT(TrackMCParticleLinkData) | ||
MAKE_DATA_STRUCT(CaloHitSimCaloHitLinkData) | ||
MAKE_DATA_STRUCT(TrackerHitSimTrackerHitLinkData) | ||
MAKE_DATA_STRUCT(VertexRecoParticleLinkData) | ||
|
||
} // namespace edm4hep | ||
|
||
#undef MAKE_DATA_STRUCT | ||
|
||
#endif // EDM4HEP_SCHEMA_EVOLUTION_OLDLINKDATA_H |
Oops, something went wrong.