Skip to content
Snippets Groups Projects
Commit 70a9202d authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

modified: ../CMakeLists.txt

	modified:   ../Framework/CMakeLists.txt
	modified:   ../Io/HepMC3/CMakeLists.txt
	modified:   ../Io/HepMC3/src/HepMC3Event.cpp
	modified:   ../Io/HepMC3/src/HepMC3Particle.cpp
	modified:   ../Io/Root/CMakeLists.txt
	modified:   ../Run/CMakeLists.txt
	new file:   CMakeLists.txt
	new file:   Makefile
	new file:   conf.py
	new file:   contents.rst
	new file:   index.rst
	new file:   intro.rst
	new file:   make.bat
	new file:   requirements.txt
parent 2025625c
No related branches found
No related tags found
No related merge requests found
...@@ -11,9 +11,11 @@ find_package(Acts REQUIRED COMPONENTS Core Fatras DigitizationPlugin Identifica ...@@ -11,9 +11,11 @@ find_package(Acts REQUIRED COMPONENTS Core Fatras DigitizationPlugin Identifica
#TGeoPlugin IdentificationPlugin DigitizationPlugin DD4hepPlugin JsonPlugin ) #TGeoPlugin IdentificationPlugin DigitizationPlugin DD4hepPlugin JsonPlugin )
find_package(DD4hep REQUIRED COMPONENTS DDCore) find_package(DD4hep REQUIRED COMPONENTS DDCore)
find_package(HepMC3 REQUIRED )
include_directories(/usr/local/include) include_directories(/usr/local/include)
include_directories(/usr/local/include/Acts) include_directories(/usr/local/include/Acts)
include_directories(/usr/local/include/ActsFatras) include_directories(/usr/local/include/ActsFatras)
include_directories($ENV{HOME}/include/ActsFatras)
set(Boost_NO_BOOST_CMAKE ON) # disable new cmake features from Boost 1.70 on set(Boost_NO_BOOST_CMAKE ON) # disable new cmake features from Boost 1.70 on
find_package(Eigen3 3.3 REQUIRED NO_MODULE) find_package(Eigen3 3.3 REQUIRED NO_MODULE)
...@@ -23,11 +25,8 @@ find_package(Threads) ...@@ -23,11 +25,8 @@ find_package(Threads)
add_subdirectory(thirdparty/dfelibs) add_subdirectory(thirdparty/dfelibs)
#add_subdirectory(Algorithms)
#add_subdirectory(Detectors)
add_subdirectory(Algorithms)
add_subdirectory(Detectors)
add_subdirectory(Framework) add_subdirectory(Framework)
add_subdirectory(Io) #add_subdirectory(Io)
add_subdirectory(Run) #add_subdirectory(Run)
...@@ -16,7 +16,6 @@ add_library( ...@@ -16,7 +16,6 @@ add_library(
src/Validation/ResPlotTool.cpp) src/Validation/ResPlotTool.cpp)
target_include_directories( target_include_directories(
ActsExamplesFramework ActsExamplesFramework
PUBLIC ${ACTSFatras_INCLUDES}
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
PRIVATE ${TBB_INCLUDE_DIRS}) PRIVATE ${TBB_INCLUDE_DIRS})
target_link_libraries( target_link_libraries(
......
find_package(HepMC3 REQUIRED)
add_library( add_library(
ActsExamplesIoHepMC3 SHARED ActsExamplesIoHepMC3 SHARED
src/HepMC3Event.cpp src/HepMC3Event.cpp
......
...@@ -233,10 +233,10 @@ std::vector<std::unique_ptr<FW::SimParticle>> FW::HepMC3Event::particles( ...@@ -233,10 +233,10 @@ std::vector<std::unique_ptr<FW::SimParticle>> FW::HepMC3Event::particles(
// Translate all particles // Translate all particles
for (auto& genParticle : genParticles) for (auto& genParticle : genParticles)
actsParticles.push_back(std::move( actsParticles.push_back(
simPart.particle(std::make_shared<HepMC3::GenParticle>(*genParticle)))); simPart.particle(std::make_shared<HepMC3::GenParticle>(*genParticle)));
return std::move(actsParticles); return actsParticles;
} }
std::vector<std::unique_ptr<FW::SimVertex>> FW::HepMC3Event::vertices( std::vector<std::unique_ptr<FW::SimVertex>> FW::HepMC3Event::vertices(
...@@ -248,10 +248,10 @@ std::vector<std::unique_ptr<FW::SimVertex>> FW::HepMC3Event::vertices( ...@@ -248,10 +248,10 @@ std::vector<std::unique_ptr<FW::SimVertex>> FW::HepMC3Event::vertices(
// Translate all vertices // Translate all vertices
for (auto& genVertex : genVertices) { for (auto& genVertex : genVertices) {
actsVertices.push_back(std::move(simVert.processVertex( actsVertices.push_back(
std::make_shared<HepMC3::GenVertex>(*genVertex)))); simVert.processVertex(std::make_shared<HepMC3::GenVertex>(*genVertex)));
} }
return std::move(actsVertices); return actsVertices;
} }
std::vector<std::unique_ptr<FW::SimParticle>> FW::HepMC3Event::beams( std::vector<std::unique_ptr<FW::SimParticle>> FW::HepMC3Event::beams(
...@@ -263,9 +263,9 @@ std::vector<std::unique_ptr<FW::SimParticle>> FW::HepMC3Event::beams( ...@@ -263,9 +263,9 @@ std::vector<std::unique_ptr<FW::SimParticle>> FW::HepMC3Event::beams(
// Translate beam particles and store the result // Translate beam particles and store the result
for (auto& genBeam : genBeams) for (auto& genBeam : genBeams)
actsBeams.push_back(std::move( actsBeams.push_back(
simPart.particle(std::make_shared<HepMC3::GenParticle>(*genBeam)))); simPart.particle(std::make_shared<HepMC3::GenParticle>(*genBeam)));
return std::move(actsBeams); return actsBeams;
} }
std::vector<std::unique_ptr<FW::SimParticle>> FW::HepMC3Event::finalState( std::vector<std::unique_ptr<FW::SimParticle>> FW::HepMC3Event::finalState(
......
...@@ -34,8 +34,8 @@ std::unique_ptr<FW::SimVertex> FW::HepMC3Particle::productionVertex( ...@@ -34,8 +34,8 @@ std::unique_ptr<FW::SimVertex> FW::HepMC3Particle::productionVertex(
// Return the vertex if it exists // Return the vertex if it exists
if (particle->production_vertex()) if (particle->production_vertex())
return std::move(simVert.processVertex( return simVert.processVertex(
std::make_shared<HepMC3::GenVertex>(*particle->production_vertex()))); std::make_shared<HepMC3::GenVertex>(*particle->production_vertex()));
else else
return nullptr; return nullptr;
} }
...@@ -46,8 +46,8 @@ std::unique_ptr<FW::SimVertex> FW::HepMC3Particle::endVertex( ...@@ -46,8 +46,8 @@ std::unique_ptr<FW::SimVertex> FW::HepMC3Particle::endVertex(
// Return the vertex if it exists // Return the vertex if it exists
if (particle->end_vertex()) if (particle->end_vertex())
return std::move(simVert.processVertex( return simVert.processVertex(
std::make_shared<HepMC3::GenVertex>(*(particle->end_vertex())))); std::make_shared<HepMC3::GenVertex>(*(particle->end_vertex())));
else else
return nullptr; return nullptr;
} }
......
...@@ -9,9 +9,10 @@ add_library( ...@@ -9,9 +9,10 @@ add_library(
src/RootPropagationStepsWriter.cpp src/RootPropagationStepsWriter.cpp
src/RootSimHitWriter.cpp src/RootSimHitWriter.cpp
src/RootTrackParameterWriter.cpp src/RootTrackParameterWriter.cpp
src/RootVertexAndTracksWriter.cpp #src/RootVertexAndTracksWriter.cpp
src/RootVertexAndTracksReader.cpp #src/RootVertexAndTracksReader.cpp
src/RootTrajectoryWriter.cpp) #src/RootTrajectoryWriter.cpp
)
target_include_directories( target_include_directories(
ActsExamplesIoRoot ActsExamplesIoRoot
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>) PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
...@@ -19,7 +20,8 @@ target_link_libraries( ...@@ -19,7 +20,8 @@ target_link_libraries(
ActsExamplesIoRoot ActsExamplesIoRoot
PUBLIC PUBLIC
ActsCore ActsDigitizationPlugin ActsIdentificationPlugin ActsCore ActsDigitizationPlugin ActsIdentificationPlugin
ActsExamplesFramework ActsExamplesPropagation ActsExamplesTruthTracking ActsExamplesFramework
#ActsExamplesPropagation ActsExamplesTruthTracking
Threads::Threads Threads::Threads
PRIVATE ROOT::Core ROOT::Hist ROOT::Tree) PRIVATE ROOT::Core ROOT::Hist ROOT::Tree)
......
...@@ -2,16 +2,16 @@ ...@@ -2,16 +2,16 @@
add_subdirectory(Common) add_subdirectory(Common)
# tools # tools
add_subdirectory(EventGenerator) #add_subdirectory(EventGenerator)
add_subdirectory(Geant4) #add_subdirectory(Geant4)
add_subdirectory(Fatras) #add_subdirectory(Fatras)
add_subdirectory(Geometry) #add_subdirectory(Geometry)
add_subdirectory(HelloWorld) add_subdirectory(HelloWorld)
add_subdirectory(HepMC3) add_subdirectory(HepMC3)
add_subdirectory(MagneticField) #add_subdirectory(MagneticField)
add_subdirectory(MaterialMapping) #add_subdirectory(MaterialMapping)
add_subdirectory(Misc) #add_subdirectory(Misc)
add_subdirectory(Propagation) #add_subdirectory(Propagation)
add_subdirectory(ReadCsv) #add_subdirectory(ReadCsv)
add_subdirectory(Reconstruction) #add_subdirectory(Reconstruction)
add_subdirectory(Vertexing) #add_subdirectory(Vertexing)
# from https://devblogs.microsoft.com/cppblog/clear-functional-c-documentation-with-sphinx-breathe-doxygen-cmake/
find_package(Doxygen REQUIRED)
# Find all the public headers
get_target_property(CAT_CUTIFIER_PUBLIC_HEADER_DIR CatCutifier INTERFACE_INCLUDE_DIRECTORIES)
file(GLOB_RECURSE CAT_CUTIFIER_PUBLIC_HEADERS ${CAT_CUTIFIER_PUBLIC_HEADER_DIR}/*.h)
set(DOXYGEN_INPUT_DIR ${PROJECT_SOURCE_DIR}/CatCutifier)
set(DOXYGEN_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/docs/doxygen)
set(DOXYGEN_INDEX_FILE ${DOXYGEN_OUTPUT_DIR}/html/index.html)
set(DOXYFILE_IN ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in)
set(DOXYFILE_OUT ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
#Replace variables inside @@ with the current values
configure_file(${DOXYFILE_IN} ${DOXYFILE_OUT} @ONLY)
file(MAKE_DIRECTORY ${DOXYGEN_OUTPUT_DIR}) #Doxygen won't create this for us
add_custom_command(OUTPUT ${DOXYGEN_INDEX_FILE}
DEPENDS ${CAT_CUTIFIER_PUBLIC_HEADERS}
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYFILE_OUT}
MAIN_DEPENDENCY ${DOXYFILE_OUT} ${DOXYFILE_IN}
COMMENT "Generating docs")
add_custom_target(Doxygen ALL DEPENDS ${DOXYGEN_INDEX_FILE})
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
import sphinx_rtd_theme
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
# -- Project information -----------------------------------------------------
project = 'NPdet'
copyright = '2020, Whitney Armstrong'
author = 'Whitney Armstrong'
# The full version, including alpha/beta/rc tags
release = '0.9'
# -- General configuration ---------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [ 'recommonmark','sphinx_rtd_theme', 'breathe', 'exhale' ]
# Setup the breathe extension
breathe_projects = {
"My Project": "./doxyoutput/xml"
}
breathe_default_project = "My Project"
# Setup the exhale extension
exhale_args = {
# These arguments are required
"containmentFolder": "./api",
"rootFileName": "library_root.rst",
"rootFileTitle": "Library API",
"doxygenStripFromPath": "..",
# Suggested optional arguments
"createTreeView": True,
# TIP: if using the sphinx-bootstrap-theme, you need
# "treeViewIsBootstrap": True,
"exhaleExecutesDoxygen": True,
"exhaleDoxygenStdin": "INPUT = ../src/GenericDetectors/beamline/src"
}
# Tell sphinx what the primary language being documented is.
primary_domain = 'cpp'
# Tell sphinx what the pygments highlight language should be.
highlight_language = 'cpp'
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
# -- Options for HTML output -------------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'
html_theme_options = {
'canonical_url': '',
'analytics_id': 'UA-XXXXXXX-1', # Provided by Google in your dashboard
'logo_only': False,
'display_version': True,
'prev_next_buttons_location': 'bottom',
'style_external_links': False,
#'vcs_pageview_mode': '',
'style_nav_header_background': 'white',
# Toc options
'collapse_navigation': True,
'sticky_navigation': True,
'navigation_depth': 4,
'includehidden': True,
'titles_only': False
}
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
.. toctree::
:maxdepth: 2
intro
.. solid documentation master file, created by
sphinx-quickstart on Tue Jun 2 16:27:33 2020.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Solid Framework
===============
.. toctree::
:maxdepth: 2
:caption: Contents:
contents
api/library_root
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
Introduction
============
@ECHO OFF
pushd %~dp0
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=.
set BUILDDIR=_build
if "%1" == "" goto help
%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end
:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
:end
popd
sphinx_rtd_theme
sphinx>=2.0
breathe>=4.13.0
exhale
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment