-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add extension data model with interface
add test for interface with types from data model and its extension
- Loading branch information
Showing
5 changed files
with
79 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
schema_version: 1 | ||
options: | ||
getSyntax: False | ||
exposePODMembers: False | ||
includeSubfolder: True | ||
|
||
components: | ||
iextension::PolarVector: | ||
Members: | ||
- float r | ||
- float theta | ||
- float phi | ||
|
||
datatypes: | ||
iextension::AnotherHit: | ||
Author: "Mateusz Jakub Fila" | ||
Description: "A datatype in the extension with components from the extension and an upstream datamodel" | ||
Members: | ||
- unsigned long long cellID // cellID | ||
- SimpleStruct aStruct // component defined in an upstream datamodel | ||
- iextension::PolarVector aVector // component defined in the extension | ||
- double energy [GeV] // measured energy deposit | ||
|
||
interfaces: | ||
iextension::EnergyInterface: | ||
Description: "Generic interface for types with an energy member" | ||
Author: "Mateusz Jakub Fila" | ||
Types: | ||
- ExampleHit | ||
- ExampleMC | ||
- ExampleCluster | ||
- iextension::AnotherHit | ||
Members: | ||
- double energy // the energy |
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