-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #352 from JeffersonLab/nbrei_podio_example_refacto…
…ring Refactor PodioExample
- Loading branch information
Showing
36 changed files
with
359 additions
and
354 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
if (USE_PODIO) | ||
|
||
PODIO_GENERATE_DATAMODEL(PodioDatamodel datamodel.yaml headers sources | ||
IO_BACKEND_HANDLERS ROOT | ||
OUTPUT_FOLDER ${CMAKE_CURRENT_BINARY_DIR} | ||
) | ||
|
||
PODIO_ADD_DATAMODEL_CORE_LIB(PodioDatamodel "${headers}" "${sources}" | ||
OUTPUT_FOLDER ${CMAKE_CURRENT_BINARY_DIR}) | ||
|
||
PODIO_ADD_ROOT_IO_DICT(PodioDatamodelDict PodioDatamodel "${headers}" | ||
${CMAKE_CURRENT_BINARY_DIR}/src/selection.xml) | ||
|
||
install(TARGETS PodioDatamodel | ||
EXPORT jana2_targets | ||
LIBRARY DESTINATION lib | ||
PUBLIC_HEADER DESTINATION include/JANA/examples/PodioDatamodel | ||
) | ||
|
||
install(TARGETS PodioDatamodelDict | ||
EXPORT jana2_targets | ||
DESTINATION lib | ||
) | ||
|
||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/PodioDatamodelDictDict.rootmap DESTINATION lib) | ||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libPodioDatamodelDict_rdict.pcm DESTINATION lib) | ||
|
||
else() | ||
message(STATUS "Skipping examples/PodioDatamodel because USE_PODIO=Off") | ||
|
||
endif() | ||
|
||
|
||
|
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,11 @@ | ||
|
||
PodioDatamodel | ||
============== | ||
|
||
This example shows how to define and integrate a PODIO data model within a JANA project. | ||
The entire data model is defined within a single YAML file. The generated files can be found | ||
in the build directory. The headers are installed to `$CMAKE_INSTALL_PREFIX/include/examples/PodioDatamodel` | ||
and the shared library is installed to `$CMAKE_INSTALL_PREFIX/lib`. | ||
|
||
This data model is used by `PodioExample`, `TimesliceExample`, and more. | ||
|
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 was deleted.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
|
||
if (USE_PODIO) | ||
|
||
add_jana_plugin(PodioFileReader) | ||
|
||
target_link_libraries(PodioFileReader | ||
PUBLIC PodioDatamodel PodioDatamodelDict podio::podioRootIO) | ||
|
||
else() | ||
message(STATUS "Skipping examples/PodioFileReader because USE_PODIO=Off") | ||
|
||
endif() | ||
|
||
|
||
|
Oops, something went wrong.