diff --git a/.buildinfo b/.buildinfo new file mode 100644 index 0000000..2b5bcbc --- /dev/null +++ b/.buildinfo @@ -0,0 +1,4 @@ +# Sphinx build info version 1 +# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. +config: 9aebcaefee23913067f0f36df992be0f +tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/.github/scripts/yamlheader.html b/.github/scripts/yamlheader.html new file mode 100644 index 0000000..34038e0 --- /dev/null +++ b/.github/scripts/yamlheader.html @@ -0,0 +1,357 @@ + + + + + + + <no title> — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ + + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/CONDUCT.html b/CONDUCT.html new file mode 100644 index 0000000..d2b7c4d --- /dev/null +++ b/CONDUCT.html @@ -0,0 +1,372 @@ + + + + + + + Contributor Code of Conduct — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Contributor Code of Conduct

+

As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.

+

We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.

+

Examples of unacceptable behaviour by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.

+

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.

+

Instances of abusive, harassing, or otherwise unacceptable behaviour may be reported by opening an issue or contacting one or more of the project maintainers.

+

This Code of Conduct is adapted from the Contributor Covenant, version 1.0.0, available at https://contributor-covenant.org/version/1/0/0/.

+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/CONTRIBUTING.html b/CONTRIBUTING.html new file mode 100644 index 0000000..c56f33c --- /dev/null +++ b/CONTRIBUTING.html @@ -0,0 +1,391 @@ + + + + + + + Contributing — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Contributing

+

Key4hep is an open source project, and we welcome contributions of all kinds:

+
    +
  • New lessons

  • +
  • Fixes to existing material

  • +
  • Bug reports

  • +
  • Reviews of proposed changes

  • +
+

By contributing, you are agreeing that we may redistribute your work under +these licenses. You also agree to abide by our contributor code of +conduct.

+
+

Getting Started

+
    +
  1. We use the fork and pull model to manage changes. +More information about forking a repository and making a Pull Request.

  2. +
  3. You should branch from and submit pull requests against the main branch +(in some repositories it may still be master but this will change in the +future to main).

  4. +
  5. If you’re looking for things to work on, feel free to get in touch with the +Key4hep team at key4hep dash sw @ cern dot ch. You can also have a look at +the the list of issues for this repository. Comments on issues and +reviews of pull requests are equally welcome.

  6. +
+
+
+
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/LICENSE.html b/LICENSE.html new file mode 100644 index 0000000..a62c993 --- /dev/null +++ b/LICENSE.html @@ -0,0 +1,367 @@ + + + + + + + Software — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Software

+

Except where otherwise noted, the example programs and other software provided +by Software Carpentry are made available under the OSI-approved Apache +2.0.

+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/_images/doxygen_class_list.png b/_images/doxygen_class_list.png new file mode 100644 index 0000000..6b9a2c6 Binary files /dev/null and b/_images/doxygen_class_list.png differ diff --git a/_images/doxygen_reco_particle.png b/_images/doxygen_reco_particle.png new file mode 100644 index 0000000..763e9ad Binary files /dev/null and b/_images/doxygen_reco_particle.png differ diff --git a/_images/doxygen_type_table.png b/_images/doxygen_type_table.png new file mode 100644 index 0000000..f61e85a Binary files /dev/null and b/_images/doxygen_type_table.png differ diff --git a/_images/edm4hep_branches_1.png b/_images/edm4hep_branches_1.png new file mode 100644 index 0000000..703d505 Binary files /dev/null and b/_images/edm4hep_branches_1.png differ diff --git a/_images/edm4hep_browse_relations_1.png b/_images/edm4hep_browse_relations_1.png new file mode 100644 index 0000000..747cbe7 Binary files /dev/null and b/_images/edm4hep_browse_relations_1.png differ diff --git a/_images/edm4hep_doxygen.png b/_images/edm4hep_doxygen.png new file mode 100644 index 0000000..ab17647 Binary files /dev/null and b/_images/edm4hep_doxygen.png differ diff --git a/_images/key4hep_logo1.svg b/_images/key4hep_logo1.svg new file mode 100644 index 0000000..52093c9 --- /dev/null +++ b/_images/key4hep_logo1.svg @@ -0,0 +1,167 @@ + + + + + + + + + + image/svg+xml + + + + + + + K + + + + + Y + E + HEP + 4 + + + + diff --git a/_images/key4hep_logo2.svg b/_images/key4hep_logo2.svg new file mode 100644 index 0000000..956c304 --- /dev/null +++ b/_images/key4hep_logo2.svg @@ -0,0 +1,607 @@ + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + Key4HEP + + + + diff --git a/_images/key4hep_logo3.png b/_images/key4hep_logo3.png new file mode 100644 index 0000000..3194eb6 Binary files /dev/null and b/_images/key4hep_logo3.png differ diff --git a/_images/key4hep_logo6.svg b/_images/key4hep_logo6.svg new file mode 100644 index 0000000..819f427 --- /dev/null +++ b/_images/key4hep_logo6.svg @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 4hep + Key + + diff --git a/_images/key4hep_logo6p1.svg b/_images/key4hep_logo6p1.svg new file mode 100644 index 0000000..95fd45c --- /dev/null +++ b/_images/key4hep_logo6p1.svg @@ -0,0 +1,164 @@ + + + + + + + + + + + + + + Key + + + + + + + + + + + + + + + + 4hep + + + + + + + + + + + + + diff --git a/_images/key4hep_logo7.svg b/_images/key4hep_logo7.svg new file mode 100644 index 0000000..9aaff22 --- /dev/null +++ b/_images/key4hep_logo7.svg @@ -0,0 +1,23 @@ + + + key4hep_v0 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/_images/key4hep_logo7p1.svg b/_images/key4hep_logo7p1.svg new file mode 100644 index 0000000..77a799c --- /dev/null +++ b/_images/key4hep_logo7p1.svg @@ -0,0 +1,23 @@ + + + key4hep_v1 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/_images/marlin_wrapper_tools.png b/_images/marlin_wrapper_tools.png new file mode 100644 index 0000000..1312b0f Binary files /dev/null and b/_images/marlin_wrapper_tools.png differ diff --git a/_sources/.github/scripts/yamlheader.md.txt b/_sources/.github/scripts/yamlheader.md.txt new file mode 100644 index 0000000..a37817e --- /dev/null +++ b/_sources/.github/scripts/yamlheader.md.txt @@ -0,0 +1,8 @@ +--- +jupyter: + kernelspec: + display_name: Python 3 + language: python + name: python3 +--- + diff --git a/_sources/CONDUCT.md.txt b/_sources/CONDUCT.md.txt new file mode 100644 index 0000000..922ba82 --- /dev/null +++ b/_sources/CONDUCT.md.txt @@ -0,0 +1,13 @@ +# Contributor Code of Conduct + +As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities. + +We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion. + +Examples of unacceptable behaviour by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct. + +Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team. + +Instances of abusive, harassing, or otherwise unacceptable behaviour may be reported by opening an issue or contacting one or more of the project maintainers. + +This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/), version 1.0.0, available at [https://contributor-covenant.org/version/1/0/0/](https://www.contributor-covenant.org/version/1/0/0/). diff --git a/_sources/CONTRIBUTING.md.txt b/_sources/CONTRIBUTING.md.txt new file mode 100644 index 0000000..71b15d2 --- /dev/null +++ b/_sources/CONTRIBUTING.md.txt @@ -0,0 +1,43 @@ +# Contributing + +Key4hep is an open source project, and we welcome contributions of all kinds: + +* New lessons +* Fixes to existing material +* Bug reports +* Reviews of proposed changes + +By contributing, you are agreeing that we may redistribute your work under +[these licenses][license]. You also agree to abide by our [contributor code of +conduct][conduct]. + +## Getting Started + +1. We use the [fork and pull][gh-fork-pull] model to manage changes. + More information about [forking a repository][gh-fork] and [making a Pull Request][gh-pull]. + +2. You should branch from and submit pull requests against the `main` branch + (in some repositories it may still be `master` but this will change in the + future to `main`). + +3. If you're looking for things to work on, feel free to get in touch with the + Key4hep team at key4hep dash sw @ cern dot ch. You can also have a look at + the [the list of issues for this repository][issues]. Comments on issues and + reviews of pull requests are equally welcome. + +[conduct]: CONDUCT.md +[issues]: https://github.com/search?o=desc&q=org%3Akey4hep&s=created&type=Issues +[license]: LICENSE.md +[pro-git-chapter]: http://git-scm.com/book/en/v2/GitHub-Contributing-to-a-Project +[gh-fork]: https://help.github.com/en/articles/fork-a-repo +[gh-pull]: https://help.github.com/en/articles/about-pull-requests +[gh-fork-pull]: https://reflectoring.io/github-fork-and-pull/ + + +```eval_rst +.. toctree:: + :hidden: + + CONDUCT.md + LICENSE.md +``` diff --git a/_sources/LICENSE.md.txt b/_sources/LICENSE.md.txt new file mode 100644 index 0000000..fa5ecc4 --- /dev/null +++ b/_sources/LICENSE.md.txt @@ -0,0 +1,8 @@ +# Software + +Except where otherwise noted, the example programs and other software provided +by Software Carpentry are made available under the [OSI][osi]-approved [Apache +2.0][license]. + +[license]: https://opensource.org/license/apache-2-0/ +[osi]: https://opensource.org diff --git a/_sources/call-for-logos/README.md.txt b/_sources/call-for-logos/README.md.txt new file mode 100644 index 0000000..c1e3e72 --- /dev/null +++ b/_sources/call-for-logos/README.md.txt @@ -0,0 +1,31 @@ +# Call for logos + +Logo 1 + +![](key4hep_logo1.svg) + +Logo 2 + +![](key4hep_logo2.svg) + +Logo 3 + +![](key4hep_logo3.png) + +Logo 4 + + + +Logo 5 + + + +Logo 6 + +![](key4hep_logo6.svg) +![](key4hep_logo6p1.svg) + +Logo 7 + +![](key4hep_logo7.svg) +![](key4hep_logo7p1.svg) diff --git a/_sources/contents.md.txt b/_sources/contents.md.txt new file mode 100644 index 0000000..58e67e6 --- /dev/null +++ b/_sources/contents.md.txt @@ -0,0 +1,29 @@ +# Key4hep + + +```eval_rst +.. toctree:: + :maxdepth: 3 + :includehidden: + :caption: Contents: + + setup-and-getting-started/README.md + how-tos/README.md + tutorials/README.md + developing-key4hep-software/README.md + spack-build-instructions-for-librarians/README.md + talks-and-presentations/README.md + call-for-logos/README.md + CONTRIBUTING.md + +.. toctree:: + :maxdepth: 2 + :includehidden: + :caption: External links: + + FCC software + CLIC software + ILC software + CEPC software +``` + diff --git a/_sources/developing-key4hep-software/CMakeBuild.md.txt b/_sources/developing-key4hep-software/CMakeBuild.md.txt new file mode 100644 index 0000000..c2a2993 --- /dev/null +++ b/_sources/developing-key4hep-software/CMakeBuild.md.txt @@ -0,0 +1,97 @@ +# Building Key4hep using CMake: For Developers + +A common problem when developing is needing to build multiple packages on top of +the stack to test changes in several repositories. One way of doing this is +using Spack but there is an experimental way using cmake. + +First, source the releases or the nightlies as usual. Then, run the following +command: + +``` +/cvmfs/sw-nightlies.hsf.org/key4hep/experimental/setup.py pkg1 pkg2 +``` + +Where `pkg1` and `pkg2` are the packages that will be cloned (can be empty). On +top of that, `setup.py` checks for folders (or symbolic links) in the current +directory that contain `CMakeLists.txt`. This can be useful if we want to use a +local version and don't need to clone some repositories. After running the +command, a CMakeLists.txt file will appear. We may have to edit it manually if +we are using packages that are not recognized or are in a different organization +than the predefined ones. The information that we'll need to edit is most likely +one of the first lines at the top: + +``` +set(pkgs EDM4hep k4FWCore) +``` +that sets the packages that will be built in their right build order. +and the individual `FetchContent_Declare` entries for each package. + +After we are happy with the CMakeLists.txt file, it's important that we set the +new environment variables: + +``` bash +mkdir install +cd install +export PATH=$PWD/bin:$PATH +export LD_LIBRARY_PATH=$PWD/lib:$PWD/lib64:$LD_LIBRARY_PATH +export ROOT_INCLUDE_PATH=$PWD/include:$ROOT_INCLUDE_PATH +export PYTHONPATH=$PWD/python:$PYTHONPATH +export CMAKE_PREFIX_PATH=$PWD:$CMAKE_PREFIX_PATH +cd .. +``` + +Then, we can run the usual commands for building: + +``` +mkdir build +cd build +cmake .. -DCMAKE_INSTALL_PREFIX=../install +make -j N install +``` + +and it will build all the packages at the same time, so it may take some time. Symbolic links are +created in the build directory for each package that allow us to run `ctest` like: + +``` bash +cd k4FWCore +ctest -j 2 +``` + +in case we are building k4FWCore. + +For the cloned directories, in case we want to clone a different commit or +branch from the master/main branch, this can be done by editing the +CMakeLists.txt + + +## Possible issues + +Not everything has been tested so it's likely some things won't work. For +many packages there are recent changes that enable these builds so using older +versions probably won't work. + +## Packages that have been tested + +The following packages have been built together successfully so it should be +possible to build any combination of them: +- podio +- EDM4hep +- k4FWCore +- LCIO +- ILCUTIL +- LCCD +- GEAR +- Marlin +- k4EDM4hep2LcioConv +- k4MarlinWrapper + +## Changing to a different commit or branch + +If we don't want to build the master or main branch of the repositories we are +cloning, we have two options: + +- Set the commit or branch we want in the `CMakeLists.txt` in the corresponding + `FetchContent_Declare` entry by changing `GIT_TAG` to whatever commit or branch + we want to checkout. +- Go to the source directory, which can be found in the build directory under + `_deps/-src` and checkout manually whatever commit or branch you want. diff --git a/_sources/developing-key4hep-software/Key4hepCMakeGuide.md.txt b/_sources/developing-key4hep-software/Key4hepCMakeGuide.md.txt new file mode 100644 index 0000000..bbfdb70 --- /dev/null +++ b/_sources/developing-key4hep-software/Key4hepCMakeGuide.md.txt @@ -0,0 +1,131 @@ +# CMake guide for Key4hep software + +## Overview + +CMake is a tool for building software, which has become the de-facto +standard outside HEP. In HEP, it is for example used by the ILC/CLIC +communities and by the LHCb collaboration. For CMS people, CMake is the +equivalent of scram. + +## Quick start into building Key4hep Software + +### Set up the environment + +The first step is adding all dependencies to the bash environment. +In case you are unsure, it is best to use the default init script, provided on CVMFS for Centos7: + +``` +source /cvmfs/sw.hsf.org/key4hep/setup.sh +``` + +Note that mixing setup scripts (from another package, for example) may or may not work as intended - more likely not. +For any requests to changes in the environment, feel free to contact the software team on the mailing list or any other channels. +Developers may also look into `spack` to have more fine-grained control over the build dependencies. + + +### Running CMake + +* Create a build directory: `mkdir build; cd build` +* Run CMake in the build directory: `cmake .. ` +* Change any cmake options by rerunning cmake.\ + For example: `cmake .. -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=Debug`.\ + Tools like ccmake may also be useful: `ccmake ..` +* Compile the software, using all the cpus available: ```make -j `getconf _NPROCESSORS_ONLN` ``` +* Install by running `make install` +* In case any dependency is changed, most likely you need to remove all the contents of the build folder and rerun cmake and the compilation. + +### Using your local installation + +In order to run the code you just installed, there are a few environment variables to set up (assuming the installation directory is the working directory): + +``` +mkdir build; cd build +cmake .. -DCMAKE_INSTALL_PREFIX=../InstallArea +make install +cd ../InstallArea +``` + +* `export CMAKE_PREFIX_PATH=$PWD/:$CMAKE_PREFIX_PATH` + - in order to use this installation as a dependency for other packages +* `export PATH=$PWD/bin/:$PATH` + - in order to make any executables available on the command line +* `export LD_LIBRARY_PATH=$PWD/lib:$PWD/lib64:$LD_LIBRARY_PATH` + - in order to make libraries available for linking and for the plugin systems in Gaudi/DD4hep +* `export PYTHONPATH=$PWD/python:$PYTHONPATH` + - in order to make libraries available for linking and for the plugin systems in Gaudi/DD4hep +* `export ROOT_INCLUDE_PATH=$PWD/include:$ROOT_INCLUDE_PATH` + - in case the package builds ROOT dictionaries +* `export =$PWD/share/` + - some packages distribute data files that are found with a special environment variable, usually this is the package name in all caps. + - e.g. `export K4SIMDELPHES=$PWD/share/k4SimDelphes/` + +## CMake example packages + +Colin provides [a few simple CMake +examples](https://github.com/cbernet/cmake-examples). They are helpful to understand the basics of +CMake. + +Get these packages: + + git clone https://github.com/cbernet/cmake-examples.git + cd cmake-examples + +Follow the instructions in +[README.md](https://github.com/cbernet/cmake-examples/blob/master/README.md). + +## Changing the CMake Configuration + + +When adding new source files to a package, the CMake build system needs +to be made aware of them. Usually `CMakeLists.txt` contains a wildcard +expression that adds all implementation files in a subfolder, e.g. +`src/*.cpp` , so there is no need to explicitly add the names of the +new files. To update the list of files, it is fastest to run +`make configure` . + +Note that when changing the name of a property of an algorithm or a +tool, `make` (and not only `make packagename` ) needs to be run for +Gaudi to be aware of the change. + + +### Runtime Environment + +Key4hep packages, in particular the gaudi framework components, consist of executables, headers, scripts, dynamic libraries, xmls and special files describing gaudi components. +In order to use these, some environment variables need to be set. + +Gaudi also offers the possibility to set up the environment via the `xenv` command. This is done by simply prefixing the command you want to run with the `run` script in the top level directory of FCCSW, or directly in the build directory. + +```bash +./build/run key4run Examples/options/pythia.py +``` + +Sometimes it is convenient to run FCCSW directly from the binaries in the build directory without installing them. +This can be done by using the `run` script in the build directory, or setting the environment variables as in `setup.sh` for the build folder. +Note that the directories in the build folder differ a bit. Mostly it is important the the LD_LIBRARY_PATH is pre-fixed with the library directories. The fccrun command should pick up the components from the build folder then. + + + +## CTest in Key4hep + +Key4hep also uses CMake for integration tests. +They are added with `add_test()` and can be run with `make test` in the build folder. For Gaudi packages, the environment should be set so they can be run also in a build environments, see https://github.com/HEP-FCC/k4Gen/blob/main/k4Gen/CMakeLists.txt + + + +### Customizing how CMake is run + +An environment variable is used to forward command line arguments to the cmake command, for example to run cmake with the `trace` option: + +``` +CMAKEFLAGS='--trace' make +``` + +{% callout "How do I check compilation flags?" %} + +Instead of running ` make` , run: + + ```bash + make VERBOSE=1 + ``` + +{% endcallout %} diff --git a/_sources/developing-key4hep-software/Key4hepSoftwareGit.md.txt b/_sources/developing-key4hep-software/Key4hepSoftwareGit.md.txt new file mode 100644 index 0000000..db9baae --- /dev/null +++ b/_sources/developing-key4hep-software/Key4hepSoftwareGit.md.txt @@ -0,0 +1,193 @@ +# Github workflow and contribution guide + +## Overview + +This page should allow users that are new to Git to get started with Key4hep software, and describes the workflow for accessing and contributing code. + +For a general introduction to git, have a look at these tutorials: + +- [Atlassian tutorial](https://www.atlassian.com/git/tutorials/) +- [Interactive tutorial](http://pcottle.github.io/learnGitBranching/) +- [The git book](https://git-scm.com/book/en/v2) + +## First time setup of git + +Please refer to [this tutorial](https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup) and the [GitHub help](https://help.github.com/articles/set-up-git/). + +## Generate and set up ssh keys for github + +We recommend to clone github repositories via SSH, especially if you want to +contribute code. For this to work, you need to generate ssh keys for +authentication. See the corresponding github +[help-page](https://help.github.com/articles/generating-an-ssh-key/). + +{% callout "Generate and set up ssh keys for github" %} + + If you only want to use the software it may be easier to use https. In that case you don't need to generate the keys but have to replace `git@github:` with `https://github.com/` in all the instructions. Note that you'll not be able to push to your repository when you are on lxplus. You can also start using https for now and later re-add your repository with ssh authentication, see the [trouble shooting section](#trouble-shooting). + +{% endcallout %} + + +## Improving your git experience + +It may be useful to install [Git integration tools](https://github.com/git/git/tree/master/contrib/completion) for your shell that allow tab-completion of most git commands and also can show you in your prompt on which branch you currently are, what changes you have pending, etc. + +## Development workflow + +For any key4hep repository (taking `k4SimDelphes` as an example), you will be using (at least) 3 sources: + +1. The official [Key4hep repository on github](https://github.com/key4hep/k4SimDelphes) +2. Your fork of the repository (see [github help](https://help.github.com/articles/fork-a-repo/) on what that means) +3. Your local repository in your work area (e.g. on AFS) + +The repositories 1 and 2 are added as remote to the repository 3: + +```bash +git clone git@github.com:[YOUR_GITHUB_USER]/k4SimDelphes.git # create a local copy (3) of your fork (2) +cd k4SimDelphes +git remote add upstream git@github.com:key4hep/k4SimDelphes.git # add official repo (1) as additional remote +``` + +### Keeping your local repository up to date + +- fetch all changes from the official repository (1) + + ```bash + git fetch --all --prune + ``` + +- rebase your development area to the master branch from the official repository (1), **please read [this](https://www.atlassian.com/git/tutorials/rewriting-history) to avoid loss of work** + + ```bash + git rebase -i upstream/main + ``` + + in this process you can also fix any commits that need touching up, **be aware that deleting commits in the list will result also in the deletion of the corresponding changes** (more info in the [GitHub help](https://help.github.com/articles/about-git-rebase/) and the [Atlassian tutorial](https://www.atlassian.com/git/tutorials/rewriting-history)) + +- push your local changes to your fork (2), see [below](#contributing-code) how to create a local branch + + ``` + git push origin [NAME_OF_LOCAL_BRANCH] + ``` + +### Contributing code + +- if you are fixing a bug, first create an issue in the github issue tracker. +- develop your feature in your local copy (3) on a local branch of your choice, to create a branch do: + + ``` + git branch -b [NAME_OF_LOCAL_BRANCH] + ``` + +- refer to [this tutorial](https://www.atlassian.com/git/tutorials/saving-changes) to see how to commit changes +- occasionally, get new code from the official repository (1) as explained above and merge it in this branch +- test: + - that the code compiles and all tests succeed (`make && make test`) + - that your code runs (even better: [add an automatic test] + - that it produces the expected results +- push your local branch to your fork (2) (see [above](#keeping-your-local-repository-up-to-date)) +- create a pull request from your fork (2) to the offical repository's (1) master branch (see github [help-page](https://help.github.com/articles/creating-a-pull-request/)) + - also see the [recommendations for pull requests](#pull-requests) + +## Recommendations + +Please always follow the recommendations below. + +### General recommendations + +- if you're working on a given topic, always create a branch for + it, e.g. `pythia_interface`. You may commit many times to this branch + in your local repository. When you have something solid create a + pull request to the official repository. + +### Commit comments + +- feel free to commit often to your local repository, make a pull request once the topic you are working on is finished + - if the feature you are working on is large, consider making a work in progress-pull request (see [below](#pull-requests)) + - git commits represent a snapshot of the software as a whole, and not only the difference to a previous commit (although that as well, in practice). It is recommended that each commit compiles and passes the tests. Take a look at the [commit history of a key4hep repository](https://github.com/key4hep/k4simdelphes/commits/main) and the histories of some individual files to find both good and bad examples. + +- always provide a meaningful comment for each commit + - if you are working on an issue, refer to that issue by adding "refs. #[issue id]", see also + [GitHub help](https://help.github.com/articles/closing-issues-via-commit-messages/) +- commit comments should look like the one below, so that they show up + correctly in git printouts. + + ``` + first version of a pythia interface # this line should be a short 1 liner + + Here, you may write a few more lines if needed + ``` + +### Cleaning history + +- before opening a pull request it may be a good idea to check that your history makes sense (commit messages explain what you did, no unnecessary commits, etc.), check with: + + ``` + git log + ``` +- if you see commits that you'd like to change, there are several ways of doing that, the most commonly used is `git rebase`: + - with the interactive version you can rebase your development branch to the official master and fix the history at the same time + + ``` + git fetch upstream # get changes from the official repo + git rebase -i upstream/main # do the actual rebase + ``` + + - git will guide you through the steps, where you can delete entire commits (and the corresponding changes), merge commits and change commit messages + - more information can be found in [this tutorial](https://www.atlassian.com/git/tutorials/rewriting-history#git-rebase-i) + +### Pull requests + +- Give a meaningful title that appropriately describes what you did (e.g. Add new calorimeter clustering) + - Pull requests of work in progress (to make people aware that you are working on a feature) create a PR starting with "[WIP]" +- In the description, give a short bullet-point list of what was done +- If your pull request fixes issues tracked in the issue tracker: + - Make sure you added a test that shows they are actually fixed + - In the description mention that you fixed it by referring to the issue: "fixes #" (this will automatically close the issue, see also [GitHub help](https://help.github.com/articles/closing-issues-via-commit-messages/)) + +## Trouble-shooting + +### When I try to push to the repository, I get an authentication error + +Check with `git remote -v` which remote repositories you have added to your local copy. You should see something like: + +``` +upstream git@github.com:key4hep/k4SimDelphes.git (fetch) +upstream git@github.com:key4hep/k4SimDelphes.git (push) +origin git@github.com:[your git user name]/k4SimDelphes.git (fetch) +origin git@github.com:[your git user name]/k4SimDelphes.git (push) +``` + +If you see something similar but all the addresses start with `https`, see [below](#i-have-cloned-with-https-and-now-i-cant-push-my-changes-what-do-i-do). + +If you only see `origin git@github.com:key4hep/k4SimDelphes.git`, you need to add your own repository, push to that one and do a pull request, as described above. To add your own repository do: + +``` +git remote rename origin hep-fcc +git remote add myfccsw git@github.com:[your git user name]/FCCSW.git +``` + + +### I have cloned with https and now I can't push my changes, what do I do? + +You only need to change the URL of your remote pointing to your repository to one that uses SSH instead: + +``` +git remote set-url [the remote name] git@github.com:[your git user name]/k4SimDelphes.git +``` + +Now you can push to that remote with: + +``` +git push [the remote name] [the branch you want to push] +``` + +--- + +## Need help? + +In case you have any questions on this guide, or need help to sort out +an issue with a repository, feel free to drop a mail to +key4hep-sw at CERN, and we'll be happy to help you. +Alternatively create an issue in the [bug tracker](https://github.com/key4hep) +![smile](https://twiki.cern.ch/twiki/pub/TWiki/SmiliesPlugin/smile.gif "smile"). diff --git a/_sources/developing-key4hep-software/README.md.txt b/_sources/developing-key4hep-software/README.md.txt new file mode 100644 index 0000000..3f3c8fd --- /dev/null +++ b/_sources/developing-key4hep-software/README.md.txt @@ -0,0 +1,19 @@ +# Developing Key4hep + +Sooner rather than later you will find it necessary write code for Key4hep. These pages cover some software development topics to remove any friction. + + + +```eval_rst +.. toctree:: + :caption: Contents: + + Key4hepSoftwareGit.md + Key4hepCMakeGuide.md + SinglePackage.md + SpackForDevelopers.md + WritingAlgorithms.md + +CMakeBuild.md + +``` diff --git a/_sources/developing-key4hep-software/SinglePackage.md.txt b/_sources/developing-key4hep-software/SinglePackage.md.txt new file mode 100644 index 0000000..37398c0 --- /dev/null +++ b/_sources/developing-key4hep-software/SinglePackage.md.txt @@ -0,0 +1,26 @@ +# Developing a single package + +For quick changes of, for example, a single package, it's possible to compile +the package using cmake (after having sourced the release or nightlies) and then +export some environment variables manually so that our local version will be +picked up instead of the one in cvmfs: + +``` bash +export PATH=/path/to/install/bin:$PATH +export LD_LIBRARY_PATH=/path/to/install/lib:/path/to/install/lib64:$LD_LIBRARY_PATH +export ROOT_INCLUDE_PATH=/path/to/install/include:$ROOT_INCLUDE_PATH +export PYTHONPATH=/path/to/install/python:$PYTHONPATH +``` + +where the path to the installation is the one we gave cmake with +`-DCMAKE_INSTALL_PREFIX` when configuring. It's possible more environment +variables need to be set depending on which package we are installing but the +previous ones are the main ones for many of the packages of the key4hep stack. + +While this approach works and any number of packages can be built this way, it +is cumbersome to do so for many packages, as one has to repeat the cycle of +configuring, building and installing and then exporting the environment +variables as many times as packages are installed. It is possible to miss +packages and then the cvmfs version will be used instead of the local one +without notice and it's also cumbersome to reproduce the environment at a later +time. diff --git a/_sources/developing-key4hep-software/SpackForDevelopers.md.txt b/_sources/developing-key4hep-software/SpackForDevelopers.md.txt new file mode 100644 index 0000000..04a0301 --- /dev/null +++ b/_sources/developing-key4hep-software/SpackForDevelopers.md.txt @@ -0,0 +1,314 @@ +# Building Key4hep using Spack: For Developers + +Using spack to develop software is somewhat pushing its intended usage to its +limits. However, it is not impossible and this is an area of spack that is +currently under active development. Unfortunately, this also means that the +spack documentation might not be fully up-to-date on these topics. Hence, this +page tries to collect some of the experiences the Key4hep developers have made. + +```{tip} +To obtain and setup `spack` take a look at {doc}`/spack-build-instructions-for-librarians/spack-setup`. +``` + +## Spack set up + +For a standalone spack installation where we are happy to install all the +dependencies the link above will suffice. However, it is possible to use the +key4hep stack from cvmfs that has all the dependencies installed and only +install the packages that we want to work on. For that, it is important to +reproduce the environment that was used for building whatever release we are +going to use. Otherwise spack will see that we have different versions of +packages and will try to compile and install more than what we need. As +explained here, there are three files that are provided with each release or +nightly, that we need to use. Let's say we want to use the nigthly for +2023-07-18. Then the first thing we do is source the nightly: + +``` bash +source /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2023-07-18/x86_64-almalinux9-gcc11.3.1-opt/key4hep-stack/2023-07-18-kzukii/setup.sh +``` + +And then we clone spack and key4hep-spack, set up the environment and the +upstream installation, and the latest build from scratch (that we have to find +manually for now using, for example, `find -iname .scratch`), in this case it +happens to be 2023-06-24): + +``` bash +rel=/cvmfs/sw-nightlies.hsf.org/key4hep/releases/2023-07-18/x86_64-almalinux9-gcc11.3.1-opt +latest_scratch=/cvmfs/sw-nightlies.hsf.org/key4hep/releases/2023-06-24/x86_64-almalinux9-gcc11.3.1-opt +git clone https://github.com/key4hep/key4hep-spack --depth 1 +git clone https://github.com/spack/spack +cd key4hep-spack +git checkout $(cat $rel/.key4hep-spack-commit) +cd .. +cd spack +git checkout $(cat $rel/.spack-commit) +source $rel/.cherry-pick +cd .. +source spack/share/spack/setup-env.sh +spack env activate key4hep-spack/environments/key4hep-nightly +spack config add "upstreams:nightly:install_tree: $rel" +spack config add "upstreams:nightly-scratch:install_tree: $latest_scratch" +``` + +And now we should have exactly the same version of spack and key4hep-spack that +was used to make the build, so the number of dependencies that spack tries to +install should be the minimum: it should find all the dependencies (in practice +this may not be the case but it should find most of them). + +## Developing a single package + +When only developing on a single package it is possible to use the [`dev-build`](https://spack.readthedocs.io/en/latest/command_index.html#spack-dev-build) command of spack. +A brief tutorial can be found in [the spack documentation](https://spack-tutorial.readthedocs.io/en/latest/tutorial_developer_workflows.html). +There is also a dedicated channel on slack [spackpm.slack.com](https://spackpm.slack.com) (to get an invitation, visit [slack.spack.io](https://slack.spack.io)) where questions regarding the development workflow can be discussed. +It allows to build a given package directly from local sources in the same way as spack does it, and even makes this package available to other packages in the same way it does packages that have been installed by spack directly. +Here we will use [LCIO](https://github.com/iLCSoft/LCIO) as an example since it can be installed without (or with only one) dependency. + +As a first step let's have a look at what installing `lcio` with spack would entail. +Note that we explicitly disable the ROOT dictionaries in order to limit the number of dependencies +```bash +spack spec -Il lcio ~rootdict +``` +``` +Input spec +-------------------------------- + - lcio~rootdict + +Concretized +-------------------------------- + + - vdwx2aq lcio@2.16%gcc@9.3.0~examples~ipo~jar~rootdict build_type=RelWithDebInfo cxxstd=17 arch=linux-ubuntu20.04-skylake +[+] utzbuq7 ^cmake@3.16.3%gcc@9.3.0~doc+ncurses+openssl+ownlibs~qt patches=1c540040c7e203dd8e27aa20345ecb07fe06570d56410a24a266ae570b1c4c39,bf695e3febb222da2ed94b3beea600650e4318975da90e4a71d6f31a6d5d8c3d arch=linux-ubuntu20.04-skylake +[+] pljbs5a ^sio@0.0.4%gcc@9.3.0+builtin_zlib~ipo build_type=RelWithDebInfo cxxstd=17 arch=linux-ubuntu20.04-skylake + +``` + +In this configuration `lcio` has only two dependencies, `sio` and `cmake`, which +are both already installed in this case. If these dependencies are not yet +installed, spack will automatically install them for you when using the +`dev-build` command. + +### Installing a local version with `dev-build` + +In order to install a local version of LCIO with spack, first we have to clone it into a local directory +```bash +git clone https://github.com/iLCSoft/LCIO +``` + +Now we can install this local version via +```bash +cd LCIO +spack dev-build lcio@master ~rootdict +``` +This should install `lcio` and all dependencies that are not yet fulfilled, giving you the full output of all the build stages ending on something like the following +``` +... +==> lcio: Successfully installed lcio-master-7dovpqn3kscbg672ham5wcqro7lg45gh + Fetch: 0.00s. Build: 1.62s. Total: 1.62s. +[+] /home/tmadlener/work/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-9.3.0/lcio-master-7dovpqn3kscbg672ham5wcqro7lg45gh +``` + +Note, that it is necessary to specify a single concrete version here for `lcio`. We use `@master`. +This version has to be one that is already available for the package (use `spack info` to find out which ones are available) and cannot be an arbitrary version. +It also does not necessarily have to correspond to the actual version of the source code you are currently installing. +However, it is of course encouraged to use a meaningful version specifier, since this package should also be useable as desired by dependent packages. + +### Using the local version as dependency + +Now that the local version has been installed, it would of course be nice to be able to use it in downstream packages as well. +As far as spack is concerned, a package that has been built from local sources is not really different from one that has been built from automatically downloaded sources. +The main difference is that the fact that it has been built from local sources manifests in the spec +```bash +spack find -lv lcio +``` +will yield something like +``` +==> 1 installed package +-- linux-ubuntu20.04-skylake / gcc@9.3.0 ------------------------ +7dovpqn lcio@master~examples~ipo~jar~rootdict build_type=RelWithDebInfo cxxstd=17 dev_path=/home/tmadlener/work/ILCSoft/LCIO +``` +As you can see the local path from which this version was installed has become part of the spec for the installed package (the `dev_path=...` part of the spec above). +Hence, also the hash is affected by the fact that it has been built from a local source. + +To use this specific version as a dependency the usual spack syntax can be used, e.g. +```bash +spack install marlin ^lcio/7dovpqn +``` +will install `marlin` but use the version of `lcio` that we have just built locally. + +### More advanced usage +Note: If you have installed lcio following the description above you might have to uninstall it again first to follow these instructions, because spack will not overwrite an already installed package. + +The above instructions only dealt with installing a package from a local source, but not how to easily get a development environment allowing for a quick edit, compile cycle. +This can be achieved by using the `--drop-in` and the `--before`/`--until` arguments of the `dev-build` command: + +```bash +spack dev-build --drop-in bash --until cmake lcio@master ~rootdict +``` + +This command will first install all necessary dependencies, then run the install process for `lcio` until **after** the `cmake` stage and then drop you into a new bash shell with the proper build environment setup. +It will also setup a build folder, which follows the naming scheme `spack-build-${hash}`, in this case: `spack-build-7dovpqn`. +To compile `lcio` simply go into this directory and run `make` in there +```bash +cd spack-build-7dovpqn +make -j4 +``` +You are now in an environment where you can easily edit the local source code and re-compile afterwards. + +Once all the development is done, it is still necessary to install everything to the appropriate location. +This installation has to be registered in the spack database as well. Hence, simply calling `make install` in the build directory will not do the trick. +Another call to `dev-build` is necessary. +```bash +cd .. # go back to the source directory where you started +spack dev-build lcio@master ~rootdict +``` +This will run the whole chain again, but it will not overwrite the build directory. +Hence, it will not recompile everything again, but simply install all the build artifacts to the appropriate location. +`spack find -lv lcio` can be used to check if the installation was successful. + +**NOTE: You are probably still in the build environment at this stage. To return back to you original shell simply type `exit`.** + +## Developing multiple packages or dependencies of other packages + +Developing on many packages simultaneously using the `dev-build` command can become cumbersome and doesn't really scale. + +### Using an environment to setup all dependencies +One way to develop on multiple packages simultaneously can be to setup an [environment](https://spack.readthedocs.io/en/latest/environments.html) that contains the dependencies of all packages. + +As an example the following definition of an environment has been used to develop on +[`podio`](https://github.com/AIDASoft/podio), [`EDM4HEP`](https://github.com/key4hep/EDM4HEP) and some other packages. +```yaml +spack: + specs: + - python + - root@6.20.04 +davix+gsl+math~memstat+minuit+mlp~mysql+opengl~postgres~pythia6+pythia8+python~qt4+r+root7+rootfit+rpath~shadow+sqlite+ssl~table+tbb+threads+tmva+unuran+vc+vdt+vmc+x+xml+xrootd build_type=RelWithDebInfo cxxstd=17 patches=22af3471f3fd87c0fe8917bf9c811c6d806de6c8b9867d30a1e3d383a1b929d7 + - dd4hep +geant4 + - geant4 + - heppdt + - hepmc@2.06.10 + - tricktrack + - py-pyyaml + - py-jinja2 + - cmake + - pythia8 + - evtgen + concretization: together + view: true + packages: + all: + compiler: [gcc@9.3.0] + variants: cxxstd=17 +``` + +Assuming this is the content of `edm4hep_devel.yaml` an environment can be created, activated, concretized and installed with the following commands: +```bash +spack env create edm4hep-devel edm4hep_devel.yaml +spack env activate -p edm4hep-devel +spack concretize +spack install +``` + +After an environment has been installed, it can easily be activated via +```bash +spack env activate -p edm4hep-devel +``` +which immediately drops you in an environment with all the packages stated in the environment file above available and properly set up. +Developing packages that depend on these should then be straight forward, especially for properly setup CMake based projects that can automatically find and configure their dependencies. + +The disadvantage of this approach is that the packages you want to develop on have to be on the top of the stack and if they depend on each other, you still have to properly handle these dependencies on your own. + +### Environments and a development workflow + +Recently spack gained the ability to setup environments and specify multiple packages that you would like to develop on (See [spack/spack#256](https://github.com/spack/spack/pull/15256)). +It is not yet really documented and it is not yet fully optimized, but it allows for a decent development experience if your package is not too deep down in the stack. +It is not impossible to develop on packages deep down the software stack, but this can imply frequently recompiling large parts of the software stack, since spack does not yet handle this in the best way, but instead builds all packages that you are not developing on from scratch. Hence, even if a simple relinking would have done the trick, spack will still build a lot of packages again. +Nevertheless, the feature is in a usable state and this section briefly describes how to use it. +Especially if you mainly develop on one package but sometimes want to check whether the rest of the stack, that depends on this package still compiles with the latest version, this can be a very useful workflow. + +As an example we will be using the `k4simdelphes` package that depends on `edm4hep`, which in turn depens again on `podio`. +Suppose we want to change `podio` and `edm4hep` and see if `k4simdelphes` still compiles and works. +We would then use an environment definition file similar to the usual environments. For this example it has the following content +```yaml +spack: + spec: + - k4simdelphes + concretization: together + view: false + packages: + all: + compiler: [gcc@9.3.0] + variants: cxxstd=17 + develop: + podio: + spec: podio@master +sio + path: ../../../../../podio + edm4hep: + spec: edm4hep@master + path: ../../../../../EDM4hep +``` + +The first part is the same as previously, but a new `develop` section containing information about the packages that should be developed on has been added. +For each package there is a `spec` and a `path` field. The `spec` field tells spack which spec to build, while the `path` field tells spack where the source files are located. +**The path is relative to the `$(prefix)/var/spack/environments/${environment-name}` directory or an absolute path.** + +Assuming that you are currently in the directory that contains local `spack` installation, the following steps are necessary to create the development environment +```bash +git clone https://github.com/AIDASoft/podio +git clone https://github.com/key4hep/EDM4hep +spack env create my-development-env development_env_packages.yaml +``` +where `development_env_packages.yaml` is the yaml file with the contents just described above. + +It is now possible to activate this environment via +```bash +spack env activate -p my-development-env +``` + +To install all the packages, including the local versions of `podio` and `edm4hep` it is now enough to simply do `spack install`**in the activated environment**. +This will build your local copies of `podio` and `edm4hep` and use these versions as dependencies for the `k4simdelphes` package. +Changes can also be made to either of the two packages. +To compile only one package without installing it yet, it is easiest to simply go to the directory where the sources are. +There should now be a few spack related files and a spack build folder among the other source files +``` +[...] +spack-configure-args.txt +spack-build-env.txt +spack-build-out.txt +spack-build-${hash} +``` +Here `${hash}` is the same that you get from `spack find -l package`. +After you have done all the necessary changes you can simply change into this build directory and run `make` to compile the package again. +Once all your development is done and you want to install the package `spack install` will run the whole build chain again. +This means that all the (local) development packages in your environment will only be recompiled as far as necessary, while all other packages that depend on the development packages will be re-built from scratch. + +Once you are done developing, this environment can be used like any other environment simply by running `spack env activate my-development-env` to activate it. + +#### Adding another package to develop +If you now realize that your changes to `podio` or `edm4hep` broke `k4simdelphes` and you need to also implement some changes there, you do not have to define a new environment. +Instead it is possible to add `k4simdelphes` to the `develop` section via `spack develop` (assuming you are still in the activated environment and in the same directory where also the `podio` and `edm4hep` sources live) +```bash +git clone https://github.com/key4hep/k4SimDelphes +spack develop --no-clone --path ../../../../../k4SimDelphes k4simdelphes@main +``` +Here, the `--path` is again either relative to the environment directory inside spack. It could also be an absolute path. +You now have to concretize the environment again before you can install the packages. +```bash +spack concretize -f +spack install +``` + +Now you can work on `k4simdelphes` in the same way as you can for `podio` or `edm4hep`. +You can also check that the environment now indeed uses your local version of `k4simdelphes` via +``` +spack find -lv k4simdelphes +``` +which should now yield something along the lines of +``` +==> In environment my-development-env +==> Root specs +------- k4simdelphes@main + +==> 1 installed package +-- linux-ubuntu20.04-broadwell / gcc@9.3.0 ---------------------- +m5khm2w k4simdelphes@main~ipo build_type=RelWithDebInfo dev_path=/home/tmadlener/work/spack/var/spack/environments/test-devel-env/../../../../../k4SimDelphes +``` +where the path to the local source files has now again become part of the spec as can be seen by the `dev_path=...` part of the spec. diff --git a/_sources/developing-key4hep-software/WritingAlgorithms.md.txt b/_sources/developing-key4hep-software/WritingAlgorithms.md.txt new file mode 100644 index 0000000..43aa88f --- /dev/null +++ b/_sources/developing-key4hep-software/WritingAlgorithms.md.txt @@ -0,0 +1,310 @@ +# Writing Gaudi Algorithms + +## Gaudi + +Gaudi is an event-processing framework. Algorithms can be defined by users and +Gaudi will take care of running them for each event. In addition, Gaudi has a +set of services and tools like logging and support for running in a +multithreaded environment. + +The relationship between Gaudi with key4hep happens through +[k4FWCore](https://github.com/key4hep/k4FWCore). k4FWCore has tools and +utilities needed to be able to use (almost) seamlessly EDM4hep collections in +Gaudi algorithms. We recommend checking out the +[tests](https://github.com/key4hep/k4FWCore/tree/main/test/k4FWCoreTest) in this +repository since they contain examples of algorithms (in particular of +algorithms using `Gaudi::Functional`). + +# Gaudi::Functional +Using `Gaudi::Functional` is the recommended way of creating algorithms. The +design is simple and at the same time enforces several constraints at +compile-time, allowing for a quicker development cycle. In particular, we will +see that our algorithms won't have an internal state and we obtain the benefit +of being able to run in a multithreaded environment (almost) trivially[^1]. + +[^1]: It's possible to find algorithms written based on GaudiAlg which is going to be removed from future versions of Gaudi. GaudiAlg was substituted by Gaudi::Algorithm, although the recommended way is to use Gaudi::Functional. + +## Setup +We will need Gaudi, k4FWCore and all their dependencies. Installing these by +ourselves is not easy but there are software stacks on cvmfs, see the +{doc}`/setup-and-getting-started/README.md` to set up the key4hep stack. + +The easiest way of having a working repository is to copy the template +repository that we provide in key4hep: + +``` bash +git clone https://github.com/key4hep/k4-project-template +``` + +or ideally with ssh + +``` bash +git clone git@github.com:key4hep/k4-project-template +``` + +This template repository already has the cmake code that will make our +algorithms know where Gaudi and k4FWCore and to properly link to them. In +addition there are a few examples that combined with the tests in k4FWCore +provide an overview of what's possible to do. The `k4-project-template` +repository contains a CMake configuration (as described in more detail in the +previous tutorial) so it can be built with: + +```bash +cd k4-project-template +mkdir build install +cd build +cmake .. -DCMAKE_INSTALL_PREFIX=../install +make -j 4 install +``` + +To run the algorithms contained in this repository you can use `k4run`, like: + +```bash +k4run ../K4TestFWCore/options/createExampleEventData.py + +``` + +## Walkthrough of Functional Algorithms + +Functional algorithms in Gaudi are relatively straightforward to write. For each +algorithm we want, we have to create a class that will inherit from one of the +`Gaudi::Functional` classes. The most important function member will be +`operator()` which is what will run over our events (or over none in case we are +generating). There are several base classes in Gaudi (see a more complete list +in https://lhcb.github.io/DevelopKit/03a-gaudi/): +- Consumer, one or more inputs, no outputs +- Producer, one or more outputs, no inputs +- Transformer (and MultiTransformer), one or more inputs, one or more outputs + +The structure of our class (more precisely structs) will then be, in the general +case of the transformer: + +``` cpp +#include "GaudiAlg/Transformer.h" +// Define BaseClass_t +#include "k4FWCore/BaseClass.h" + +struct ExampleTransformer final + : Gaudi::Functional::Transformer { + + ExampleTransformer(const std::string& name, ISvcLocator* svcLoc); + colltype_out operator()(const colltype_in& input) const override; +}; +``` + +Some key points: +- The magic to make our algorithm work with EDM4hep collections happens by + including `BaseClass.h` and passing `BaseClass_t` it as one of the template + arguments to the Gaudi class we are inheriting from. +- `operator()` is const, which means that it can't modify class members. This is + intended and helps with multithreading by not having an internal state. + +Let's start with the first template argument. It's the signature of a function +that returns one or more outputs and takes as input one or more inputs. +One possible example would be to have these two lines before the class definition: + +``` cpp +using colltype_in = edm4hep::MCParticleCollection; +using colltype_out = edm4hep::MCParticleCollection; +``` + +and then we have a transformer that will take one `MCParticleCollection` as +input and return another one. If we have multiple inputs we keep adding +arguments to the function arguments and if we don't have any we can leave that +empty. For the output this is slightly more complicated because if there are +more than one output we have to return an `std::tuple`; if there aren't any outputs we can simply return `void`. + +Then we reach the constructor. We'll always initialize from the constructor of the +class we're inheriting (in this example a `Transformer`) and then we'll +initialize a set of `KeyValues`. These `KeyValues` will be how we define the +names of our inputs and outputs so they can be found by other algorithms, read +from a file or saved to a file. + +``` cpp + ExampleTransformer(const std::string& name, ISvcLocator* svcLoc) + : Transformer(name, svcLoc, + KeyValue("InputCollection", "MCParticles"), + KeyValue("OutputCollection", "NewMCParticles")) { + // possibly do something + } +``` + +Here we are defining how we will name our input collection in the steering value +(`InputCollection`) and giving it a default value. We're doing the same with the +output collection. The order is important here: first inputs and then outputs +and they are ordered. When we have more inputs we just add another line, like +the one above for the input collection. For outputs, since they are bundled +together in a `std::tuple` when there are several, we have to enclose the list +of `KeyValue` with brackets, like + +``` cpp + ExampleMultiTransformer(const std::string& name, ISvcLocator* svcLoc) + : MultiTransformer(name, svcLoc, + KeyValue("InputCollection", "MCParticles"), + { + KeyValue("OutputCollection1", "NewMCParticles"), + KeyValue("OutputCollection2", "SimTrackerHits"), + KeyValue("OutputCollection3", "UsefulCollection"), + } + ) { + // possibly do something + } +``` + +Then in the `operator()` we can do whatever we want to do with our collections +``` cpp + colltype_out operator()(const colltype_in& input) const override { + auto coll_out = edm4hep::MCParticleCollection(); + for (const auto& particle : input) { + auto new_particle = edm4hep::MutableMCParticle(); + new_particle.setPDG(particle.getPDG() + 10); + new_particle.setGeneratorStatus(particle.getGeneratorStatus() + 10); + new_particle.setSimulatorStatus(particle.getSimulatorStatus() + 10); + new_particle.setCharge(particle.getCharge() + 10); + new_particle.setTime(particle.getTime() + 10); + new_particle.setMass(particle.getMass() + 10); + coll_out->push_back(new_particle); + } + return coll_out; +``` + +When we return several collections we can bundle them in an `std::tuple` like this: + +``` cpp + return std::make_tuple(std::move(collection1), std::move(collection2)); +``` + +The complete example for reference can be found in the tests of k4FWCore: +https://github.com/key4hep/k4FWCore/blob/main/test/k4FWCoreTest/src/components/ExampleFunctionalTransformer.cpp + +## The steering file + +The steering file is the file where we define which algorithms will run, what +parameters they will use and how they will do it; what level of logging, if +using multithreading, etc. + +We start with some imports + +``` python +from Gaudi.Configuration import INFO +from Configurables import ExampleFunctionalTransformer +from Configurables import ApplicationMgr +from Configurables import k4DataSvc +from Configurables import PodioOutput +from Configurables import PodioInput +``` + +it's also possible to import everything from `Configurables` but it's better not +to so that if we are using IDE or an editor with some kind of analysis it can +tell us if we are using an undefined variable, for example. + +Then, the input: + +``` python +podioevent = k4DataSvc("EventDataSvc") +podioevent.input = "output_k4test_exampledata_producer.root" + +inp = PodioInput() +inp.collections = [ + "MCParticles", +] +``` + +We select the name of the input file and which collections we'll make available +for the rest of the algorithms. + +For the output: + +``` python +out = PodioOutput("out") +out.filename = "output_k4test_exampledata_transformer.root" +# The collections that we don't drop will also be present in the output file +out.outputCommands = ["drop MCParticles"] +``` + +we can select which collections we keep in the output file. By default the +collections in the output file will be the same as in the input file. Check the +[relevant +documentation](https://github.com/key4hep/k4FWCore/blob/main/doc/PodioInputOutput.md) +to learn more about `PodioInput` and `PodioOutput`. + +Our algorithm will look like this: + +``` python +transformer = ExampleFunctionalTransformer("ExampleFunctionalTransformer", + InputCollection="MCParticles", + OutputCollection="NewMCParticles") +``` + +If we have defined `Gaudi::Property`s for our algorithm it is also possible to +change them by doing `transformer.property = value`; however with the names of +the collections, if they are provided, they are set when creating the python +object with our algorithm. + +Finally we define what to run: + +``` python +ApplicationMgr(TopAlg=[inp, transformer, out], + EvtSel="NONE", + EvtMax=10, + ExtSvc=[k4DataSvc("EventDataSvc")], + OutputLevel=INFO, + ) +``` + +We pass a list of the algorithms in `TopAlg`. `PodioInput` will be the first one +and `PodioOutput` will be the last one when used. In `EvtMax` we set what is the +maximum number of event that we are processing. Use -1 not to limit it. That +means if we are processing a file, then read all the events in the file. We pass +extra services to `ExtSvc` and set an `OutputLevel` that could be `DEBUG`, +`WARNING` or `INFO` most of the time. + +## Initialize and finalize +There are some occasions where we may want to run some code between the +constructor and the `operator()`; that is the place for `initialize()`. There is +also a way of doing something similar after processing with `finalize()`. For that, we +can add to our classes those functions (we can also add only one of these): + +``` cpp + StatusCode initialize() override; + StatusCode finalize() override; +``` + +and then we can implement them. + +Make sure to remember to return the corresponding status code, otherwise +Gaudi will crash. For example: + +``` cpp +StatusCode MyAlgorithm::initialize() { + // do something + return StatusCode::SUCCESS; +} +``` + +## Debugging: How to use GDB + +[The GNU Project Debugger](https://www.sourceware.org/gdb/) is supported by +Gaudi and can be invoked by passing additional `--gdb` parameter to the `k4run`. +For example: +```bash +k4run ../K4TestFWCore/options/createExampleEventData.py --gdb +``` +This will start the GDB and attaches it to the Gaudi steering. After initial +loading, user can start running of the steering by typing `continue` into the +GDB console. To interrupt running of the Gaudi steering use `CTRL+C`. + +More details how to run GDB with Gaudi can be found in +[LHCb Code Analysis Tools](https://twiki.cern.ch/twiki/bin/view/LHCb/CodeAnalysisTools#Debugging_gaudirun_py_on_Linux_w). + +## Avoiding const in `operator()` +There is a way of working around `operator()` being const and that is by adding +the keyword `mutable` to our data member. This will allow us to change our data +member inside `operator()` and will cause code that wasn't compiling because of +this to compile. Of course, this is not a good idea because unless the member of +our class is thread-safe, that means that our algorithm is no longer thread-safe +and running with multiple threads can cause different results. Even worse than +that, it's very possible that there are not any errors or crashes but the +results are simply wrong from having several threads changing a member at the +same time, for example. diff --git a/_sources/how-tos/README.md.txt b/_sources/how-tos/README.md.txt new file mode 100644 index 0000000..63df3c1 --- /dev/null +++ b/_sources/how-tos/README.md.txt @@ -0,0 +1,29 @@ +# Key4hep How-Tos and Instructions + +This page contains a few brief How-Tos and Instructions on how to achieve +certain things within the Key4hep software stack. They are mainly aimed at +Key4hep users and are mostly designed to be reference material, rather than +[tutorials](https://key4hep.github.io/key4hep-doc/tutorials/README.html). + +```eval_rst +.. toctree:: + :caption: Contents + :maxdepth: 1 + + key4hep-tutorials/edm4hep_analysis/edm4hep_api_intro.md + k4fwcore/doc/PodioInputOutput.md + k4fwcore/doc/k4run-args.md + k4marlinwrapper/doc/MarlinWrapperIntroduction.md + k4edm4hep2lcioconv/doc/LCIO2EDM4hep.md +``` + + diff --git a/_sources/how-tos/k4edm4hep2lcioconv/doc/LCIO2EDM4hep.md.txt b/_sources/how-tos/k4edm4hep2lcioconv/doc/LCIO2EDM4hep.md.txt new file mode 100644 index 0000000..df766ec --- /dev/null +++ b/_sources/how-tos/k4edm4hep2lcioconv/doc/LCIO2EDM4hep.md.txt @@ -0,0 +1,131 @@ +# Standalone conversion from LCIO to EDM4hep +The `lcio2edm4hep` executable reads LCIO (`.slcio`) files and converts its +contents into EDM4hep. Each `LCEvent` of the input file will be put into a +`podio::Frame` in the output file (under the `events` category). The most basic +usage is simply + +```bash +lcio2edm4hep +``` + +## Patching missing collections on the fly +A major difference between LCIO and EDM4hep is that in LCIO an `LCEvent` can +effectively have arbitrary contents, whereas in EDM4hep the assumption is that +each event consists of the same collections (even if some of them are empty). +Hence, it is necessary to either ensure that all events in the LCIO file have +the same contents or or to give `lcio2edm4hep` some additional information such +that it can patch in potentially missing collections on the fly. This additional +information comes in the form of a third argument to `lcio2edm4hep` and is +effectively a list of collection names and their types that comprise the +superset of all collections appearing in at least one event in the input LCIO +file. The format looks like this, where each collection is a single line +containing the name first and than its type, e.g. + +``` +SETSpacePoints TrackerHit +RecoMCTruthLink LCRelation[ReconstructedParticle,MCParticle] +``` + +The easiest way to obtain such a file is to use the `check_missing_cols` +executable that comes with LCIO using the `--minimal` flag. The output of this +can be directly consumed by `lcio2edm4hep` + +#### Example: +1. Get the patch file +```bash +check_missing_cols --minimal \ + /pnfs/desy.de/ilc/prod/ilc/mc-2020/ild/rec/250-SetA/higgs/ILD_l5_o2_v02/v02-02-01/00015671/000/rv02-02-01.sv02-02-01.mILD_l5_o2_v02.E250-SetA.I402005.Pe3e3h.eL.pR.n000_002.d_rec_00015671_493.slcio \ + > patch.txt +``` +2. Pass it to `lcio2edm4hep` +```bash +lcio2edm4hep \ + /pnfs/desy.de/ilc/prod/ilc/mc-2020/ild/rec/250-SetA/higgs/ILD_l5_o2_v02/v02-02-01/00015671/000/rv02-02-01.sv02-02-01.mILD_l5_o2_v02.E250-SetA.I402005.Pe3e3h.eL.pR.n000_002.d_rec_00015671_493.slcio \ + Output.root \ + patch.txt +``` + +### Converting `LCRelation` collections +For collections of `LCRelation` type it is necessary to define the `FromType` and +`ToType` as well, as otherwise the converter will not be able to create the +correct edm4hep file. The `check_missing_cols` executable will try to determine +these types from the collection parameters and will warn if it cannot do it for +certain collections. In this case it is the **users responsibility to provide +the missing types** as otherwise the conversion will simply skip these +collections, or potentially even crash. + +## Converting only a subset of collections +Using the same mechanism as for patching collections it is also possible to only +convert a subset of all available collections. `lcio2edm4hep` uses the contents +of the `colltypefile` to determine the contents of the output. If that contains +only a subset of all collections, only that subset will be converted. Missing +collections will still be patched in, in this case. + +# Library usage of the conversion functions +The conversion functions are designed to also be usable as a library. The overall design is to make the conversion a two step process. Step one is converting the data and step two being the resolving of the relations and filling of subset collection. + +## Converting collection (data) +The main entry point is `convertCollection` which will automatically dispatch to +the correct conversion function depending on the type information that is stored +in the input `LCCollection`. It is also possible to access the individual +conversion functions for each type. All of the conversion functions take a map +of LCIO to EDM4hep objects of their specific type that will be filled during the +conversion. for convenience all necessary maps are bundled in the +`LcioEdmTypeMapping` struct. + +## Handling relations +**Once all necessary collections have been converted, it is necessary to resolve +the relations between the objects.** This is done using the `resolveRelations` +function. This will again dispatch to the correct relation resolving function +for the corresponding types, which can obviously also be invoked directly. + +## Handling of subset collections +Subset collections are handled similar to relations using the function +`fillSubset`. Internally this simply forwards to `handleSubsetColl` which +handles all the type details and can obviously also be used directly. + +## Handling of `LCRelation`s +`LCRelation` only exist in LCIO and their conversion is limited to what is +available in EDM4hep. They use the `"FromType"` and `"ToType"` collection +parameters to get the necessary type information. + +The AssociationCollections in EDM4hep are then created using `createAssociations`. + +## Converting entire events +Converting an entire event can be done calling the `convertEvent`. This can also +be used as an example to guide the implementation of custom conversions using +the available functionality. + +## Converting Event parameters +This can be done by calling `convertObjectParameters` that will put all the event parameters into the passed `podio::Frame`. + +## Subtle differences between LCIO and EDM4hep +There are a few small differences between LCIO and EDM4hep that shine through in the conversion, these are: + +- `CaloHitContributions` are part of the SimCalorimeterHits in LCIO while being their own data type in EDM4hep. They are created by [`createCaloHitContributions`](../k4EDM4hep2LcioConv/include/k4EDM4hep2LcioConv/k4Lcio2EDM4hepConv.h). +- The event information like an event number is part of the `LCEvent` in LCIO. In EDM4hep there is a separate EventHeader Collection. It can be created using [`EventHeaderCollection`](../k4EDM4hep2LcioConv/include/k4EDM4hep2LcioConv/k4Lcio2EDM4hepConv.h) which is stored under the name `"EventHeader"`. +- Particle IDs are converted during the conversion of the the reconstructed Particle collection. + +## Example for a ReconstructedParticle Collection +```cpp +#include "k4EDM4hep2LcioConv/k4Lcio2EDM4hepConv.h" + +// the struct defined in the header file is used for the maps linking Lcio particles +// to their EDM counterparts. + +auto typeMapping = LcioEdmTypeMapping{}; + +// We assume that this is a collection of ReconstructedParticles! +LCEVENT::LCCollection* lcCollection; + +// Convert the data +auto edmCollections = convertReconstructedParticle("name", + lcCollection, + typeMapping.recoParticles, + typeMapping.particleIDs); + +// Resolve relations (only converted objects will be available) +// This has to be called at the very end, after all collection data has been +// converted +resolveRelations(typeMapping); +``` diff --git a/_sources/how-tos/k4fwcore/doc/PodioInputOutput.md.txt b/_sources/how-tos/k4fwcore/doc/PodioInputOutput.md.txt new file mode 100644 index 0000000..360e985 --- /dev/null +++ b/_sources/how-tos/k4fwcore/doc/PodioInputOutput.md.txt @@ -0,0 +1,132 @@ + +# Reading and writing EDM4hep files in Gaudi + +The facilities to read and write EDM4hep (or in general event data models based +on podio) are provided by [`k4FWCore`](https://github.com/key4hep/k4FWCore). +This page will describe their usage, but not go into too much details of their +internals. This page also assumes a certain familiarity with Gaudi, i.e. most of +the snippets just show a minimal configuration part, and not a complete runnable +example. + +## The `k4DataSvc` + +Whenever you want to work with EDM4hep in the Gaudi based framework of Key4hep, +you will need to use the `k4DataSvc` as *EventDataSvc*. You can instantiate and +configure this service like the following + +```python +from Gaudi.Configuration import * +from Configurables import k4DataSvc + +evtSvc = k4DataSvc("EventDataSvc") +``` + +**It is important that the name is `EventDataSvc` in this case, as otherwise +this is an assumption from Gaudi.** Once you have the `k4DataSvc` instantiated, +you still have to make the `ApplicationMgr` aware of it, by making sure that the +`evtSvc` is in the list of the *external services* (`ExtSvc`): + +```python +from Configurables import ApplicationMgr +ApplicationMgr( + # other args + ExtSvc = [evtSvc] +) +``` + +## Reading events + +To read events you will need to use the `PodioInput` algorithm in addition to +the [`k4DataSvc`](#the-k4datasvc). Currently, you will need to pass the input +file to the `k4DataSvc` via the `input` option but pass the collections that you +want to read to the `PodioInput`. We are working on making this (discussion +happens in this [issue](https://github.com/key4hep/k4FWCore/issues/105)). The +parts of your options file related to reading EDM4hep files will look something +like this + +```python +from Configurables import PodioInput, k4DataSvc + +evtSvc = k4DataSvc("EventDataSvc") +evtSvc.input = "/path/to/your/input-file.root" + +podioInput = PodioInput() +``` + +It is possible to change the input file from the command line via +```bash +k4run --EventDataSvc.input= +``` + +By default the `PodioInput` will read all collections that are available from +the input file. It is possible to limit the collections that should become +available via the `collections` option + +```python +podioInput.collections = [ + # List of collection names that should be made available +] +``` + +## Writing events + +To write events you will need to use the `PodioOutput` algorithm in addition to +the [`k4DataSvc`](#the-k4datasvc): + +```python +from Configurables import PodioOutput + +podioOutput = PodioOutput("PodioOutput", filename="my_output.root") +``` + +By default this will write the complete event contents to the output file. + +### Writing only a subset of collections + +Sometimes it is desirable to limit the collections to a subset of all available +collections from the EventStore. The `PodioOutput` allows to do this via the +`outputCommands` option that takes a list of `keep` or `drop` commands. Each +command must consist of the `keep`/`drop` command and a target. The target is a +collection name that may include the `?` or `*` wildcard patterns. This might +look like the following + +```python +podioOutput.outputCommands = ["keep *"] +``` + +which will keep everything (the default), while + +```python +podioOutput.outputCommands = ["drop *"] +``` + +will simply drop all collections and effectively write an empty file (apart from +some metadata). A common pattern is to `"drop *"` and then selectively adding +`keep` collections to keep, e.g. to only keep the highest level MC and reco +information: + +```python +podioOutput.outputCommands = [ + "drop *", + "keep MCParticlesSkimmed", + "keep PandoraPFOs", + "keep RecoMCTruthLink", +] +``` diff --git a/_sources/how-tos/k4fwcore/doc/k4run-args.md.txt b/_sources/how-tos/k4fwcore/doc/k4run-args.md.txt new file mode 100644 index 0000000..e99a2b9 --- /dev/null +++ b/_sources/how-tos/k4fwcore/doc/k4run-args.md.txt @@ -0,0 +1,35 @@ + +# Adding custom arguments to `k4run` + +It is possible to extend `k4run` with custom arguments from a steering file using `k4FWCore.parseArgs`. + +Example: + +```python +from k4FWCore.parseArgs import parser +parser.add_argument("--trackingOnly", action="store_true", help="Run only track reconstruction", default=False) +my_opts = parser.parse_known_args()[0] + +# later +if my_opts.trackingOnly: + # only run track reconstruction +``` + +Behind the scenes parser is just a normal instance of pythons [`argparse.ArgumentParser`](https://docs.python.org/3/library/argparse.html), please refer to its documentation for usage details. The only important thing to keep in mind is to always use `parse_known_args()` instead of `parse_args()` so that the normal `k4run` arguments keep working. diff --git a/_sources/how-tos/k4marlinwrapper/doc/MarlinWrapperIntroduction.md.txt b/_sources/how-tos/k4marlinwrapper/doc/MarlinWrapperIntroduction.md.txt new file mode 100644 index 0000000..c48f816 --- /dev/null +++ b/_sources/how-tos/k4marlinwrapper/doc/MarlinWrapperIntroduction.md.txt @@ -0,0 +1,222 @@ + +# Wrapping Marlin processors in Gaudi + +This page describes how to run existing Marlin processors within the Gaudi +framework. `Marlin` and `Gaudi` are two event processing frameworks available in +the Key4hep software stack. The former was originally developed by the linear +collider communities in iLCSoft, while the latter originally comes from LHCb. It +is also the event processing framework for future developments within Key4hep. +To enable using the existing functionality that has been developed for the +linear collider studies and also to allow for a gradual migration the +`MarlinProcessorWrapper` has been developed. It allows to run Marlin processors +within the Gaudi framework and it's usage is described +[below](#the-marlinprocessorwrapper-gaudi-algorithm) + +One of the major differences between Marlin processors and (Key4hep) Gaudi +algorithms is the event data model (EDM) that they use. While Marlin uses LCIO, +Gaudi in Key4hep uses [EDM4hep](https://edm4hep.web.cern.ch). Since EDM4hep is +based on LCIO the differences are limited and it is possible to convert between +the two EDMs as necessary. We will also show how to do this +[below](#using-the-edm-converters). + +The following descriptions assume that you are somewhat familiar with how to +configure and run Gaudi via `k4run`, i.e. most of the snippets will just show +the bare minimum of configuration, but will usually not work without +modifications (e.g. in most cases the `ApplicationMgr` as well as putting all +the configured algorithms into the list of algorithms to run is missing +entirely). + +## The `MarlinProcessorWrapper` Gaudi algorithm + +The `MarlinProcessorWrapper` is a standard Gaudi algorithm and can be used just +like all others, i.e. in a Gaudi options file we simply have to import it via +```python +from Gaudi.Configuration import * +from Configurables import MarlinProcessorWrapper +``` + +It can then be configured just like any other algorithm by instantiating it and +passing the necessary parameters to it. Each Marlin processor that you want to +wrap needs its own instance. The main configuration parameters for the +`MarlinProcessorWrapper` are +- `ProcessorType` - a string with the **Marlin processor type**. The type is + usually the class name of the Marlin processor, and corresponds to the `type` + attribute in a Marlin XML configuration for a processor. +- `Parameters` - a dictionary of string keys and **list of string** values. Each + parameter of the Marlin processor needs its own entry in this dictionary and + all parameter values have to be strings as the parsing is done internally. + +As a very brief example; The following snippet of a Marlin XML steering file +```xml + + 1 + +``` + +could be converted to the following snippet of a Gaudi options file + +```python +StatMonitorAlg = MarlinProcessorWrapper("StatMonitorAlg") +StatMonitorAlg.ProcessorType = "StatusMonitor" +StatMonitorAlg.Parameters = {"HowOften": ["1"]} +``` + +**Note that wrapped Marlin processors still expect their inputs in LCIO +format!** You can either read in the data in that format directly, or use +[converters](#using-the-edm-converters) to convert from EDM4hep to LCIO first. + +## Reading and writing LCIO events with Gaudi + +In order to read in event data in LCIO format into the Gaudi world it is +necessary to use the `LcioEvent` Gaudi algorithm. It is configured in the same +way as normal Gaudi algorithms, i.e. in a minimal standalone form + +```python +from Gaudi.Configurables import * +from Configurables import LcioEvent + +read = LcioEvent() +read.Files = ["inputfile1.slcio", "inputfile2.slcio"] +``` + +For writing LCIO events from Gaudi, simply use a `MarlinProcessorWrapper` to +wrap a `LCIOOutputProcessor`, e.g. + +```python +from Configurables import MarlinProcessorWrapper + +Output_DST = MarlinProcessorWrapper("Output_DST") +Output_DST.ProcessorType = "LCIOOutputProcessor" +Output_DST.Parameters = { + "DropCollectionNames": [], + "DropCollectionTypes": ["MCParticle", "LCRelation", "SimCalorimeterHit"], + } +``` + +## Automatic conversion of Marlin XML steering files + +We provide the `convertMarlinSteeringToGaudi.py` converter script to +automatically convert Marlin steering files in XML format to Gaudi options +python files. Usage is as simple as + +```bash +convertMarlinSteeringToGaudi.py +``` + +### Limitations +This converter script handles almost everything, but there are a few +short-comings which it cannot yet handle: +- Marlin XML steering files can have `include` statements, e.g. ``. These cannot be resolved by the converter + script, and it will issue a warning. The easiest way to fix this is to simply + run `Marlin -n` to resolve all these statements and then run the converter + script again on the output file which will be named + `Parsed.xml`. +- Marlin has a mechanism to resolve constants that are defined in the + `constants` section and used like `${someFancyConstant}` in the following. The + converter script and the converted Gaudi options file handle these in general. + However, it might be necessary to change the values of the constants inside + the `CONSTANTS` dictionary that can be found at the beginning of the created + options file. Alternatively one can use `Marlin -n` with e.g. + `--constant.someFancyConstant=` to set the values in the Marlin + steering file first and again parse the converted output. +- Marlin supports conditional execution of processors via the `condition` tag. + These conditions can be configured via constant values from the `constants` + section in the steering file, but in principle these can also be runtime + values that are set, e.g. by a previously run processor. At the moment dynamic + conditions (where the value might change on an event by event basis) are not + supported by Gaudi. Additionally static conditions are only partially handled + by the converter script. While it converts the necessary configuration, it + will by default not put the converted algorithm into the `algList` list of + algorithms to run and you might have to comment / uncomment the algorithms you + actually want to run. +- If the value of the `LCIOInputFiles` is empty in the input XML file, the + converter script will put a value of `"None"` into the `read.Files` parameter. + You will have to change this either in the steering file or them in via + `--LcioEvent.Files`. +- Marlin is in some cases able to replace `constant`s with the values stored in + environment variables of the same name. In Gaudi these have to be retrieved + from the environment explicitly via `os.environ`. + +## Using the EDM converters + +The converters between EDM4hep and LCIO are implemented as so called +`GaudiTool`s. They can be attached to any `MarlinProcessorWrapper` algorithm +that is configured in the Gaudi options file. The tools are called +`Lcio2EDM4hepTool` and `EDM4hep2LcioTool` respectively. Each wrapped processor +can be equipped with both tools, so that it is possible to e.g. convert input +from EDM4hep to LCIO and output from LCIO to EDM4hep again: + +![](marlin_wrapper_tools.png) + +The (very) basic usage of the converter tools looks like the following +- Instantiate the necessary tools (and configure them as desired) +- Attach the tools to a wrapped marlin processor via the `Lcio2EDM4hepTool` + and/or `EDM4hep2LcioTool` options + +```python +from Configurables import EDM4hep2LcioTool, Lcio2EDM4hepTool + +edm4hep2LcioConv = EDM4hep2LcioTool("EDM4hep2Lcio") +lcio2edm4hepConv = Lcio2EDM4hepTool("Lcio2EDM4hep") + +wrappedProcAlg = MarlinProcessorWrapper("ProcessorToWrap") +wrappedProcAlg.Lcio2EDM4hepTool = lcio2edm4hepConv +wrappedProcAlg.EDM4hep2LcioTool = edm4hep2LcioConv +``` + +An arbitrary number of converter tools can be instantiated and attached to Gaudi +algorithms (taking into account that each algorithm can at most have one +converter for each direction attached). If you have multiple tools make sure to +give them meaningful names in order to avoid any confusion. + +### Configuration options + +By default each converter tool will try to convert the complete event content +that is currently available in the transient event store for the corresponding +source format. **It will skip the conversion of a collection if the same +collection already exists in the other format. This check is done by collection +name.** However, it is possible to control the conversion process with a +slightly higher granularity with two options that can be configured +- `collNameMapping` - this is a dictionary of collection names, where a *source* + collection name is mapped to a *target* collection name during the conversion. + This makes it possible to rename collections on the fly. In combination with + the `convertAll` option this also allows to select the collections that should + be converted. In that case if you want to keep the original collection name + you can simply repeat it. +- `convertAll` - set this to `False` if you do not want to convert all + collections, but rather would like to select a subset to convert. + +As an example, if you only want to convert the `MCParticles` collection, you +would configure the tool like this +```python +edm4hep2LcioConv = EDM4hep2LcioTool("EDM4hep2Lcio") +edm4hep2LcioConv.convertAll = False +edm4hep2LcioConv.collNameMapping = {"MCParticles": "MCParticles"} +``` + +On the other hand if you want to convert all collections, but rename the +`MCParticle` (LCIO) input collection to the `MCParticles` (EDM4hep) output +collection in the process, you would configure the tool like so + +```python +lcio2edm4hepConv = Lcio2EDM4hepTool("Lcio2EDM4hep") +lcio2edm4hepConv.collNameMapping = {"MCParticle": "MCParticles"} +``` diff --git a/_sources/how-tos/key4hep-tutorials/edm4hep_analysis/edm4hep_api_intro.md.txt b/_sources/how-tos/key4hep-tutorials/edm4hep_analysis/edm4hep_api_intro.md.txt new file mode 100644 index 0000000..09fc651 --- /dev/null +++ b/_sources/how-tos/key4hep-tutorials/edm4hep_analysis/edm4hep_api_intro.md.txt @@ -0,0 +1,514 @@ +# EDM4hep - The common event data model + +EDM4hep is the common and shared Event Data Model (EDM) of the Key4hep project. +Here we will give a brief introduction to EDM4hep as well as some of the +technicalities behind it. We will also guide you towards documentation and try +to give you the knowledge to make sense of it. + +## Important resources + +- EDM4hep doxygen API reference page: [edm4hep.web.cern.ch](https://edm4hep.web.cern.ch) +- EDM4hep github repository: [github.com/key4hep/EDM4hep](https://github.com/key4hep/EDM4hep) +- podio github repository: [github.com/AIDASoft/podio](https://github.com/AIDASoft/podio) + +## Doxygen API documentation + +We start with having a look at the [EDM4hep doxygen API reference +page](https://edm4hep.web.cern.ch): + +### The overview diagram +![](images/edm4hep_doxygen.png) + +You see a diagrammatic overview of EDM4hep with all the available data types, +broadly organized into different categories. The arrows depict two ways data +types can be related / associated with each other + +- ["Relations"](#relations) (black arrows) +- ["Associations"](#associations) (purple-ish arrows) + +#### Relations +These are relations defined within the data types, and which are directly +accessible from the data types. They come in two flavors, depending on the +multiplicity of the relation + +- `OneToOneRelations` +- `OneToManyRelations` + +Data types can relate to other instances of the same type (e.g. `MCParticle`s +usually form a hierarchy of mothers/daughters). Relations are directed, i.e. it +is possible to go from one object to a related object, but vice versa this does +usually not hold. For example, a `ReconstructedParticle` can point to multiple +`Tracks` or `Clusters`, but those do not point to a `ReconstructedParticle`. + +#### Associations +These are relations that are in a sense "external" to the data model definition. +They are currently mainly used to connect MC and RECO information, as a direct +link via a relation is not desirable as it would mix the two worlds. In contrast +to relations, associations are not directed, i.e. it is possible to access both +involved objects from the association. + +### The table of available types +Just below the diagram is an overview table of all the types that are defined in +EDM4hep. Here they are organized into + +- `Components` - very simple types, that are used throughout the +- `Datatypes` - The data types that are defined in EDM4hep +- `Association` - The available associations between different data types + +![](images/doxygen_type_table.png) + +Clicking on any of these links will take you to the +[`edm4hep.yaml`](https://github.com/key4hep/EDM4hep/blob/master/edm4hep.yaml) +definition file of EDM4hep, jumping directly to the definition of the respective +datatype or component. For more information on this file check out the section +about [podio](#podio-the-technical-infrastructure-on-which-things-run). In +principle it is possible to have *very educated guesses* on how the interface of +the classes will look like from this. + +### Navigating the doxygen reference page +To see all the available classes simply click on [`Classes -> Class +Index`](https://edm4hep.web.cern.ch/classes.html) or on [`Classes -> Class +List`](https://edm4hep.web.cern.ch/annotated.html). Doing the latter and +expanding the `edm4hep` namespace gives you something like this + +![](images/doxygen_class_list.png) + +Clicking on any of the links in this list will take you to the reference page +for that class, e.g. for the [`ReconstructedParticle`](https://edm4hep.web.cern.ch/classedm4hep_1_1_reconstructed_particle.html) + +![](images/doxygen_reco_particle.png) + +#### Why are there so many classes and do I need all of them? +If you look at the list you will realize there are many classes that are all +named very similar, e.g. + +- **`CaloHitContribution`** +- **`CaloHitContributionCollection`** +- `CaloHitContributionCollectionData` +- `CaloHitContributionCollectionIterator` +- `CaloHitContributionData` +- `CaloHitContributionMutableCollectionIterator` +- `CaloHitContributionObj` +- `CaloHitContributionSIOBlock` +- **`MutableCaloHitContribution`** + +From all of these classes **only the ones marked bold are truly "visible" and +intended for use**. The others are internal classes or simple helper types that +you will most likely only ever see in compiler errors, especially if you follow +the *Almost Always Auto* style of writing c++ code (see [Herb Sutter's original +blog +post](https://herbsutter.com/2013/08/12/gotw-94-solution-aaa-style-almost-always-auto/) +or [a slightly easier to digest +summary](http://cginternals.github.io/guidelines/articles/almost-always-auto/)). +To understand why these classes exist and what their purpose is, we have to make +a slight detour to +[podio](#podio-the-technical-infrastructure-on-which-things-run). + + +### Some utility functionality +EDM4hep also brings a bit of utility functionality. You can find it in the +[`edm4hep::utils` +namespace](https://edm4hep.web.cern.ch/namespaceedm4hep_1_1utils.html) (click on +`Namespaces -> Namespace List`, then expand the `edm4hep` namespace and then +click on `utils` to arrive at this link). + +# podio - The technical infrastructure on which things run +podio is an EDM toolkit that is used by and developed further in the Key4hep +context. The main purpose is to have an efficiently implemented, thread safe EDM +starting from a high level description. For more (gory) details have a look at +the [github repository](https://github.com/AIDASoft/podio). + +Here we will describe the code generation, and its implications for EDM4hep. A +[bit further down](#the-podioframe-container) we will describe how to read and +write podio (root) files and the [`podio-dump`](#podio-dump) tool to inspect +files without having to open them. + +## podio code generation +The podio code generator is a python script that reads in the EDM definition in +**yaml** format, does a few basic validation checks on the definition, and then +generates all the necessary code via the Jinja2 template engine. + + ![]() + +The generated code should (among other things) + +- be efficient, +- offer an easy to use interface, +- offer performant I/O. + +Having automated code generation has a few advantages: + +- Freeing the user from the repetitive task of implementing all the types + themselves +- Freeing the user from having to deal with all the details of how to do things + efficiently +- Making it very easy to roll out improved implementations (or bug fixes) via + simply regenerating the code + +### The three layers of podio +To achieve the goals stated above podio favors composition over inheritance and +uses **plain-old-data (POD)** types wherever possible. To achieve this podio +employs a layered design, which makes it possible to have an efficient memory +layout and performant I/O implementation, while still offering an easy to use +interface + +![]() + +- The *User Layer* is the top most layer and it **offers the full + functionality** and is the **only layer with which users interact directly**. + It consists mainly of the collections and lightweight handle classes, i.e. + - `XYZCollection` + - `XYZ` + - `MutableXYZ` +- The *Object Layer* consists of the `XYZObj` classes, that take care of all + resource management and which also enable the relations between different + objects. +- The *POD Layer* at the very bottom is where all the actual data lives in + simple `XYZData` POD structs. These are the things that are actually stored + in, e.g. root files that are written by podio. + +### Basics of generated code - value semantics +The generated c++ code offers so called *value semantics*. The exact details of +what this actually means are not very important, the main point **is that you +can treat all objects as values and you don't have to worry about inefficient +copies or managing resources:** + +```cpp +auto recos = edm4hep::ReconstructedParticleCollection(); + +// ... fill, e.g. via +auto p = recos.create(); +// or via +auto p2 = edm4hep::ReconstructedParticle(); +recos.push_back(p2); + +// Loop over a collection +for (auto reco : recos) { + auto vtx = reco.getStartVertex(); + // do something with the vertex + + // loop over related tracks + for (auto track : reco.getTracks()) { + // do something with this track + } +} +``` + +This looks very similar to the equivalent python code (if you squint a bit, and ignore the `auto`s, `;` and `{}` ;) ) + +```python +recos = edm4hep.ReconstructedParticleCollection() + +# ... fill, e.g. via +p = recos.create() +# or via +p2 = edm4hep.ReconstructedParticle() +recos.push_back(p2) + +# Loop over a collection +for reco in recos: + vtx = reco.getStartVertex() + # do something with the vertex + + # loop over related tracks + for track in reco.getTracks(): + # do something with the tracks +``` + +The python interface is functionally equivalent to the one c++ interface, since +that is implemented via PyROOT. There are some additions that make the python +interface more *pythonic*, e.g. `len(recos)` is equivalent to `recos.size()`. +Nevertheless, the doxygen reference is valid for both interfaces. + +### Guessing the interface from the yaml definition +Since all code is generated, it is usually pretty straight forward to guess how +the interface will look like just from looking at the definition in the yaml +file. For EDM4hep the general rule is to get a `Member` variable, a +`OneToOneRelation`, a `OneToManyRelation` or a `VectorMember` is to **simply +stick a `get` in front of the name in the yaml file and to capitalize the first +letter.**, e.g. + +```yaml +Members: + - edm4hep::Vector3f momentum // the momentum in [GeV] +``` +will turn into something like +```cpp +const edm4hep::Vector3f& getMomentum() const; +``` + +Similar, but in slightly more nuanced rules apply for the methods that are +generated for setting a value. For `Member` variables and `OneToOneRelation`s +the general rule is to **stick a `set` in front of the name in the yaml file and +to capitalize the first letter**, e.g. (continuing from above) + +```cpp +void setMomentum(edm4hep::Vector3f value); +``` + +For the `OneToManyRelation`s and `VectorMember`s the rule is to **stick a +`addTo` in front of the name in the yaml file and to capitalize the first +letter**, e.g. + +```yaml +OneToManyRelation: + - MCParticle daughters // the daughters of this particle +``` + +will be generated to + +```cpp +void addToDaughters(MCParticle daughter); +``` + +### Why is there a `XYZ` and a `MutableXYX`? + +The underlying technical reasons are rather complex, dive quite deepish into c++ +nuances, and definitely far beyond the scope of this tutorial. In short: We need +two different handle classes in order to control whether users are allowed to +modify things or not. As one of the main goals of podio generated EDMs is to be +thread safe the default generated class for each data type allows only for +immutable read access, i.e. it provides only the `get` methods. Only the +`Mutable` classes actually have the `set` methods, and can hence be used to +actually modify objects. The most important implication of this is the +following: **Everything that you read from file, or that you get from the Gaudi +TES (in [gaudi](../gaudi/README.md#accessing-data-within-an-algorithm), or that +you get from a [`Frame`](#the-podioframe-container)) is immutable.** I.e. there +is no way for you to change or update the values that you read. The only way to +"update" values (or collections) is to actually copy the contents and then store +the updated values back. Independent copies of objects can be obtained with the +`clone` method. + +### Writing function interfaces +The `Mutable` objects implicitly convert to an instance of a default class. +Hence, **always use the default classes when specifying function interfaces** +(obviously this only works if you only need read access in the function. **There +is no implicit conversion from the default, immutable objects to the `Mutable` +objects!** + +As an example +```cpp +void printE(edm4hep::MCParticle particle) { + std::cout << particle.getEnergy() << '\n'; +} + +void printEMutable(edm4hep::MutableMCParticle particle) { + std::cout << particle.getEnergy() << '\n'; +} + +int main() { + auto mutP = edm4hep::MutableMCParticle(); + p.setEnergy(3.14); + + printE(mutP); // Works due to implicit conversion + printEMutable(mutP); // Obviously also works + + // Now we create an immutable object + auto P = edm4hep::MCParticle(); + + printE(P); // Obviously works + printEMutable(P); // BREAKS: No conversion from default to Mutable + + return 0; +} +``` + +### Subset collections +Similar to LCIO, podio generated EDMs offer a *subset collection functionality*. +This allows to create collections of objects, that are actually part of another +collection, e.g. to simply collect all the muons that are present in a larger +collection of reconstructed particles: + +![]() + +To create a subset collection, simply do +```cpp +auto muons = edm4hep::ReconstructedParticleCollection(); +muons.setSubsetCollection(); + +// You can now add objects that are part +// of another collection to this one via push_back +muons.push_back(recos[0]); +``` + +Reading a subset collection works exactly the same as reading a normal +collection. This is handled in a transparent way, such that you usually don't +even realize that you are operating on a subset collection. + +## The `podio::Frame` container + +The `podio::Frame` is a *generalized event*. It is a container that aggregates +all relevant data (and some meta data). It also defines an implicit *interval of +validity* (but that is less relevant for this tutorial). It provides a thread +safe interface for data access +- Immutable read access only for collections that are stored inside the a + `Frame` +- All data that is inside a `Frame` is owned by it, and this is also reflected + in its interface. + +![]() + +Here we will just briefly introduce the main functionality, for more details see +the [documentation in +podio](https://github.com/AIDASoft/podio/blob/master/doc/frame.md). + +### Getting collections from a `Frame` +Assuming that `event` is a `podio::Frame` in the following code examples, +getting a collection can be done via (c++) + +```cpp +auto& mcParticles = event.get("MCParticles"); +``` + +or (python) + +```python +mcParticles = event.get("MCParticles") +``` + +This retrieves the collection that is stored under the name `MCParticles` with +type `edm4hep::MCParticleCollection`. If no such collection exists, it will +simply return an empty collection of the desired type. As you can see, the type +is automatically inferred in python. **Note that `get` returns a const&, so it +is required to actually put the `&` behind `auto` in c++**, otherwise there will +be a compilation error complaining about a copy-constructor being marked +`delete`. + +### Putting a collection into a `Frame` +When putting a collection into a `Frame` you give up ownership of this +collection. To signal this to the users, it is necessary to *move* the +collection into a `Frame`. Again assuming `event` is a `podio::Frame` in the +following examples, this looks like this + +```cpp +auto recos = edm4hep::ReconstructedParticleCollection(); +event.put(std::move(recos), "ReconstructedParticles"); +``` + +Note the requirement to explicitly use `std::move` in this case. At this point +`recos` is *moved* into the `event`, and you are left with an object [*in a +valid but unspecified state*](https://stackoverflow.com/a/12095473) that you +should under normal circumstances no longer use after this point. (Technically +we do enough that you still can use this, but don't expect the results to match +your expectations). + +## Reading EDM4hep files +EDM4hep files are read with tools provided by podio: + +- `ROOTFrameReader` - The default reader for files produced recently +- `ROOTLegacyReader` - The legacy reader for files produced in the past + +(There is also a `ROOTReader` that is obsolete and will be deprecated soon, so +please don't use that). The main reason for two different readers is the +introduction of the Frame concept which is not yet fully complete so currently +things are in a sort of "hybrid state". See +[here](#how-do-i-figure-out-if-a-file-is-legacy) for more information on how to +figure out whether the file you are interested in is a legacy file or not. + +As podio is a rather low level tool, also the interface of these readers feel +somewhat low level. This is mostly visible in the fact, that you have to provide +a `category` (name) when getting the number of entries, or when reading the next +entry. This is because in principle podio can handle multiple different +categories of Frames in one file. **For the purpose of this tutorial and also +for the majority of use cases, simply use `"events"` as category name.** Readers +in podio do not return a `podio::Frame` directly, rather they just return some +*frame data* from which a `podio::Frame` can be constructed. Putting all of +these things together, a simple event loop looks like this in c++: + +```cpp +#include "podio/ROOTFrameReader.h" +#include "podio/ROOTLegacyReader.h" // For reading legacy files +#include "podio/Frame.h" + +#include "edm4hep/MCParticleCollection.h" + +int main() { + auto reader = podio::ROOTFrameReader(); + // auto reader = podio::ROOTLegacyReader(); // For reading legacy files + reader.openFile("some_file_containing_edm4hep_data.root"); + + // Loop over all events + for (size_t i = 0; i < reader.getEntries("events"); ++i) { + auto event = podio::Frame(reader.readNextEntry("events")); + auto& mcParticles = event.get("MCParticles"); + + // do more stuff with this event + } + + return 0; +} +``` + +The equivalent python code looks like this + +```python +from podio import root_io + +reader = root_io.Reader("some_file_containing_edm4hep_data.root") +# if you want to read legacy files use root_io.LegacyReader + +for event in reader.get("events"): + mcParticles = event.get("MCParticles") + # do more stuff with this event +``` + +## ROOT file layout of podio generated EDMs +podio generated EDMs, i.e. also EDM4hep, use ROOT as their default I/O backend. +Since everything is based on PODs, the produced root files are pretty straight +forward to read and interpret (with some caveats). They are already almost flat +ntuples. + +![](images/edm4hep_branches_1.png) + + +![](images/edm4hep_browse_relations_1.png) + +### How do I figure out if a file is legacy? + +1. Use [`podio-dump`](#podio-dump) and it will tell you +```console +$podio-dump /home/workarea/data/rv02-02.sv02-02.mILD_l5_o1_v02.E250-SetA.I402003.Pe2e2h.eL.pR.n000.d_dstm_15089_0_edm4hep.root +input file: /home/workarea/data/rv02-02.sv02-02.mILD_l5_o1_v02.E250-SetA.I402003.Pe2e2h.eL.pR.n000.d_dstm_15089_0_edm4hep.root + +Frame categories in this file (this is a legacy file!): +[...] +``` + +2. Peek inside the root file and look at the contents + +![]() ![]() + + +## `podio-dump` +The `podio-dump` utility allows to inspect EDM4hep files from the command line. +The synopsis looks like this + +``` console +$podio-dump --help +usage: podio-dump [-h] [-c CATEGORY] [-e ENTRIES] [-d] inputfile + +Dump contents of a podio file to stdout + +positional arguments: + inputfile Name of the file to dump content from + +optional arguments: + -h, --help show this help message and exit + -c CATEGORY, --category CATEGORY + Which Frame category to dump + -e ENTRIES, --entries ENTRIES + Which entries to print. A single number, comma separated list of numbers or "first:last" for an inclusive range of entries. Defaults to the first entry. + -d, --detailed Dump the full contents not just the collection info +``` + +By default it prints how many events are present in the file and also a summary +of the contents of the first event. This overview consists of the names, data +types and number of elements of the collections that are stored in this event. +Using the `--detailed` flag, `podio-dump` will print the complete contents of +all collections in ASCII format. This can be quite a bit of information. Using +the `--entries` flag it is possible to choose which events to look at. The +`--categories` flag is an advanced feature and not necessary for this tutorial. + +`podio-dump` will also tell you whether the file that is passed to it is a +*legacy file* in which case you will need the `ROOTLegacyReader` or the +`SIOLegacyReader` to read it. diff --git a/_sources/index.md.txt b/_sources/index.md.txt new file mode 100644 index 0000000..58e67e6 --- /dev/null +++ b/_sources/index.md.txt @@ -0,0 +1,29 @@ +# Key4hep + + +```eval_rst +.. toctree:: + :maxdepth: 3 + :includehidden: + :caption: Contents: + + setup-and-getting-started/README.md + how-tos/README.md + tutorials/README.md + developing-key4hep-software/README.md + spack-build-instructions-for-librarians/README.md + talks-and-presentations/README.md + call-for-logos/README.md + CONTRIBUTING.md + +.. toctree:: + :maxdepth: 2 + :includehidden: + :caption: External links: + + FCC software + CLIC software + ILC software + CEPC software +``` + diff --git a/_sources/setup-and-getting-started/README.md.txt b/_sources/setup-and-getting-started/README.md.txt new file mode 100644 index 0000000..1688e72 --- /dev/null +++ b/_sources/setup-and-getting-started/README.md.txt @@ -0,0 +1,27 @@ +# Getting started with Key4hep software + +## Setting up the Key4hep Software Stack + +### Using a central installation on cvmfs + +Two builds with the key4hep stack are distributed on cvmfs. The releases happen +every few months on demand (for example, if there is a new important feature or +a breaking change) and at the moment only CentOS 7 is supported (support for +AlmaLinux 9 and Ubuntu is coming soon). Run the following to set up the stack: + +```bash +source /cvmfs/sw.hsf.org/key4hep/setup.sh +``` + +In addition, nightly builds for CentOS 7, AlmaLinux 9 and Ubuntu 22.04 with the +latest version of most of the packages are available: + +```bash +source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh +``` + +The `setup.sh` script always points to the latest build and it will change +without warning. However, after sourcing the script some information will be +displayed with instructions on how to reproduce the current environment. Nightly +builds are intended for development and testing and they will be deleted after +some time from `/cvmfs`. diff --git a/_sources/spack-build-instructions-for-librarians/README.md.txt b/_sources/spack-build-instructions-for-librarians/README.md.txt new file mode 100644 index 0000000..240d431 --- /dev/null +++ b/_sources/spack-build-instructions-for-librarians/README.md.txt @@ -0,0 +1,21 @@ +# Building Key4hep: For Librarians + +Key4hep comprises a fairly large number of software and depends on even more externals, so some tooling is needed to efficiently build the whole software stack. The [spack](https://spack.io) package manager can be used to build scientific software at scale, and is part of the Key4hep software R&D program. + + +A spack install of Key4hep is regularly deployed to `/cvmfs/sw.hsf.org/`, and can be used on lxplus/centos7 just by sourcing the following setup script: + +```bash +source /cvmfs/sw.hsf.org/key4hep/setup.sh +``` + +In this page, the workflow to create this installation is documented. + +```eval_rst +.. toctree:: + :caption: Contents: + + spack-setup.md +``` + + diff --git a/_sources/spack-build-instructions-for-librarians/spack-advanced.md.txt b/_sources/spack-build-instructions-for-librarians/spack-advanced.md.txt new file mode 100644 index 0000000..d04c0d3 --- /dev/null +++ b/_sources/spack-build-instructions-for-librarians/spack-advanced.md.txt @@ -0,0 +1,168 @@ + +# Spack Usage and Further Technical Topics + +This page collects a few known workarounds for issues and areas of development in spack. +Check also the issues in [key4hep-spack](https://github.com/key4hep/key4hep-spack/issues) for up-to-date information. +Additionally, we also provide a few more advanced invocations of `spack` commands that allow a certain degree of debugging of the decisions spack has made when installing a given package and its dependencies. + +## Checking which packages will be newly installed + +When installing a package it might be interesting to estimate how long it will take to do so. +An important proxy for this is how many and which dependencies spack will install in order to build a package. +This can be done with the `spack solve` command, which invokes the concretizer and then spits out the solution that would be installed if the same arguments were passed to `spack install`, e.g. + +```bash +spack solve -I +``` +```console +==> Best of 12 considered solutions. +==> Optimization Criteria: + Priority Criterion Installed ToBuild + 1 number of input specs not concretized - 0 + 2 number of packages to build (vs. reuse) - 4 + 3 requirement weight 0 0 + 4 deprecated versions used 1 0 + 5 version weight 0 0 + 6 number of non-default variants (roots) 0 0 + 7 preferred providers for roots 0 0 + 8 default values of variants not being used (roots) 0 0 + 9 number of non-default variants (non-roots) 3 0 + 10 preferred providers (non-roots) 0 0 + 11 compiler mismatches 0 0 + 12 OS mismatches 0 0 + 13 non-preferred OS's 0 0 + 14 version badness 156 0 + 15 default values of variants not being used (non-roots) 1 0 + 16 non-preferred compilers 0 0 + 17 target mismatches 0 0 + 18 non-preferred targets 165 44 + + - whizard@3.0.3%gcc@10.3.0~fastjet~latex~lcio~lhapdf~openloops~openmp+pythia8 hepmc=3 arch=linux-ubuntu20.04-x86_64 +[+] ^hepmc3@3.2.4%gcc@10.3.0~interfaces~ipo~python~rootio build_type=RelWithDebInfo arch=linux-ubuntu20.04-x86_64 +[+] ^cmake@3.16.3%gcc@10.3.0~doc+ncurses+ownlibs~qt build_type=RelWithDebInfo patches=1c54004,bf695e3 arch=linux-ubuntu20.04-x86_64 + - ^libtirpc@1.2.6%gcc@10.3.0 arch=linux-ubuntu20.04-x86_64 + - ^krb5@1.19.3%gcc@10.3.0+shared arch=linux-ubuntu20.04-x86_64 +[+] ^bison@3.8.2%gcc@10.3.0 arch=linux-ubuntu20.04-x86_64 +[+] ^diffutils@3.8%gcc@10.3.0 arch=linux-ubuntu20.04-x86_64 +[+] ^libiconv@1.16%gcc@10.3.0 libs=shared,static arch=linux-ubuntu20.04-x86_64 +[+] ^m4@1.4.18%gcc@10.3.0+sigsegv patches=3877ab5,fc9b616 arch=linux-ubuntu20.04-x86_64 +[+] ^perl@5.30.0%gcc@10.3.0~cpanm+shared+threads arch=linux-ubuntu20.04-x86_64 +[+] ^gettext@0.21%gcc@10.3.0+bzip2+curses+git~libunistring+libxml2+tar+xz arch=linux-ubuntu20.04-x86_64 +[+] ^bzip2@1.0.8%gcc@10.3.0~debug~pic+shared arch=linux-ubuntu20.04-x86_64 +[+] ^libxml2@2.9.13%gcc@10.3.0~python arch=linux-ubuntu20.04-x86_64 +[+] ^pkgconf@1.8.0%gcc@10.3.0 arch=linux-ubuntu20.04-x86_64 +[+] ^xz@5.2.5%gcc@10.3.0~pic libs=shared,static arch=linux-ubuntu20.04-x86_64 +[+] ^zlib@1.2.12%gcc@10.3.0+optimize+pic+shared patches=0d38234 arch=linux-ubuntu20.04-x86_64 +[+] ^ncurses@6.2%gcc@10.3.0~symlinks+termlib abi=none arch=linux-ubuntu20.04-x86_64 +[+] ^tar@1.30%gcc@10.3.0 zip=pigz arch=linux-ubuntu20.04-x86_64 +[+] ^openssl@1.1.1f%gcc@10.3.0~docs~shared certs=mozilla arch=linux-ubuntu20.04-x86_64 + - ^ocaml@4.13.1%gcc@10.3.0+force-safe-string arch=linux-ubuntu20.04-x86_64 +[+] ^pythia8@8.306%gcc@10.3.0~evtgen~fastjet~hdf5+hepmc+hepmc3~lhapdf~madgraph5amc~mpich~openmpi~python~rivet~root+shared arch=linux-ubuntu20.04-x86_64 +[+] ^hepmc@2.06.11%gcc@10.3.0~ipo build_type=RelWithDebInfo length=MM momentum=GEV arch=linux-ubuntu20.04-x86_64 +[+] ^rsync@3.1.3%gcc@10.3.0 arch=linux-ubuntu20.04-x86_64 +``` + +The `-I` flag shows which packages are alrady installed. +`spack solve` also shows some information about all the things that were considered during concretization. It can also be used to dump more information on the concretization process. +Unfortunately, this information is rather hard to parse, and still a work in progress from the spack developers. + + +## Requiring certain variants globally + +spack can be configured using some [configuration +files](https://spack.readthedocs.io/en/latest/configuration.html). Specifically +using `packages.yaml` which is read from the user directory, i.e. `~/.spack` (or +`/.spack/linux`) can be used to enforce the value of certain default variants +globally. To solve the above problem it is enough to put the following into +`packages.yaml`: + +```yaml +packages: + all: + variants: cxxstd=17 + ``` + +It is still possible to override this for certain packages either by +individually configuring them in `packages.yaml` or via the command line which +take precedence over all configuration files. + +In the Key4hep software stack build recipes for releases, we use the same mechanism, as this configuration is also available from spack environments. + + +## System Dependencies + +Some spack packages have *external find* support. For these packages it is possible to let spack detect the variants and versions for system (or otherwise) installed packages. +For such cases use the `spack external find` command. It has to be noted that detecting external packages and using them does not always work perfectly. + + +## Target Architectures + +Since HEP software is usually deployed on a variety of machines via cvmfs, installations need to pick a target architecture. `broadwell` is for now the default choice, and can be set with: + +``` +packages: + all: + target: [broadwell] +``` + +in `$HOME/.spack/linux/packages.yaml` + + + + +## Bundle Packages and Environments + +Right now, key4hep is installed via a `BundlePackage`, that depends on all other relevant packages. +An alternative would be to use [spack environments](https://spack-tutorial.readthedocs.io/en/latest/tutorial_environments.html#creating-and-activating-environments). This alternative is still under investigation. + + +## Setting Up Runtime Environments + +The simplest way to set the environment to use spack installed packages is to use the `spack load` command. +In order for users not to have to set up spack when it is not needed, the `key4hep-stack` bundle package includes a script that will automatically generate a bash setup script and install it into its prefix. + +Spack can also create "filesystem views" of several packages, resulting in a directory structure similar what you would find in `/usr/local`. +This simplifies library and include paths, but the setup generation for views still has to be developed. + +## Compiler Dependencies and Data Packages + +Some HEP packages (like `geant4-data`) consist only of data files, and can thus be used on any platform. +Spack cannot yet handle this gracefully, but an ongoing development tries to treat compilers as dependencies, which would help with re-using data packages. + + +## Duplicating Recipes in Downstream Repositories + +Although it is possible to "patch" spack build recipes by overriding them in another repository (key4hep-spack, for example), this is discouraged. +The central repo is one of the strenghts of spack, with many contributors ensuring that packages build smoothly. +Also, packages are installed in different namespaces, so it is not possible to deprecate changed recipes and use the upstream ones without re-installing the packages. + + +## CVMFS Installation Workflow + +The distribution on cvmfs is an exact copy of the spack installation on the build machine, just copied with this rsync command on the publisher: + +``` +rsync -axv --inplace --delete --verbose -e "ssh -T -o Compression=no -o StrictHostKeyChecking=no -o GSSAPIAuthentication=yes -o GSSAPITrustDNS=yes" user@build-machine:/cvmfs/sw.hsf.org/spackages/ /cvmfs/sw.hsf.org/spackages/ +``` + +The `--delete` option can be omitted in order to preserve already installed packages, regardless of the state of the build machine. + + + +## Compiler Wrappers + +Spack uses compiler wrappers instead of exposing the actual compilers during the build. +For packages like whizard, which register the compiler path to use during runtime, this will not work, as the wrappers are not available at runtime. +For these packages, the current workaround is to force spack to use the actual compilers during build (see the build recipe of `whizard`). + + +## Spack-Installed LCG releases + +A spack installation that contains all packages in the LCG releases is work in progress, see https://gitlab.cern.ch/sft/sft-spack-repo. + +## Using Spack-installed GCC + +When installing gcc with spack, it is necessary to add a `cc` symlink to `$PATH`, in order to avoid errors with cling, see https://github.com/spack/spack/issues/17488. + + + diff --git a/_sources/spack-build-instructions-for-librarians/spack-buildcache.md.txt b/_sources/spack-build-instructions-for-librarians/spack-buildcache.md.txt new file mode 100644 index 0000000..7868606 --- /dev/null +++ b/_sources/spack-build-instructions-for-librarians/spack-buildcache.md.txt @@ -0,0 +1,49 @@ + +# Spack Buildcaches + +{% callout "Spack documentation" %} + +Buildcaches were investigated, but are no longer supported for Key4hep software, due to the difficulty of relocating some packages. + +For more information refer to the [spack documentation](https://spack.readthedocs.io/en/latest/binary_caches.html). + +{% endcallout %} + +It is possible to relocate and re-use binaries with the so-called buildcache. +Some central buildcaches are on the key4hep `eos` space under: + +``` +/eos/project/k/key4hep/www/key4hep/spack_build/mirror/spackages +``` +`spackages` is intended as the central buildcache for key4hep packages built from scratch, +but there exist other buildcaches for packages built against the LCG releases, and rolling builds that are using the branchname `master` or other moving targets. +All packages versioned `package@master` are treated by spack as the same version, even if master points to different commits, thus they must be installed to separate directories, ideally indicating the date. +A buildcache called `contrib` is intended for build tools such as compilers. +Spack automatically creates subdirectory for different platforms and compiler versions. + +For write permissions to this space, subscribe to the egroup `cernbox-project-key4hep-writers`. + +The following command can be used to put packages into the buildcache: + +```bash +# key4hep-stack was already installed with 'spack install key4hep-stack' +spack mirror add key4hep /eos/project/k/key4hep/www/key4hep/spack_build/mirror/spackages +spack buildcache create -m key4hep -u -a -f key4hep-stack +``` + +Since the packages need to be relocated as well as copied, this might take up to an hour. + + +In order to install packages from the buildcache, use: + +```bash +spack buildcache install -u -a key4hep-stack +``` + +Spack will then search all added mirrors for `key4hep-stack`. +For read-only access on machines without `eos`, these files are served also over http: + + +```bash +spack mirror add key4hep-web http://key4hep.web.cern.ch/key4hep/spack_build/mirror/spackages/ +``` diff --git a/_sources/spack-build-instructions-for-librarians/spack-nightlies.md.txt b/_sources/spack-build-instructions-for-librarians/spack-nightlies.md.txt new file mode 100644 index 0000000..46b1d0a --- /dev/null +++ b/_sources/spack-build-instructions-for-librarians/spack-nightlies.md.txt @@ -0,0 +1,21 @@ +# Nightly Builds with Spack + + +## Usage of the nightly builds on CVMFS + +For Centos7, the latest nightly build can be set up by running: + +``` +source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh +``` + +Spack can also be configured to use `/cvmfs/sw-nightlies.hsf.org/spackages` as an upstream installation. + +## Technical Information + +Nightly builds can be a very useful tool, both to test code correctness and to quickly and automatically deploy the latest developments. +In contrast to the release builds, which use the latest stable version of the individual packages, nightly builds typically use the HEAD of the main development branch. + +It is not very efficient to completely rebuild the stack every day, as some packages change fairly infrequently. +The key4hep-spack repository includes some scripts in order to use commit hashes as versions. + diff --git a/_sources/spack-build-instructions-for-librarians/spack-setup.md.txt b/_sources/spack-build-instructions-for-librarians/spack-setup.md.txt new file mode 100644 index 0000000..f27e5e0 --- /dev/null +++ b/_sources/spack-build-instructions-for-librarians/spack-setup.md.txt @@ -0,0 +1,110 @@ + +## Setting up Spack + + +### Downloading a spack instance + +Spack is easy to set up: simply clone the key4hep fork, and use one of the provided spack "environments", that is spack configuration that is created automatically from the current key4hep/key4hep-spack repository. + +```bash +git clone https://github.com/spack/spack +git clone https://github.com/key4hep/key4hep-spack +source spack/share/spack/setup-env.sh +source key4hep-spack/environments/key4hep-release-user/setup_clingo_centos7.sh # NOTE: only needed on centos7 +spack env activate key4hep-spack/environments/key4hep-release-user # or other environment, see below +``` + +These instructions assume that a Centos7 machine with a running CVMFS client is used (for other OSs see below). Since Spack cannot bootstrap with the system compiler on Centos7, a setup script for Clingo ( a spack dependency ) is provided. + +### Using Spack Environments + +The [spack environments](https://spack.readthedocs.io/en/latest/environments.html) available in `key4hep-spack/environments` bundle the spack configuration, setting up a suitable compiler from cvmfs, the key4hep package recipes, whether to create a view, etc. It is recommended to always use spack in an environment. New environments can be easily created by copying and modifying existing ones, but some use relative links to common configuration files in `key4hep-spack/environments/key4hep-common`, so they should be kept in the `key4hep/environments` directory. + +The basic environment is `key4hep-release`, which is used for the central installations and therefore uses `/cvmfs` as install area. `key4hep-debug` is a variation for debug builds. The default compiler is gcc, but an environment that uses clang is provided under `key4hep-release-clang`. + For local builds that use cvmfs read-only, `key4hep-release-user` can be used. + +### Using the key4hep-release-user environment + +The key4hep user environment has the `key4hep-stack` bundle package in its spec list. By concretizing it, spack selects the latest compatible versions, re-using installations from cvmfs + +```bash +spack concretize -f +spack find # lists the available concretized packages +``` + +The environment can be installed as is, although this will just install the bundle packages. However, this will create a setup script that can be used to load the software. + +``` +spack install +``` + +Custom builds can now be realized, by adding specs to the environment and concretizing together. For example, to build the stack with a local version of EDM4hep: + +``` +spack add edm4hep@master +git clone https://github.com/key4hep/edm4hep +# make some local changes to edm4hep +spack develop -p $PWD/edm4hep edm4hep@master +spack concretize -f +spack install + +``` + + +### Configuring Spack + +Alternatively, and for other platforms, spack can be configured in a few steps. These steps are essentially what is used to create the pre-configured spack instance in this script: https://github.com/key4hep/key4hep-spack/blob/master/scripts/ci_setup_spack.sh + +While this still puts the configuration files in the global scope of spack, it is recommended to use them in an environment, as provided by key4hep-spack. + +#### Installing Spack +Spack itself is very easy to install - simply clone the repository with git. + +```bash +git clone https://github.com/spack/spack.git +source spack/share/spack/setup-env.sh +``` + +#### Installing the key4hep package recipes + + The spack repository for key4hep packages is installed the same way: + +``` +git clone https://github.com/key4hep/key4hep-spack.git +spack repo add key4hep-spack +``` + +### Configuring `packages.yaml` + +In order to choose the right package versions and build options, spack sometimes needs a few [hints and nudges](https://spack.readthedocs.io/en/latest/build_settings.html). With the new concretizer (default as of spack version 0.17) this should be mostly obsolete. +key4hep-spack ships a spack config file that should give a good build customization out of the box, but can also be customized further. It just needs to be copied to the configuration where spack searches for configurations: + +``` +cp key4hep-spack/environments/key4hep-common/packages.yaml spack/etc/spack/ +``` + + + +#### Configuring `upstreams.yaml` + +The cvmfs installation can be used as an "upstream installation", by adding the following configuration: + +```bash +cat <> spack/etc/spack/upstreams.yaml +upstreams: + spack-instance-1: + install_tree: /cvmfs/sw.hsf.org/spackages6/ +EOT +``` + + +#### Setting up additional compilers + +Often it is practical to use a compiler already installed upstream. Spack provides the `spack compiler find` command for this, but the compiler needs to be loaded into the PATH: + +```bash +# loading the compiler from upstream +source /cvmfs/sft.cern.ch/lcg/contrib/gcc/11.2.0/x86_64-centos7/setup.sh +spack compiler find --scope site +``` + diff --git a/_sources/talks-and-presentations/README.md.txt b/_sources/talks-and-presentations/README.md.txt new file mode 100644 index 0000000..c2ec9a6 --- /dev/null +++ b/_sources/talks-and-presentations/README.md.txt @@ -0,0 +1,43 @@ +# Talks and Presentations + +A Zotero group with the items listed below can be found [here](https://www.zotero.org/groups/2447672/key4hep-talksandpublications). + +* *Carceller, Juan Miguel*, **Spack in Key4hep** presented at the HSF Software + Developer Tools & Packaging Working Group July 11, 20 + + +* *Carceller, Juan Miguel*, **key4hep Update** presented at the CERN EP R&D: Software meeting, June + 21, 2023, + + +* *Volkl, Valentin*, **Status of the key4hep Software Development** presented at + IAS Program on High Energy Physics (HEP 2021), January 20, 2021, + + +* *Madlener, Thomas*. **Key4HEP - Turnkey Software for Future Colliders** + presented at the XXVII Cracow EPIPHANY Conference on Future of particle + physics, January 10, 2021. + + +* *Helsens, Clement*, **FCC software for physics and detector studies** + presented at the XXVII Cracow EPIPHANY Conference on Future of particle + physics, January 10, 2021. + + +* *Ganis, Gerardo*. **“The Turnkey Software Stack: Where Are We and Where We + Want to Go.”** presented at the IAS HEP 2020, January 17, 2020. + . + +* *Sailer, André*. **“Key4HEP: Turnkey Software for Future Collider + Experiments.”** presented at the Joint Workshop on Future Charm–Tau Factory, + September 24, 2019. + . + +* *Sailer, André*. **“Towards a Turnkey Software Stack for HEP Experiments.”** + presented at the International Conference on Computing in High Energy & + Nuclear Physics 2019, September 5, 2019. + . + +* *Mato, Pere*. **“Key4HEP: The Common Turnkey Software Stack.”** presented at + the CLICdp Collaboration Meeting, August 28, 2019. + . diff --git a/_sources/tutorials/README.md.txt b/_sources/tutorials/README.md.txt new file mode 100644 index 0000000..7f08605 --- /dev/null +++ b/_sources/tutorials/README.md.txt @@ -0,0 +1,25 @@ +# Key4hep Tutorials + +This page contains several tutorials for working in a Key4hep software stack. We +try to design and set them up in a way that they can be done at any time but we +present them at hands-on tutorial sessions as well. This is an incomplete list +of all available tutorials, which you can find in the +[key4hep-tutorials](https://github.com/key4hep/key4hep-tutorials) repository. + +**If you are following these tutorials and run into an issue please let us know +by [opening an issue](https://github.com/key4hep/key4hep-doc/issues/new/choose) +on the [`key4hep-doc`](https://github.com/key4hep/key4hep-doc) repository.** If +you have the feeling that something is missing, we are also very happy to accept +new tutorial suggestions. If you have a tutorial that you would like to add +here. + +```eval_rst +.. toctree:: + :caption: Exercises + + k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/Readme.md + key4hep-tutorials/gaudi_ild_reco/README.md + k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/howtoMultithread.md + k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/CEDViaWrapper.md + k4simdelphes/doc/starterkit/k4SimDelphes/Readme.md +``` diff --git a/_sources/tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/CEDViaWrapper.md.txt b/_sources/tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/CEDViaWrapper.md.txt new file mode 100644 index 0000000..fb32771 --- /dev/null +++ b/_sources/tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/CEDViaWrapper.md.txt @@ -0,0 +1,139 @@ + +# Running an Event Display with EDM4hep input + +It is possible to run the [C Event Display (CED)](https://github.com/iLCSoft/CED) via a wrapped [CEDViewer](https://github.com/iLCSoft/CEDViewer) Marlin Processor. This makes it possible to run the Event Dispaly with EDM4hep input files using an on the fly conversion to LCIO for CED. This introduction shows the basic concepts and also provides a options file that should work for most use cases. This example will be using the CLIC detector but should also work for other DD4hep detector models. The example is fully self contained, if you already have everything set up you can jump directly to [running the event display](#running-the-event-display). + +## Setting up an environment + +The following steps have been tested with the Key4hep nightly builds release which can be setup using +```bash +source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh +``` + +To get the CLIC detector description we clone the `CLICPerformance` repository +```bash +git clone https://github.com/iLCSoft/CLICPerformance +``` + +All the following steps assume that the environment is setup like above and that the detector description is in the `CLICPerformance` directory. All commands start from the directory from which `git clone` has been executed. + +## Creating an input file + +To create an input file for the event display we run a simple detector simulation using `ddsim` and a particle gun that shoots photons. The input file that we create here for illustration purposes has only 10 events, which also means that the creation should only take a few minutes. The steps to create this file are the following + +```bash +ddsim --steeringFile CLICPerformance/clicConfig/clic_steer.py \ + --compactFile $K4GEO/CLIC/compact/CLIC_o3_v14/CLIC_o3_v14.xml \ + --enableGun \ + --gun.distribution uniform \ + --gun.particle gamma \ + --gun.energy 10*GeV \ + --outputFile gamma_10GeV_edm4hep.root \ + --numberOfEvents 10 +``` + +You should now have a `gamma_10GeV_edm4hep.root` file containing 10 events. + +## Running the event display + +In order to run the event display via the `DDCEDViewer` we use the Marlin wrapper and attach an EDM4hep to LCIO converter to the wrapped processor. In the following we will build the complete Gaudi options file step by step. Here we simply present the most important steps, but do not go over all details of the `DDCEDViewer` configuration, for that it is probably best to directly look at the [CEDViewer repository](https://github.com/iLCSoft/CEDViewer) directly. The complete Gaudi configuration can be found in [`k4MarlinWrapper/examples/event_display.py`](https://github.com/key4hep/k4MarlinWrapper/blob/master/k4MarlinWrapper/examples/event_display.py) which is also installed at `$K4MARLINWRAPPER/examples/event_display.py` + +To read EDM4hep input we use the `PodioInput` module and the `k4DataSvc` +```python +from Gaudi.Configuration import * +from Configurables import k4DataSvc, PodioInput + +algList = [] + +evtsvc = k4DataSvc('EventDataSvc') +evtsvc.input = '' + +inp = PodioInput('InputReader') +inp.collections = [ + # ... all collections that should be read ... +] + +algList.append(inp) +``` + +The `DDCEDViewer` also requires setting up a DD4hep geometry, which can simply be done by wrapping the `InitializeDD4hep` Marlin Processor +```python +from Configurables import MarlinProcessorWrapper + +MyInitializeDD4hep = MarlinProcessorWrapper("MyInitializeDD4hep") +MyInitializeDD4hep.OutputLevel = INFO +MyInitializeDD4hep.ProcessorType = "InitializeDD4hep" +MyInitializeDD4hep.Parameters = { + "DD4hepXMLFile": ["CLICPerformance/Visualisation/CLIC_o3_v06_CED/CLIC_o3_v06_CED.xml"] + } + +algList.append(MyInitializeDD4hep) +``` +Note that in this case we already have passed in the geometry that we want to use for the event display. + +Finally, the main work is done by the `DDCEDViewer`, which we again use via the `MarlinProcessorWrapper` (omitting a lot of the detailed configuration here). In order to convert the EDM4hep inputs to LCIO we attach an `EDM4hep2LcioTool` to this algorithm +```python +from Configurables import EDM4hep2LcioTool + +MyCEDViewer = MarlinProcessorWrapper("MyCEDViewer") +MyCEDViewer.OutputLevel = INFO +MyCEDViewer.ProcessorType = "DDCEDViewer" +MyCEDViewer.Parameters = { + # ... lots of CEDViewer configuration ... + } + +# EDM4hep to LCIO converter +edmConvTool = EDM4hep2LcioTool("EDM4hep2lcio") +edmConvTool.convertAll = True +edmConvTool.collNameMapping = {'MCParticles': 'MCParticle'} +edmConvTool.OutputLevel = DEBUG +MyCEDViewer.EDM4hep2LcioTool = edmConvTool + +algList.append(MyCEDViewer) +``` + +The only thing that is left to do now is to put everything into the `ApplicationManager` in order to run things +```python +from Configurables import ApplicationMgr +ApplicationMgr( TopAlg = algList, + EvtSel = 'NONE', + EvtMax = 10, + ExtSvc = [evtsvc], + OutputLevel=INFO + ) +``` + +With all these pieces put together (as in `examples/event_display.py`) it is now possible to run the event display. In order to run the event display we first have to start the `glced` server program to which the wrapped `CEDViewer` processor will then connect. Starting the server and running the wrapped processor can be done via +```bash +glced & + +k4run $K4MARLINWRAPPER/examples/event_display.py --EventDataSvc.input=gamma_10GeV_edm4hep.root +``` + +## Creating a Gaudi options file + +The `event_display.py` options file that is used above and that is present in the examples has been produced following these steps: +- Using an `.slcio` input file and the desired geometry, run `ced2go` with the desired arguments. + - This produces a Marlin XML steering file on the fly and stores it at `/tmp/ced2go_${USER}_steering.xml` +- Using the `convertMarlinSteeringToGaudi.py` converter script convert this into a Gaudi options file +- Exchange the LCIO input reading by the podio input reading (see above) +- Attach the `EDM4hep2LcioTool` to the wrapped `CEDViewer` processor + +This should allow one to arrive at a similar steering file even for slightly different configurations. One potential pitfall is the slightly different naming of the `ddsim` outputs between LCIO and EDM4hep (see [this issue](https://github.com/AIDASoft/DD4hep/issues/921)). This can be addressed by configuring the EDM4hep to LCIO converter (`edmConvTool` in the code above) to map the names accordingly. diff --git a/_sources/tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/Readme.md.txt b/_sources/tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/Readme.md.txt new file mode 100644 index 0000000..88591a2 --- /dev/null +++ b/_sources/tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/Readme.md.txt @@ -0,0 +1,178 @@ + +# Using the Key4hep-Stack for CLIC Simulation and Reconstruction + + +This assumes that you have access to an installation of the Key4hep-stack, either via ``CVMFS`` or ``spack install``. +To setup the installation on cvmfs, do: + +```bash +source /cvmfs/sw.hsf.org/key4hep/setup.sh +``` + +These commands will explain how one can run the CLIC detector simulation and reconstruction using the Key4hep-Stack. +First we will obtain all the necessary steering and input files for CLIC, simulate a few events and run the +reconstruction both with ``Marlin`` and ``k4run``. These steps can be adapted to simulate or run other ``Marlin`` +processors as well. + +The ``CLICPerformance`` repository contains the steering and input files. + +```bash +git clone https://github.com/iLCSoft/CLICPerformance +``` + +## Simulation + +Simulating a few events with `ddsim` can produce output in EDM4hep or LCIO format. + +- To produce events in **EDM4hep** format one can run indicating `--outputFile _edm4hep.root` to produce the +output in such format: + + +```bash +cd CLICPerformance/clicConfig + +ddsim --compactFile $K4GEO/CLIC/compact/CLIC_o3_v14/CLIC_o3_v14.xml \ + --outputFile ttbar_edm4hep.root \ + --steeringFile clic_steer.py \ + --inputFiles ../Tests/yyxyev_000.stdhep \ + --numberOfEvents 3 +``` + +- To produce events in **LCIO** format one can run indicating `--outputFile .slcio` to produce the output file +in such format: + +```bash +cd CLICPerformance/clicConfig + +ddsim --compactFile $K4GEO/CLIC/compact/CLIC_o3_v14/CLIC_o3_v14.xml \ + --outputFile ttbar.slcio \ + --steeringFile clic_steer.py \ + --inputFiles ../Tests/yyxyev_000.stdhep \ + --numberOfEvents 3 +``` + + +## Reconstruction + +### Reconstruction with Marlin + +To run the reconstruction with ``Marlin``: + +```bash +cd CLICPerformance/clicConfig + +Marlin clicReconstruction.xml \ + --InitDD4hep.DD4hepXMLFile=$K4GEO/CLIC/compact/CLIC_o3_v14/CLIC_o3_v14.xml \ + --global.LCIOInputFiles=ttbar.slcio \ + --global.MaxRecordNumber=3 +``` + +### Reconstruction with Gaudi through k4MarlinWrapper + +We can convert the ``xml`` steering file to a Gaudi steering file (python): + +```bash +cd CLICPerformance/clicConfig + +convertMarlinSteeringToGaudi.py clicReconstruction.xml clicReconstruction.py +``` + +Reconstruction can be performed with LCIO or EDM4hep input, depending on the output format of the events produced +during [Simulation](#simulation). + +#### Reconstruction with LCIO input + +- When using **LCIO** format for the input events to be used in reconstruction: + + Modify the ``clicReconstruction.py`` file to point to the ``ttbar.slcio`` input file, and change the + ``DD4hepXMLFile`` parameter for the ``InitDD4hep`` algorithm. In addition the two processors with the comment ``# + Config.OverlayFalse`` and ``# Config.TrackingConformal`` should be enabled by uncommenting their line in the ``algList`` + at the end of the file. + +```bash +cd CLICPerformance/clicConfig + +sed -i '1s/^/import os\n/' clicReconstruction.py +sed -i 's;read.Files = \[".*"\];read.Files = \["ttbar.slcio"\];' clicReconstruction.py +sed -i 's;EvtMax = 10,;EvtMax = 3,;' clicReconstruction.py +sed -i 's;"MaxRecordNumber": ["10"],;"MaxRecordNumber": ["3"],;' clicReconstruction.py +sed -i 's;# algList.append(OverlayFalse);algList.append(OverlayFalse);' clicReconstruction.py +sed -i 's;# algList.append(MyConformalTracking);algList.append(MyConformalTracking);' clicReconstruction.py +sed -i 's;# algList.append(ClonesAndSplitTracksFinder);algList.append(ClonesAndSplitTracksFinder);' clicReconstruction.py +sed -i 's;# algList.append(RenameCollection);algList.append(RenameCollection);' clicReconstruction.py +sed -i 's;"DD4hepXMLFile": \[".*"\],; "DD4hepXMLFile": \[os.environ["LCGEO"]+"/CLIC/compact/CLIC_o3_v14/CLIC_o3_v14.xml"\],;' clicReconstruction.py + +``` + +Then the reconstruction using the k4MarlinWrapper can be run with + +```bash +cd CLICPerformance/clicConfig + +k4run clicReconstruction.py +``` + + +#### Reconstruction with EDM4hep input + +- When using **EDM4hep** format for the input events to be used in reconstruction, refer to the [**EDM converters**](https://github.com/key4hep/k4MarlinWrapper/blob/master/doc/MarlinWrapperIntroduction.md) +included with k4MarlinWrapper. Note that: + + *MarlinProcessorWrappers* need input in LCIO format: EDM4hep collections need to be converted to LCIO + + The output collections of *MarlinProcessorWrappers* may be used later by other algorithms: + * Output collections of *MarlinProcessorWrappers* will be in LCIO format unless these are explicitly converted + * Some *MarlinProcessorWrappers* may modify collections instead of producing new ones: the original EDM4hep collection wont be updated in this case and would need conversion from LCIO to EDM4hep. + +- To run *clicReconstruction* with EDM4hep format, use the steering file found in the `examples` folder of k4MarlinWrapper: +`k4MarlinWrapper/examples/clicRec_e4h_input.py` (this also gets installed to `$K4MARLINWRAPPER/examples` in Key4hep releases) + + Change the line where `evtsvc.input` is defined to point to the location of your input file. + + At the bottom of the file, in the `ApplicationMgr` parameters, change `EvtMax = 3,` to the number of events to run. + +This can be run in the following way. +```bash +cd CLICPerformance/clicConfig + +cp $K4MARLINWRAPPER/examples/clicRec_e4h_input.py . + +k4run clicRec_e4h_input.py --EventDataSvc.input ttbar_edm4hep.root +``` + +### DD4hep Geometry Information + +The ``MarlinDD4hep::InitializeDD4hep`` processor can be replaced by the ``k4SimGeant4::GeoSvc`` and the +``TrackingCellIDEncodingSvc`` the latter of which is part of the k4MarlinWrapper repository. + +For example: + +```python +import os +from Gaudi.Configuration import INFO +from Configurables import GeoSvc, TrackingCellIDEncodingSvc +svcList = [] +geoservice = GeoSvc("GeoSvc") +geoservice.detectors = [os.environ["K4GEO"]+"/CLIC/compact/CLIC_o3_v15/CLIC_o3_v15.xml"] +geoservice.OutputLevel = INFO +geoservice.EnableGeant4Geo = False +svcList.append(geoservice) + +cellIDSvc = TrackingCellIDEncodingSvc("CellIDSvc") +cellIDSvc.EncodingStringParameterName = "GlobalTrackerReadoutID" +cellIDSvc.GeoSvcName = geoservice.name() +cellIDSvc.OutputLevel = INFO +svcList.append(cellIDSvc) +``` diff --git a/_sources/tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/howtoMultithread.md.txt b/_sources/tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/howtoMultithread.md.txt new file mode 100644 index 0000000..5335ce6 --- /dev/null +++ b/_sources/tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/howtoMultithread.md.txt @@ -0,0 +1,142 @@ + +# How to run multithreading with k4MarlinWrapper (Gaudi) + +**Supported** +- Reading LCIO events with `LcioEvent()` +- Writing LCIO events with `LcioEventOutput()` +- Running `MarlinProcessorWrapper`s with **no** converters +- Using `whiteboard` as `ExtSvc` (no k4DataSvc or EventDataSvc) + +**Not supported** +- Using EDM converters `EDM4hep2LcioTool` and `Lcio2EDM4hepTool()` +- Reading EDM4hep events with `PodioInput()` +- Writing EDM4hep events with `PodioOutput()` +- Writing EDM4hep events with `MarlinProcessorWrapper` of type `LCIOOutputProcessor` +- Running non-thread algorithms/processors in parallel +- Running wrapped Marlin processors that make use of the `isFirstEvent` method in their `processEvent` method to do some setup only in the first event. There is no way to make this thread safe. If you want your processor to be usable on in a multi threaded environment, you have to move this setup to `init`. + +## Running Gaudi with multithreading support + +Gaudi uses [Intel TBB](https://oneapi-src.github.io/oneTBB/) under the hood for multithreading. + +Gaudi exposes two main levels of parallelism: +- Inter-event parallelism: running multiple events in parallel +- Intra-event parallelism: running multiple algorithms in parallel, within an event + +The two levels of parallelism can be combined: events can run in parallel, and algorithms within the events can run in parallel. + +### How to run with inter-event parallelism + +The following components are used to achieve parallelism: + +```python +from Configurables import (HiveWhiteBoard, HiveSlimEventLoopMgr, AvalancheSchedulerSvc) +``` + +These 3 components need to be configured to adapt the level of parallelism to the sequence, algorithms and hardware to be used. + +- Event Data Service: `HiveWhiteBoard` + + *EventSlots*: Number of events that may run in parallel, each with its own EventStore + + This is the Event Data Service, which needs the number of EventSlots +- Event Loop Manager: `HiveSlimEventLoopMgr` + + Event Loop Manager with parallelism support +- Thread Scheduling config: `AvalancheSchedulerSvc` + + Scheduler to indicate the number of threads to use + + In needs the total number of threads to use: this determines how many events and algorithms can be in flight (run in parallel) + + Default value is `-1` which indicate TBB to take over the machine with what it decides to be the optimal configuration + + +All these components can be set as follows in the options file: + +```python +evtslots = 4 +threads = 4 + +whiteboard = HiveWhiteBoard("EventDataSvc", EventSlots=evtslots) +slimeventloopmgr = HiveSlimEventLoopMgr(SchedulerName="AvalancheSchedulerSvc", OutputLevel=DEBUG) +scheduler = AvalancheSchedulerSvc(ThreadPoolSize=threads, OutputLevel=WARNING) + +from Configurables import ApplicationMgr +ApplicationMgr( TopAlg = [seq], + EvtSel = 'NONE', + EvtMax = 10, + ExtSvc = [whiteboard], + EventLoop=slimeventloopmgr, + MessageSvcType="InertMessageSvc" + ) +``` + +To only run events in parallel, with no parallelism between the algorithms within each event, the cardinality of the algorithms must be set: + +- Given a list of algorithms, set the cardinality of all to be 1 +- Create a `GaudiSequencer` with all the algorithms as `Members` +- Set the `GaudiSequencer` sequential property to true +- Pass the created `GaudiSequencer` to the Application Manager in the `TopAlg`: `TopAlg = [seq]` + +```python +from Configurables import MarlinProcessorWrapper +from Configurables import (GaudiSequencer) + +cardinality = 1 + +alg1 = MarlinProcessorWrapper("alg1") +alg2 = MarlinProcessorWrapper("alg2") +alg3 = MarlinProcessorWrapper("alg3") +alg4 = MarlinProcessorWrapper("alg4") + +algList = [] + +algList.append(alg1) +algList.append(alg2) +algList.append(alg3) +algList.append(alg4) + +for algo in algList: + algo.Cardinality = cardinality + algo.OutputLevel = DEBUG + +seq = GaudiSequencer( + "createViewSeq", + Members=algList, + Sequential=True, + OutputLevel=VERBOSE) + +from Configurables import ApplicationMgr +ApplicationMgr( TopAlg = [seq], + EvtSel = 'NONE', + EvtMax = 10, + ExtSvc = [whiteboard], + EventLoop=slimeventloopmgr, + MessageSvcType="InertMessageSvc" + ) +``` + +## Running example + +A multi-threaded CLIC Reconstruction can be run in multi-threaded mode, for LCIO input and output. +After successful compilation, from the build location: + +```sh +# Check available tests +ctest -N + +# Run multi-threaded clicReconstruction test +ctest -R clicRec_lcio_mt +``` diff --git a/_sources/tutorials/k4simdelphes/doc/starterkit/k4SimDelphes/Readme.md.txt b/_sources/tutorials/k4simdelphes/doc/starterkit/k4SimDelphes/Readme.md.txt new file mode 100644 index 0000000..2e5c8e8 --- /dev/null +++ b/_sources/tutorials/k4simdelphes/doc/starterkit/k4SimDelphes/Readme.md.txt @@ -0,0 +1,64 @@ +# Running Delphes fast simulation with EDM4hep output + +The [`k4SimDelphes`](https://github.com/key4hep/k4SimDelphes) package provides utilities to convert output from the [Delphes fast simulation framework](https://cp3.irmp.ucl.ac.be/projects/delphes) into the [EDM4hep](https://github.com/key4hep/EDM4hep) format. It offers standalone executables, similar to the ones Delphes offers, as well as integration into the Key4hep framework. Here we will provide examples of how to run the standalone executables as well as the usage in the Key4hep framework. + +## Setup and prerequisites +The following examples assume that you have access to an existing installation of the Key4hep software stack. The easiest way to achieve this to use an existing installation on `cvmfs` +```bash +source /cvmfs/sw.hsf.org/key4hep/setup.sh +``` +Alternatively it is possible to build the complete stack via `spack`, see the [instructions](https://key4hep.github.io/key4hep-doc/spack-build-instructions-for-librarians/README.html) for how to do this. + +In order to run the examples below it is necessary to get some inputs that are used for the generation of the physics events. In the following we will be using pythia generator files that are also used by the FCCee. In particular we will be generating the following process + +e+e- -> ZH -> mu+mu- X (i.e. the Z decays into a pair of oppositely charged muons and the H to anything) + +To start we download the pythia cards for this process +```bash +wget https://raw.githubusercontent.com/HEP-FCC/FCC-config/spring2021/FCCee/Generator/Pythia8/p8_noBES_ee_ZH_ecm240.cmd +``` + +All the other resources are available from within a Key4hep release. + +## Standalone executables + +For this example we will be using the `DelphesPythia8_EDM4HEP` standalone executable, which is essentially the same as the `DelphesPythia8` executable that is provided by Delphes. Contrary to the Delphes executable the one provided by k4SimDelphes will produce output in the EDM4hep format. + +To run the generation and fast detector simulation in one go run +```bash +DelphesPythia8_EDM4HEP ${DELPHES_DIR}/cards/delphes_card_IDEA.tcl \ + ${K4SIMDELPHES}/edm4hep_output_config.tcl \ + p8_noBES_ee_ZH_ecm240.cmd \ + delphes_events_edm4hep.root +``` + +The arguments in this case are (in the order they are passed) +- The delphes card that describes the (parameterized) detector. In this case we use one that is shipped with the Delphes installation +- The output configuration for the Delphes to EDM4hep converter. Here we use the defaults that are provided by `k4SimDelphes`, which should cover the majority of use cases. It is however possible to [configure these to your needs](https://github.com/key4hep/k4SimDelphes/blob/main/doc/output_config.md) if necessary. +- The pythia card that describes the physics process [as described above](#setup-and-prerequisites) +- The name of the output file that will be created and that will contain the generated and simulated events in EDM4hep format + +### Other standalone executables +k4SimDelphes provides other standalone executables that can read different inputs. They offer the same functionality as the ones available from Delphes: +- `DelphesSTDHEP_EDM4HEP` - for reading STDHEP inputs +- `DelphesROOT_EDM4HEP` - for reading ROOT files in the Delphes format +- `DelphesPythia8_EDM4HEP` - for running Pythia8 as part of the simulation + +For all executables it is possible to at least get the order of the input arguments via `--help` or `-h`, e.g. +```bash +DelphesSTDHEP_EDM4HEP --help +``` +will print +```console +Usage: DelphesHepMC config_file output_config_file output_file [input_file(s)] +config_file - configuration file in Tcl format, +output_config_file - configuration file steering the content of the edm4hep output in Tcl format, +output_file - output file in ROOT format, +input_file(s) - input file(s) in STDHEP format, +with no input_file, or when input_file is -, read standard input. + +``` + +## Usage in the Key4hep framework + +- [ ] TODO diff --git a/_sources/tutorials/key4hep-tutorials/gaudi_ild_reco/README.md.txt b/_sources/tutorials/key4hep-tutorials/gaudi_ild_reco/README.md.txt new file mode 100644 index 0000000..2d575f5 --- /dev/null +++ b/_sources/tutorials/key4hep-tutorials/gaudi_ild_reco/README.md.txt @@ -0,0 +1,347 @@ +# Runing ILD simulation and reconstruction + +This exercise aims at showing you how to run full simulation as well as +reconstruction using `ddsim` and the Gaudi based Key4hep framework respectively. +You will +- Run `ddsim` to produce SIM level input files for the reconstruction in EDM4hep + format +- Learn how to use the tools provided by + [`k4MarlinWrapper`](https://github.com/key4hep/k4MarlinWrapper) that allows to + run workflows that were originally developed for the `Marlin` in the Gaudi + based framework of Key4hep. This includes + - Converting a Marlin steering file to a Gaudi options file, + - Adapting the options file to be able to read and write EDM4hep output + - Running this Gaudi options file via `k4run` + +In this particular case we are using the ILD configuration to do this but the +conceptual steps are very similar for other detector concepts that used Marlin +originally. + +## Setup +If you haven't done it yet, source a Key4hep software environment via + +```bash +source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh +``` + +For the remainder of the tutorial we will assume that you are working within the +`key4hep_tut_ild_reco` directory, i.e. + +```bash +mkdir key4hep_tut_ild_reco +cd key4hep_tut_ild_reco +``` + +However, this is a minor detail and you can choose whatever directory you want. +We do suggest a clean directory though. + +Next we will be using the the standard simulation and reconstruction +configuration for ILD which we can get via + +```bash +git clone https://github.com/iLCSoft/ILDConfig +``` + +For the rest of this tutorial we will be working in the +`ILDConfig/StandardConfig/production` folder + +```bash +cd ILDConfig/StandardConfig/production +``` + +## Running the simulation + +We will use the output file of [*the whizard +tutorial*](https://github.com/key4hep/key4hep-tutorials/blob/main/whizard_gen/README.md) +as generator level input. In case you have not done that exercise you can get +one via + +```bash +wget https://raw.githubusercontent.com/key4hep/key4hep-tutorials/main/gaudi_ild_reco/input_files/zh_mumu.slcio +``` + +Simulating a few events with `ddsim` is straight forward. `ddsim` can produce +EDM4hep and LCIO format output files, and it decides which format to used based +on the name of the output file: +- Names ending on `.slcio` will result in LCIO output files +- Names ending in `edm4hep.root` will result in in EDM4hep output files + +In the course of this exercise we will only need the EDM4hep format, we simply +provide both options for convenience here. + +::::{tab-set} +:::{tab-item} EDM4hep +:sync: edm4hep + +To run the simulation with EDM4hep output you can use the following command +```bash +ddsim --compactFile $lcgeo_DIR/ILD/compact/ILD_l5_v02/ILD_l5_v02.xml \ + --steeringFile ddsim_steer.py \ + --inputFiles zh_mumu.slcio \ + --outputFile zh_mumu_SIM.edm4hep.root +``` + +::: +:::{tab-item} LCIO +:sync: lcio + +To run the simulation with LCIO output you can use the following command +``` bash +ddsim --compactFile $lcgeo_DIR/ILD/compact/ILD_l5_v02/ILD_l5_v02.xml \ + --steeringFile ddsim_steer.py \ + --inputFiles zh_mumu.slcio \ + --outputFile zh_mumu_SIM.slcio +``` + +::: +:::: + +Depending on the machine where you are running this, this will take up to a few +minutes to complete. You can start this and read on in the meantime. + +## Reconstruction + +To run the reconstruction we will use the Gaudi based Key4hep framework. Note +that we can run the reconstruction just the same as within iLCSoft via `Marlin`. +However, we will not show that in this tutorial. The first thing that we have to +do is to create a so called *options file* for Gaudi. + +### Creating a Gaudi options file + +The bulk of the work for creating such an options file from an existing Marlin +steering file in XML format can be done with the +`convertMarlinSteeringToGaudi.py` converter script. We will start by converting +the `MarlinStdReco.xml` steering file and then do some minor adjustments to the +converted options file. The main thing to consider for the ILD configuration is +that `MarlinStdReco.xml` makes use of several include statements to pull in more +configuration. Hence, we first have to create a Marlin steering file with these +includes resolved. We also have to provide a `DetectorModel` constant here, +since some of the includes depend on this. + +```bash +Marlin -n MarlinStdReco.xml --constant.DetectorModel=ILD_l5_o1_v02 +``` + +You should now have a `MarlinStdRecoParsed.xml` file. This is the one that we +will convert using the converter script via + +```bash +convertMarlinSteeringToGaudi.py MarlinStdRecoParsed.xml MarlinStdReco.py +``` + +Since some parts of the Marlin steering file conversion can not be handled +automatically we have to make a few adjustments to `MarlinStdReco.py`. We +recommend to simply edit the file directly, but you can also use the `sed` +commands below to do these adjustments. The adjustments are: +- Give the `lcgeo_DIR` constant (first entry in the `CONSTANTS` dict) a + meaningful value. The easiest way to do this is to simply get the value of the + corresponding environment variable via `os.environ["lcgeo_DIR"]` (don't forget + to `import os` at the top) +- Exclude the `BgOverlayWW`, `BgOverlayBB`, `BgOverlayBW` and `BgOverlayWB` + algorithms from being run, by simply commenting out the lines where these are + appended to the `algList` (this list is populated at almost the end of the + file). + +:::{dropdown} `sed` commands for adjustments + +``` bash +sed -i '1s/^/import os\n/' MarlinStdReco.py +sed -i 's/\( *.lcgeo_DIR.:\).*/\1 os.environ["lcgeo_DIR"],'/ MarlinStdReco.py +sed -i 's/algList.append(BgOverlayWW)/# algList.append(BgOverlayWW)/' MarlinStdReco.py +sed -i 's/algList.append(BgOverlayWB)/# algList.append(BgOverlayWB)/' MarlinStdReco.py +sed -i 's/algList.append(BgOverlayBW)/# algList.append(BgOverlayBW)/' MarlinStdReco.py +sed -i 's/algList.append(BgOverlayBB)/# algList.append(BgOverlayBB)/' MarlinStdReco.py +sed -i 's/algList.append(PairBgOverlay)/# algList.append(PairBgOverlay)/' MarlinStdReco.py +``` + +::: + +With the state the options file is in now, you would be able to run it with LCIO +input. + +:::{dropdown} Running the reconstruction with LCIO +To run the reconstruction with LCIO inputs and outputs we now simply need to +pass in the input file that we have created at the simulation step + +```bash +k4run MarlinStdReco.py --LcioEvent.Files=zh_mumu_SIM.slcio +``` + +This should take somewhere between 20 seconds up to roughly a minute to run. If +you haven't changed anything else you should now have a few output files: + +```bash +ls StandardReco_*.* +``` + +should now show a `REC` and `DST` file, as well as a `PfoAnalysis` and an `AIDA` +file. You can change the names of these files by adjusting the `OutputBaseName`, +resp. the corresponding filename constants values in `CONSTANTS`. + +::: + +### Adapting the options file for EDM4hep + +It is necessary to adapt the Gaudi options file a bit further: +- Replace the `LcioEvent` algorithm with the `PodioInput` algorithm + - Make sure to replace the `Files` option with the `collections` option and to + populate this option with the list of collections you want to read (see + below) +- Replace the `EventDataSvc` with the `k4DataSvc` (remember to instantiate it + with `"EventDataSvc"` as name) +- Add a `PodioOutput` algorithm to write EDM4hep output (don't forget to add it + to the `algList` at the very end) + - (For the sake of this exercise) configure this to only write the + `MCParticlesSkimmed`, `PandoraPFOs` and the `RecoMCTruthLink` collections +- Attach the necessary in-memory on-the-fly converters between EDM4hep and LCIO + (and vice versa) + - For the conversion of the EDM4hep inputs to LCIO instantiate a + `EDM4hep2LcioTool` and attach it to the first wrapped processor that is run + (`MyAIDAProcessor`). + - For the conversion of the LCIO outputs to EDM4hep instantiate a + `Lcio2EDM4hepTool` and attach it to the last wrapped processor that is run + before the `PodioOutput` algorithm that you just added (`MyPfoAnalysis`) + +**For all of these steps make sure that you `import` all the necessary tools and +algorithms from `Configurables`!** + +The top of your file should now look something like this + +```python +from Configurables import ( + PodioInput, PodioOutput, k4DataSvc, MarlinProcessorWrapper, + EDM4hep2LcioTool, Lcio2EDM4hepTool + ) +from k4MarlinWrapper.parseConstants import * +algList = [] +evtsvc = k4DataSvc("EventDataSvc") +``` + +while the configuration for the input reader and the `EDM4hep2LcioTool` should +look like this + +```python +read = PodioInput() +read.OutputLevel = INFO +read.collections = [ + # ... list of collection names +] +algList.append(read) + +edm4hep2LcioConv = EDM4hep2LcioTool() +edm4hep2LcioConv.collNameMapping = { + "MCParticles": "MCParticle" +} + +# ... Unchanged config of MyAIDAProcessor + +MyAIDAProcessor.EDM4hep2LcioTool = edm4hep2LcioConv +``` + +:::{dropdown} list of collection names + +The list of collections that is populated by standard configuration of ILD for +simulation looks like this. You can simply copy this into the options file + +```python +read.collections = [ + "BeamCalCollection", + "BeamCalCollectionContributions", + "ECalBarrelScHitsEven", + "ECalBarrelScHitsEvenContributions", + "ECalBarrelScHitsOdd", + "ECalBarrelScHitsOddContributions", + "ECalBarrelSiHitsEven", + "ECalBarrelSiHitsEvenContributions", + "ECalBarrelSiHitsOdd", + "ECalBarrelSiHitsOddContributions", + "EcalEndcapRingCollection", + "EcalEndcapRingCollectionContributions", + "ECalEndcapScHitsEven", + "ECalEndcapScHitsEvenContributions", + "ECalEndcapScHitsOdd", + "ECalEndcapScHitsOddContributions", + "ECalEndcapSiHitsEven", + "ECalEndcapSiHitsEvenContributions", + "ECalEndcapSiHitsOdd", + "ECalEndcapSiHitsOddContributions", + "EventHeader", + "FTDCollection", + "HcalBarrelRegCollection", + "HcalBarrelRegCollectionContributions", + "HCalBarrelRPCHits", + "HCalBarrelRPCHitsContributions", + "HCalECRingRPCHits", + "HCalECRingRPCHitsContributions", + "HcalEndcapRingCollection", + "HcalEndcapRingCollectionContributions", + "HCalEndcapRPCHits", + "HCalEndcapRPCHitsContributions", + "HcalEndcapsCollection", + "HcalEndcapsCollectionContributions", + "LHCalCollection", + "LHCalCollectionContributions", + "LumiCalCollection", + "LumiCalCollectionContributions", + "MCParticles", + "SETCollection", + "SITCollection", + "TPCCollection", + "TPCLowPtCollection", + "TPCSpacePointCollection", + "VXDCollection", + "YokeBarrelCollection", + "YokeBarrelCollectionContributions", + "YokeEndcapsCollection", + "YokeEndcapsCollectionContributions", +] +``` + +::: + +Finally, the `PodioOutput` algorithm and the `Lcio2EDM4hepTool` can be +configuration should look something like this + +```python +# ... MyPfoAnalysis configuration unchanged + +lcio2edm4hepConv = Lcio2EDM4hepTool() +lcio2edm4hepConv.collNameMapping = { + "MCParticle": "MCParticles" +} +MyPfoAnalysis.Lcio2EDM4hepTool = lcio2edm4hepConv + +edm4hepOutput = PodioOutput() +edm4hepOutput.filename = "zh_mumu_reco.edm4hep.root" +edm4hepOutput.outputCommands = [ + "drop *", + "keep MCParticlesSkimmed", + "keep PandoraPFOs", + "keep RecoMCTruthLink", +] + +# ... the complete algList +algList.append(edm4hepOutput) + +# ... ApplicationMgr config +``` + +### Running the reconstruction with `k4run` + +After all these adaptions it is now possible to run the full reconstruction +chain on the previously simulated input with `k4run` + +```bash +k4run MarlinStdReco.py --num-events=3 --EventDataSvc.input=zh_mumu_SIM.edm4hep.root +``` + +Here we are again using the command line to specify the input file, we could +have just as well used the `input` option of the `evtsvc` in the options file. +Note also that we explicitly pass in the number of events, this is a workaround +for [this issue](https://github.com/key4hep/k4MarlinWrapper/issues/94). + +You should now have a `zh_mumu_reco.edm4hep.root` file that contains the +complete events in all their glory. For a more practical output you can tweak +the `edm4hepOutput.outputCommands` option in order to keep only "interesting" +collections. Also note that the REC and DST LCIO output files are still +produced. Can you reproduce these data tiers for EDM4hep? diff --git a/_sphinx_design_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css b/_sphinx_design_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css new file mode 100644 index 0000000..eb19f69 --- /dev/null +++ b/_sphinx_design_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css @@ -0,0 +1 @@ +.sd-bg-primary{background-color:var(--sd-color-primary) !important}.sd-bg-text-primary{color:var(--sd-color-primary-text) !important}button.sd-bg-primary:focus,button.sd-bg-primary:hover{background-color:var(--sd-color-primary-highlight) !important}a.sd-bg-primary:focus,a.sd-bg-primary:hover{background-color:var(--sd-color-primary-highlight) !important}.sd-bg-secondary{background-color:var(--sd-color-secondary) !important}.sd-bg-text-secondary{color:var(--sd-color-secondary-text) !important}button.sd-bg-secondary:focus,button.sd-bg-secondary:hover{background-color:var(--sd-color-secondary-highlight) !important}a.sd-bg-secondary:focus,a.sd-bg-secondary:hover{background-color:var(--sd-color-secondary-highlight) !important}.sd-bg-success{background-color:var(--sd-color-success) !important}.sd-bg-text-success{color:var(--sd-color-success-text) !important}button.sd-bg-success:focus,button.sd-bg-success:hover{background-color:var(--sd-color-success-highlight) !important}a.sd-bg-success:focus,a.sd-bg-success:hover{background-color:var(--sd-color-success-highlight) !important}.sd-bg-info{background-color:var(--sd-color-info) !important}.sd-bg-text-info{color:var(--sd-color-info-text) !important}button.sd-bg-info:focus,button.sd-bg-info:hover{background-color:var(--sd-color-info-highlight) !important}a.sd-bg-info:focus,a.sd-bg-info:hover{background-color:var(--sd-color-info-highlight) !important}.sd-bg-warning{background-color:var(--sd-color-warning) !important}.sd-bg-text-warning{color:var(--sd-color-warning-text) !important}button.sd-bg-warning:focus,button.sd-bg-warning:hover{background-color:var(--sd-color-warning-highlight) !important}a.sd-bg-warning:focus,a.sd-bg-warning:hover{background-color:var(--sd-color-warning-highlight) !important}.sd-bg-danger{background-color:var(--sd-color-danger) !important}.sd-bg-text-danger{color:var(--sd-color-danger-text) !important}button.sd-bg-danger:focus,button.sd-bg-danger:hover{background-color:var(--sd-color-danger-highlight) !important}a.sd-bg-danger:focus,a.sd-bg-danger:hover{background-color:var(--sd-color-danger-highlight) !important}.sd-bg-light{background-color:var(--sd-color-light) !important}.sd-bg-text-light{color:var(--sd-color-light-text) !important}button.sd-bg-light:focus,button.sd-bg-light:hover{background-color:var(--sd-color-light-highlight) !important}a.sd-bg-light:focus,a.sd-bg-light:hover{background-color:var(--sd-color-light-highlight) !important}.sd-bg-muted{background-color:var(--sd-color-muted) !important}.sd-bg-text-muted{color:var(--sd-color-muted-text) !important}button.sd-bg-muted:focus,button.sd-bg-muted:hover{background-color:var(--sd-color-muted-highlight) !important}a.sd-bg-muted:focus,a.sd-bg-muted:hover{background-color:var(--sd-color-muted-highlight) !important}.sd-bg-dark{background-color:var(--sd-color-dark) !important}.sd-bg-text-dark{color:var(--sd-color-dark-text) !important}button.sd-bg-dark:focus,button.sd-bg-dark:hover{background-color:var(--sd-color-dark-highlight) !important}a.sd-bg-dark:focus,a.sd-bg-dark:hover{background-color:var(--sd-color-dark-highlight) !important}.sd-bg-black{background-color:var(--sd-color-black) !important}.sd-bg-text-black{color:var(--sd-color-black-text) !important}button.sd-bg-black:focus,button.sd-bg-black:hover{background-color:var(--sd-color-black-highlight) !important}a.sd-bg-black:focus,a.sd-bg-black:hover{background-color:var(--sd-color-black-highlight) !important}.sd-bg-white{background-color:var(--sd-color-white) !important}.sd-bg-text-white{color:var(--sd-color-white-text) !important}button.sd-bg-white:focus,button.sd-bg-white:hover{background-color:var(--sd-color-white-highlight) !important}a.sd-bg-white:focus,a.sd-bg-white:hover{background-color:var(--sd-color-white-highlight) !important}.sd-text-primary,.sd-text-primary>p{color:var(--sd-color-primary) !important}a.sd-text-primary:focus,a.sd-text-primary:hover{color:var(--sd-color-primary-highlight) !important}.sd-text-secondary,.sd-text-secondary>p{color:var(--sd-color-secondary) !important}a.sd-text-secondary:focus,a.sd-text-secondary:hover{color:var(--sd-color-secondary-highlight) !important}.sd-text-success,.sd-text-success>p{color:var(--sd-color-success) !important}a.sd-text-success:focus,a.sd-text-success:hover{color:var(--sd-color-success-highlight) !important}.sd-text-info,.sd-text-info>p{color:var(--sd-color-info) !important}a.sd-text-info:focus,a.sd-text-info:hover{color:var(--sd-color-info-highlight) !important}.sd-text-warning,.sd-text-warning>p{color:var(--sd-color-warning) !important}a.sd-text-warning:focus,a.sd-text-warning:hover{color:var(--sd-color-warning-highlight) !important}.sd-text-danger,.sd-text-danger>p{color:var(--sd-color-danger) !important}a.sd-text-danger:focus,a.sd-text-danger:hover{color:var(--sd-color-danger-highlight) !important}.sd-text-light,.sd-text-light>p{color:var(--sd-color-light) !important}a.sd-text-light:focus,a.sd-text-light:hover{color:var(--sd-color-light-highlight) !important}.sd-text-muted,.sd-text-muted>p{color:var(--sd-color-muted) !important}a.sd-text-muted:focus,a.sd-text-muted:hover{color:var(--sd-color-muted-highlight) !important}.sd-text-dark,.sd-text-dark>p{color:var(--sd-color-dark) !important}a.sd-text-dark:focus,a.sd-text-dark:hover{color:var(--sd-color-dark-highlight) !important}.sd-text-black,.sd-text-black>p{color:var(--sd-color-black) !important}a.sd-text-black:focus,a.sd-text-black:hover{color:var(--sd-color-black-highlight) !important}.sd-text-white,.sd-text-white>p{color:var(--sd-color-white) !important}a.sd-text-white:focus,a.sd-text-white:hover{color:var(--sd-color-white-highlight) !important}.sd-outline-primary{border-color:var(--sd-color-primary) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-primary:focus,a.sd-outline-primary:hover{border-color:var(--sd-color-primary-highlight) !important}.sd-outline-secondary{border-color:var(--sd-color-secondary) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-secondary:focus,a.sd-outline-secondary:hover{border-color:var(--sd-color-secondary-highlight) !important}.sd-outline-success{border-color:var(--sd-color-success) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-success:focus,a.sd-outline-success:hover{border-color:var(--sd-color-success-highlight) !important}.sd-outline-info{border-color:var(--sd-color-info) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-info:focus,a.sd-outline-info:hover{border-color:var(--sd-color-info-highlight) !important}.sd-outline-warning{border-color:var(--sd-color-warning) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-warning:focus,a.sd-outline-warning:hover{border-color:var(--sd-color-warning-highlight) !important}.sd-outline-danger{border-color:var(--sd-color-danger) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-danger:focus,a.sd-outline-danger:hover{border-color:var(--sd-color-danger-highlight) !important}.sd-outline-light{border-color:var(--sd-color-light) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-light:focus,a.sd-outline-light:hover{border-color:var(--sd-color-light-highlight) !important}.sd-outline-muted{border-color:var(--sd-color-muted) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-muted:focus,a.sd-outline-muted:hover{border-color:var(--sd-color-muted-highlight) !important}.sd-outline-dark{border-color:var(--sd-color-dark) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-dark:focus,a.sd-outline-dark:hover{border-color:var(--sd-color-dark-highlight) !important}.sd-outline-black{border-color:var(--sd-color-black) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-black:focus,a.sd-outline-black:hover{border-color:var(--sd-color-black-highlight) !important}.sd-outline-white{border-color:var(--sd-color-white) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-white:focus,a.sd-outline-white:hover{border-color:var(--sd-color-white-highlight) !important}.sd-bg-transparent{background-color:transparent !important}.sd-outline-transparent{border-color:transparent !important}.sd-text-transparent{color:transparent !important}.sd-p-0{padding:0 !important}.sd-pt-0,.sd-py-0{padding-top:0 !important}.sd-pr-0,.sd-px-0{padding-right:0 !important}.sd-pb-0,.sd-py-0{padding-bottom:0 !important}.sd-pl-0,.sd-px-0{padding-left:0 !important}.sd-p-1{padding:.25rem !important}.sd-pt-1,.sd-py-1{padding-top:.25rem !important}.sd-pr-1,.sd-px-1{padding-right:.25rem !important}.sd-pb-1,.sd-py-1{padding-bottom:.25rem !important}.sd-pl-1,.sd-px-1{padding-left:.25rem !important}.sd-p-2{padding:.5rem !important}.sd-pt-2,.sd-py-2{padding-top:.5rem !important}.sd-pr-2,.sd-px-2{padding-right:.5rem !important}.sd-pb-2,.sd-py-2{padding-bottom:.5rem !important}.sd-pl-2,.sd-px-2{padding-left:.5rem !important}.sd-p-3{padding:1rem !important}.sd-pt-3,.sd-py-3{padding-top:1rem !important}.sd-pr-3,.sd-px-3{padding-right:1rem !important}.sd-pb-3,.sd-py-3{padding-bottom:1rem !important}.sd-pl-3,.sd-px-3{padding-left:1rem !important}.sd-p-4{padding:1.5rem !important}.sd-pt-4,.sd-py-4{padding-top:1.5rem !important}.sd-pr-4,.sd-px-4{padding-right:1.5rem !important}.sd-pb-4,.sd-py-4{padding-bottom:1.5rem !important}.sd-pl-4,.sd-px-4{padding-left:1.5rem !important}.sd-p-5{padding:3rem !important}.sd-pt-5,.sd-py-5{padding-top:3rem !important}.sd-pr-5,.sd-px-5{padding-right:3rem !important}.sd-pb-5,.sd-py-5{padding-bottom:3rem !important}.sd-pl-5,.sd-px-5{padding-left:3rem !important}.sd-m-auto{margin:auto !important}.sd-mt-auto,.sd-my-auto{margin-top:auto !important}.sd-mr-auto,.sd-mx-auto{margin-right:auto !important}.sd-mb-auto,.sd-my-auto{margin-bottom:auto !important}.sd-ml-auto,.sd-mx-auto{margin-left:auto !important}.sd-m-0{margin:0 !important}.sd-mt-0,.sd-my-0{margin-top:0 !important}.sd-mr-0,.sd-mx-0{margin-right:0 !important}.sd-mb-0,.sd-my-0{margin-bottom:0 !important}.sd-ml-0,.sd-mx-0{margin-left:0 !important}.sd-m-1{margin:.25rem !important}.sd-mt-1,.sd-my-1{margin-top:.25rem !important}.sd-mr-1,.sd-mx-1{margin-right:.25rem !important}.sd-mb-1,.sd-my-1{margin-bottom:.25rem !important}.sd-ml-1,.sd-mx-1{margin-left:.25rem !important}.sd-m-2{margin:.5rem !important}.sd-mt-2,.sd-my-2{margin-top:.5rem !important}.sd-mr-2,.sd-mx-2{margin-right:.5rem !important}.sd-mb-2,.sd-my-2{margin-bottom:.5rem !important}.sd-ml-2,.sd-mx-2{margin-left:.5rem !important}.sd-m-3{margin:1rem !important}.sd-mt-3,.sd-my-3{margin-top:1rem !important}.sd-mr-3,.sd-mx-3{margin-right:1rem !important}.sd-mb-3,.sd-my-3{margin-bottom:1rem !important}.sd-ml-3,.sd-mx-3{margin-left:1rem !important}.sd-m-4{margin:1.5rem !important}.sd-mt-4,.sd-my-4{margin-top:1.5rem !important}.sd-mr-4,.sd-mx-4{margin-right:1.5rem !important}.sd-mb-4,.sd-my-4{margin-bottom:1.5rem !important}.sd-ml-4,.sd-mx-4{margin-left:1.5rem !important}.sd-m-5{margin:3rem !important}.sd-mt-5,.sd-my-5{margin-top:3rem !important}.sd-mr-5,.sd-mx-5{margin-right:3rem !important}.sd-mb-5,.sd-my-5{margin-bottom:3rem !important}.sd-ml-5,.sd-mx-5{margin-left:3rem !important}.sd-w-25{width:25% !important}.sd-w-50{width:50% !important}.sd-w-75{width:75% !important}.sd-w-100{width:100% !important}.sd-w-auto{width:auto !important}.sd-h-25{height:25% !important}.sd-h-50{height:50% !important}.sd-h-75{height:75% !important}.sd-h-100{height:100% !important}.sd-h-auto{height:auto !important}.sd-d-none{display:none !important}.sd-d-inline{display:inline !important}.sd-d-inline-block{display:inline-block !important}.sd-d-block{display:block !important}.sd-d-grid{display:grid !important}.sd-d-flex-row{display:-ms-flexbox !important;display:flex !important;flex-direction:row !important}.sd-d-flex-column{display:-ms-flexbox !important;display:flex !important;flex-direction:column !important}.sd-d-inline-flex{display:-ms-inline-flexbox !important;display:inline-flex !important}@media(min-width: 576px){.sd-d-sm-none{display:none !important}.sd-d-sm-inline{display:inline !important}.sd-d-sm-inline-block{display:inline-block !important}.sd-d-sm-block{display:block !important}.sd-d-sm-grid{display:grid !important}.sd-d-sm-flex{display:-ms-flexbox !important;display:flex !important}.sd-d-sm-inline-flex{display:-ms-inline-flexbox !important;display:inline-flex !important}}@media(min-width: 768px){.sd-d-md-none{display:none !important}.sd-d-md-inline{display:inline !important}.sd-d-md-inline-block{display:inline-block !important}.sd-d-md-block{display:block !important}.sd-d-md-grid{display:grid !important}.sd-d-md-flex{display:-ms-flexbox !important;display:flex !important}.sd-d-md-inline-flex{display:-ms-inline-flexbox !important;display:inline-flex !important}}@media(min-width: 992px){.sd-d-lg-none{display:none !important}.sd-d-lg-inline{display:inline !important}.sd-d-lg-inline-block{display:inline-block !important}.sd-d-lg-block{display:block !important}.sd-d-lg-grid{display:grid !important}.sd-d-lg-flex{display:-ms-flexbox !important;display:flex !important}.sd-d-lg-inline-flex{display:-ms-inline-flexbox !important;display:inline-flex !important}}@media(min-width: 1200px){.sd-d-xl-none{display:none !important}.sd-d-xl-inline{display:inline !important}.sd-d-xl-inline-block{display:inline-block !important}.sd-d-xl-block{display:block !important}.sd-d-xl-grid{display:grid !important}.sd-d-xl-flex{display:-ms-flexbox !important;display:flex !important}.sd-d-xl-inline-flex{display:-ms-inline-flexbox !important;display:inline-flex !important}}.sd-align-major-start{justify-content:flex-start !important}.sd-align-major-end{justify-content:flex-end !important}.sd-align-major-center{justify-content:center !important}.sd-align-major-justify{justify-content:space-between !important}.sd-align-major-spaced{justify-content:space-evenly !important}.sd-align-minor-start{align-items:flex-start !important}.sd-align-minor-end{align-items:flex-end !important}.sd-align-minor-center{align-items:center !important}.sd-align-minor-stretch{align-items:stretch !important}.sd-text-justify{text-align:justify !important}.sd-text-left{text-align:left !important}.sd-text-right{text-align:right !important}.sd-text-center{text-align:center !important}.sd-font-weight-light{font-weight:300 !important}.sd-font-weight-lighter{font-weight:lighter !important}.sd-font-weight-normal{font-weight:400 !important}.sd-font-weight-bold{font-weight:700 !important}.sd-font-weight-bolder{font-weight:bolder !important}.sd-font-italic{font-style:italic !important}.sd-text-decoration-none{text-decoration:none !important}.sd-text-lowercase{text-transform:lowercase !important}.sd-text-uppercase{text-transform:uppercase !important}.sd-text-capitalize{text-transform:capitalize !important}.sd-text-wrap{white-space:normal !important}.sd-text-nowrap{white-space:nowrap !important}.sd-text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sd-fs-1,.sd-fs-1>p{font-size:calc(1.375rem + 1.5vw) !important;line-height:unset !important}.sd-fs-2,.sd-fs-2>p{font-size:calc(1.325rem + 0.9vw) !important;line-height:unset !important}.sd-fs-3,.sd-fs-3>p{font-size:calc(1.3rem + 0.6vw) !important;line-height:unset !important}.sd-fs-4,.sd-fs-4>p{font-size:calc(1.275rem + 0.3vw) !important;line-height:unset !important}.sd-fs-5,.sd-fs-5>p{font-size:1.25rem !important;line-height:unset !important}.sd-fs-6,.sd-fs-6>p{font-size:1rem !important;line-height:unset !important}.sd-border-0{border:0 solid !important}.sd-border-top-0{border-top:0 solid !important}.sd-border-bottom-0{border-bottom:0 solid !important}.sd-border-right-0{border-right:0 solid !important}.sd-border-left-0{border-left:0 solid !important}.sd-border-1{border:1px solid !important}.sd-border-top-1{border-top:1px solid !important}.sd-border-bottom-1{border-bottom:1px solid !important}.sd-border-right-1{border-right:1px solid !important}.sd-border-left-1{border-left:1px solid !important}.sd-border-2{border:2px solid !important}.sd-border-top-2{border-top:2px solid !important}.sd-border-bottom-2{border-bottom:2px solid !important}.sd-border-right-2{border-right:2px solid !important}.sd-border-left-2{border-left:2px solid !important}.sd-border-3{border:3px solid !important}.sd-border-top-3{border-top:3px solid !important}.sd-border-bottom-3{border-bottom:3px solid !important}.sd-border-right-3{border-right:3px solid !important}.sd-border-left-3{border-left:3px solid !important}.sd-border-4{border:4px solid !important}.sd-border-top-4{border-top:4px solid !important}.sd-border-bottom-4{border-bottom:4px solid !important}.sd-border-right-4{border-right:4px solid !important}.sd-border-left-4{border-left:4px solid !important}.sd-border-5{border:5px solid !important}.sd-border-top-5{border-top:5px solid !important}.sd-border-bottom-5{border-bottom:5px solid !important}.sd-border-right-5{border-right:5px solid !important}.sd-border-left-5{border-left:5px solid !important}.sd-rounded-0{border-radius:0 !important}.sd-rounded-1{border-radius:.2rem !important}.sd-rounded-2{border-radius:.3rem !important}.sd-rounded-3{border-radius:.5rem !important}.sd-rounded-pill{border-radius:50rem !important}.sd-rounded-circle{border-radius:50% !important}.shadow-none{box-shadow:none !important}.sd-shadow-sm{box-shadow:0 .125rem .25rem var(--sd-color-shadow) !important}.sd-shadow-md{box-shadow:0 .5rem 1rem var(--sd-color-shadow) !important}.sd-shadow-lg{box-shadow:0 1rem 3rem var(--sd-color-shadow) !important}@keyframes sd-slide-from-left{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}@keyframes sd-slide-from-right{0%{transform:translateX(200%)}100%{transform:translateX(0)}}@keyframes sd-grow100{0%{transform:scale(0);opacity:.5}100%{transform:scale(1);opacity:1}}@keyframes sd-grow50{0%{transform:scale(0.5);opacity:.5}100%{transform:scale(1);opacity:1}}@keyframes sd-grow50-rot20{0%{transform:scale(0.5) rotateZ(-20deg);opacity:.5}75%{transform:scale(1) rotateZ(5deg);opacity:1}95%{transform:scale(1) rotateZ(-1deg);opacity:1}100%{transform:scale(1) rotateZ(0);opacity:1}}.sd-animate-slide-from-left{animation:1s ease-out 0s 1 normal none running sd-slide-from-left}.sd-animate-slide-from-right{animation:1s ease-out 0s 1 normal none running sd-slide-from-right}.sd-animate-grow100{animation:1s ease-out 0s 1 normal none running sd-grow100}.sd-animate-grow50{animation:1s ease-out 0s 1 normal none running sd-grow50}.sd-animate-grow50-rot20{animation:1s ease-out 0s 1 normal none running sd-grow50-rot20}.sd-badge{display:inline-block;padding:.35em .65em;font-size:.75em;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25rem}.sd-badge:empty{display:none}a.sd-badge{text-decoration:none}.sd-btn .sd-badge{position:relative;top:-1px}.sd-btn{background-color:transparent;border:1px solid transparent;border-radius:.25rem;cursor:pointer;display:inline-block;font-weight:400;font-size:1rem;line-height:1.5;padding:.375rem .75rem;text-align:center;text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;vertical-align:middle;user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none}.sd-btn:hover{text-decoration:none}@media(prefers-reduced-motion: reduce){.sd-btn{transition:none}}.sd-btn-primary,.sd-btn-outline-primary:hover,.sd-btn-outline-primary:focus{color:var(--sd-color-primary-text) !important;background-color:var(--sd-color-primary) !important;border-color:var(--sd-color-primary) !important;border-width:1px !important;border-style:solid !important}.sd-btn-primary:hover,.sd-btn-primary:focus{color:var(--sd-color-primary-text) !important;background-color:var(--sd-color-primary-highlight) !important;border-color:var(--sd-color-primary-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-primary{color:var(--sd-color-primary) !important;border-color:var(--sd-color-primary) !important;border-width:1px !important;border-style:solid !important}.sd-btn-secondary,.sd-btn-outline-secondary:hover,.sd-btn-outline-secondary:focus{color:var(--sd-color-secondary-text) !important;background-color:var(--sd-color-secondary) !important;border-color:var(--sd-color-secondary) !important;border-width:1px !important;border-style:solid !important}.sd-btn-secondary:hover,.sd-btn-secondary:focus{color:var(--sd-color-secondary-text) !important;background-color:var(--sd-color-secondary-highlight) !important;border-color:var(--sd-color-secondary-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-secondary{color:var(--sd-color-secondary) !important;border-color:var(--sd-color-secondary) !important;border-width:1px !important;border-style:solid !important}.sd-btn-success,.sd-btn-outline-success:hover,.sd-btn-outline-success:focus{color:var(--sd-color-success-text) !important;background-color:var(--sd-color-success) !important;border-color:var(--sd-color-success) !important;border-width:1px !important;border-style:solid !important}.sd-btn-success:hover,.sd-btn-success:focus{color:var(--sd-color-success-text) !important;background-color:var(--sd-color-success-highlight) !important;border-color:var(--sd-color-success-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-success{color:var(--sd-color-success) !important;border-color:var(--sd-color-success) !important;border-width:1px !important;border-style:solid !important}.sd-btn-info,.sd-btn-outline-info:hover,.sd-btn-outline-info:focus{color:var(--sd-color-info-text) !important;background-color:var(--sd-color-info) !important;border-color:var(--sd-color-info) !important;border-width:1px !important;border-style:solid !important}.sd-btn-info:hover,.sd-btn-info:focus{color:var(--sd-color-info-text) !important;background-color:var(--sd-color-info-highlight) !important;border-color:var(--sd-color-info-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-info{color:var(--sd-color-info) !important;border-color:var(--sd-color-info) !important;border-width:1px !important;border-style:solid !important}.sd-btn-warning,.sd-btn-outline-warning:hover,.sd-btn-outline-warning:focus{color:var(--sd-color-warning-text) !important;background-color:var(--sd-color-warning) !important;border-color:var(--sd-color-warning) !important;border-width:1px !important;border-style:solid !important}.sd-btn-warning:hover,.sd-btn-warning:focus{color:var(--sd-color-warning-text) !important;background-color:var(--sd-color-warning-highlight) !important;border-color:var(--sd-color-warning-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-warning{color:var(--sd-color-warning) !important;border-color:var(--sd-color-warning) !important;border-width:1px !important;border-style:solid !important}.sd-btn-danger,.sd-btn-outline-danger:hover,.sd-btn-outline-danger:focus{color:var(--sd-color-danger-text) !important;background-color:var(--sd-color-danger) !important;border-color:var(--sd-color-danger) !important;border-width:1px !important;border-style:solid !important}.sd-btn-danger:hover,.sd-btn-danger:focus{color:var(--sd-color-danger-text) !important;background-color:var(--sd-color-danger-highlight) !important;border-color:var(--sd-color-danger-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-danger{color:var(--sd-color-danger) !important;border-color:var(--sd-color-danger) !important;border-width:1px !important;border-style:solid !important}.sd-btn-light,.sd-btn-outline-light:hover,.sd-btn-outline-light:focus{color:var(--sd-color-light-text) !important;background-color:var(--sd-color-light) !important;border-color:var(--sd-color-light) !important;border-width:1px !important;border-style:solid !important}.sd-btn-light:hover,.sd-btn-light:focus{color:var(--sd-color-light-text) !important;background-color:var(--sd-color-light-highlight) !important;border-color:var(--sd-color-light-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-light{color:var(--sd-color-light) !important;border-color:var(--sd-color-light) !important;border-width:1px !important;border-style:solid !important}.sd-btn-muted,.sd-btn-outline-muted:hover,.sd-btn-outline-muted:focus{color:var(--sd-color-muted-text) !important;background-color:var(--sd-color-muted) !important;border-color:var(--sd-color-muted) !important;border-width:1px !important;border-style:solid !important}.sd-btn-muted:hover,.sd-btn-muted:focus{color:var(--sd-color-muted-text) !important;background-color:var(--sd-color-muted-highlight) !important;border-color:var(--sd-color-muted-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-muted{color:var(--sd-color-muted) !important;border-color:var(--sd-color-muted) !important;border-width:1px !important;border-style:solid !important}.sd-btn-dark,.sd-btn-outline-dark:hover,.sd-btn-outline-dark:focus{color:var(--sd-color-dark-text) !important;background-color:var(--sd-color-dark) !important;border-color:var(--sd-color-dark) !important;border-width:1px !important;border-style:solid !important}.sd-btn-dark:hover,.sd-btn-dark:focus{color:var(--sd-color-dark-text) !important;background-color:var(--sd-color-dark-highlight) !important;border-color:var(--sd-color-dark-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-dark{color:var(--sd-color-dark) !important;border-color:var(--sd-color-dark) !important;border-width:1px !important;border-style:solid !important}.sd-btn-black,.sd-btn-outline-black:hover,.sd-btn-outline-black:focus{color:var(--sd-color-black-text) !important;background-color:var(--sd-color-black) !important;border-color:var(--sd-color-black) !important;border-width:1px !important;border-style:solid !important}.sd-btn-black:hover,.sd-btn-black:focus{color:var(--sd-color-black-text) !important;background-color:var(--sd-color-black-highlight) !important;border-color:var(--sd-color-black-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-black{color:var(--sd-color-black) !important;border-color:var(--sd-color-black) !important;border-width:1px !important;border-style:solid !important}.sd-btn-white,.sd-btn-outline-white:hover,.sd-btn-outline-white:focus{color:var(--sd-color-white-text) !important;background-color:var(--sd-color-white) !important;border-color:var(--sd-color-white) !important;border-width:1px !important;border-style:solid !important}.sd-btn-white:hover,.sd-btn-white:focus{color:var(--sd-color-white-text) !important;background-color:var(--sd-color-white-highlight) !important;border-color:var(--sd-color-white-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-white{color:var(--sd-color-white) !important;border-color:var(--sd-color-white) !important;border-width:1px !important;border-style:solid !important}.sd-stretched-link::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}.sd-hide-link-text{font-size:0}.sd-octicon,.sd-material-icon{display:inline-block;fill:currentColor;vertical-align:middle}.sd-avatar-xs{border-radius:50%;object-fit:cover;object-position:center;width:1rem;height:1rem}.sd-avatar-sm{border-radius:50%;object-fit:cover;object-position:center;width:3rem;height:3rem}.sd-avatar-md{border-radius:50%;object-fit:cover;object-position:center;width:5rem;height:5rem}.sd-avatar-lg{border-radius:50%;object-fit:cover;object-position:center;width:7rem;height:7rem}.sd-avatar-xl{border-radius:50%;object-fit:cover;object-position:center;width:10rem;height:10rem}.sd-avatar-inherit{border-radius:50%;object-fit:cover;object-position:center;width:inherit;height:inherit}.sd-avatar-initial{border-radius:50%;object-fit:cover;object-position:center;width:initial;height:initial}.sd-card{background-clip:border-box;background-color:var(--sd-color-card-background);border:1px solid var(--sd-color-card-border);border-radius:.25rem;color:var(--sd-color-card-text);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:0;position:relative;word-wrap:break-word}.sd-card>hr{margin-left:0;margin-right:0}.sd-card-hover:hover{border-color:var(--sd-color-card-border-hover);transform:scale(1.01)}.sd-card-body{-ms-flex:1 1 auto;flex:1 1 auto;padding:1rem 1rem}.sd-card-title{margin-bottom:.5rem}.sd-card-subtitle{margin-top:-0.25rem;margin-bottom:0}.sd-card-text:last-child{margin-bottom:0}.sd-card-link:hover{text-decoration:none}.sd-card-link+.card-link{margin-left:1rem}.sd-card-header{padding:.5rem 1rem;margin-bottom:0;background-color:var(--sd-color-card-header);border-bottom:1px solid var(--sd-color-card-border)}.sd-card-header:first-child{border-radius:calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0}.sd-card-footer{padding:.5rem 1rem;background-color:var(--sd-color-card-footer);border-top:1px solid var(--sd-color-card-border)}.sd-card-footer:last-child{border-radius:0 0 calc(0.25rem - 1px) calc(0.25rem - 1px)}.sd-card-header-tabs{margin-right:-0.5rem;margin-bottom:-0.5rem;margin-left:-0.5rem;border-bottom:0}.sd-card-header-pills{margin-right:-0.5rem;margin-left:-0.5rem}.sd-card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:1rem;border-radius:calc(0.25rem - 1px)}.sd-card-img,.sd-card-img-bottom,.sd-card-img-top{width:100%}.sd-card-img,.sd-card-img-top{border-top-left-radius:calc(0.25rem - 1px);border-top-right-radius:calc(0.25rem - 1px)}.sd-card-img,.sd-card-img-bottom{border-bottom-left-radius:calc(0.25rem - 1px);border-bottom-right-radius:calc(0.25rem - 1px)}.sd-cards-carousel{width:100%;display:flex;flex-wrap:nowrap;-ms-flex-direction:row;flex-direction:row;overflow-x:hidden;scroll-snap-type:x mandatory}.sd-cards-carousel.sd-show-scrollbar{overflow-x:auto}.sd-cards-carousel:hover,.sd-cards-carousel:focus{overflow-x:auto}.sd-cards-carousel>.sd-card{flex-shrink:0;scroll-snap-align:start}.sd-cards-carousel>.sd-card:not(:last-child){margin-right:3px}.sd-card-cols-1>.sd-card{width:90%}.sd-card-cols-2>.sd-card{width:45%}.sd-card-cols-3>.sd-card{width:30%}.sd-card-cols-4>.sd-card{width:22.5%}.sd-card-cols-5>.sd-card{width:18%}.sd-card-cols-6>.sd-card{width:15%}.sd-card-cols-7>.sd-card{width:12.8571428571%}.sd-card-cols-8>.sd-card{width:11.25%}.sd-card-cols-9>.sd-card{width:10%}.sd-card-cols-10>.sd-card{width:9%}.sd-card-cols-11>.sd-card{width:8.1818181818%}.sd-card-cols-12>.sd-card{width:7.5%}.sd-container,.sd-container-fluid,.sd-container-lg,.sd-container-md,.sd-container-sm,.sd-container-xl{margin-left:auto;margin-right:auto;padding-left:var(--sd-gutter-x, 0.75rem);padding-right:var(--sd-gutter-x, 0.75rem);width:100%}@media(min-width: 576px){.sd-container-sm,.sd-container{max-width:540px}}@media(min-width: 768px){.sd-container-md,.sd-container-sm,.sd-container{max-width:720px}}@media(min-width: 992px){.sd-container-lg,.sd-container-md,.sd-container-sm,.sd-container{max-width:960px}}@media(min-width: 1200px){.sd-container-xl,.sd-container-lg,.sd-container-md,.sd-container-sm,.sd-container{max-width:1140px}}.sd-row{--sd-gutter-x: 1.5rem;--sd-gutter-y: 0;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-top:calc(var(--sd-gutter-y) * -1);margin-right:calc(var(--sd-gutter-x) * -0.5);margin-left:calc(var(--sd-gutter-x) * -0.5)}.sd-row>*{box-sizing:border-box;flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--sd-gutter-x) * 0.5);padding-left:calc(var(--sd-gutter-x) * 0.5);margin-top:var(--sd-gutter-y)}.sd-col{flex:1 0 0%;-ms-flex:1 0 0%}.sd-row-cols-auto>*{flex:0 0 auto;width:auto}.sd-row-cols-1>*{flex:0 0 auto;-ms-flex:0 0 auto;width:100%}.sd-row-cols-2>*{flex:0 0 auto;-ms-flex:0 0 auto;width:50%}.sd-row-cols-3>*{flex:0 0 auto;-ms-flex:0 0 auto;width:33.3333333333%}.sd-row-cols-4>*{flex:0 0 auto;-ms-flex:0 0 auto;width:25%}.sd-row-cols-5>*{flex:0 0 auto;-ms-flex:0 0 auto;width:20%}.sd-row-cols-6>*{flex:0 0 auto;-ms-flex:0 0 auto;width:16.6666666667%}.sd-row-cols-7>*{flex:0 0 auto;-ms-flex:0 0 auto;width:14.2857142857%}.sd-row-cols-8>*{flex:0 0 auto;-ms-flex:0 0 auto;width:12.5%}.sd-row-cols-9>*{flex:0 0 auto;-ms-flex:0 0 auto;width:11.1111111111%}.sd-row-cols-10>*{flex:0 0 auto;-ms-flex:0 0 auto;width:10%}.sd-row-cols-11>*{flex:0 0 auto;-ms-flex:0 0 auto;width:9.0909090909%}.sd-row-cols-12>*{flex:0 0 auto;-ms-flex:0 0 auto;width:8.3333333333%}@media(min-width: 576px){.sd-col-sm{flex:1 0 0%;-ms-flex:1 0 0%}.sd-row-cols-sm-auto{flex:1 0 auto;-ms-flex:1 0 auto;width:100%}.sd-row-cols-sm-1>*{flex:0 0 auto;-ms-flex:0 0 auto;width:100%}.sd-row-cols-sm-2>*{flex:0 0 auto;-ms-flex:0 0 auto;width:50%}.sd-row-cols-sm-3>*{flex:0 0 auto;-ms-flex:0 0 auto;width:33.3333333333%}.sd-row-cols-sm-4>*{flex:0 0 auto;-ms-flex:0 0 auto;width:25%}.sd-row-cols-sm-5>*{flex:0 0 auto;-ms-flex:0 0 auto;width:20%}.sd-row-cols-sm-6>*{flex:0 0 auto;-ms-flex:0 0 auto;width:16.6666666667%}.sd-row-cols-sm-7>*{flex:0 0 auto;-ms-flex:0 0 auto;width:14.2857142857%}.sd-row-cols-sm-8>*{flex:0 0 auto;-ms-flex:0 0 auto;width:12.5%}.sd-row-cols-sm-9>*{flex:0 0 auto;-ms-flex:0 0 auto;width:11.1111111111%}.sd-row-cols-sm-10>*{flex:0 0 auto;-ms-flex:0 0 auto;width:10%}.sd-row-cols-sm-11>*{flex:0 0 auto;-ms-flex:0 0 auto;width:9.0909090909%}.sd-row-cols-sm-12>*{flex:0 0 auto;-ms-flex:0 0 auto;width:8.3333333333%}}@media(min-width: 768px){.sd-col-md{flex:1 0 0%;-ms-flex:1 0 0%}.sd-row-cols-md-auto{flex:1 0 auto;-ms-flex:1 0 auto;width:100%}.sd-row-cols-md-1>*{flex:0 0 auto;-ms-flex:0 0 auto;width:100%}.sd-row-cols-md-2>*{flex:0 0 auto;-ms-flex:0 0 auto;width:50%}.sd-row-cols-md-3>*{flex:0 0 auto;-ms-flex:0 0 auto;width:33.3333333333%}.sd-row-cols-md-4>*{flex:0 0 auto;-ms-flex:0 0 auto;width:25%}.sd-row-cols-md-5>*{flex:0 0 auto;-ms-flex:0 0 auto;width:20%}.sd-row-cols-md-6>*{flex:0 0 auto;-ms-flex:0 0 auto;width:16.6666666667%}.sd-row-cols-md-7>*{flex:0 0 auto;-ms-flex:0 0 auto;width:14.2857142857%}.sd-row-cols-md-8>*{flex:0 0 auto;-ms-flex:0 0 auto;width:12.5%}.sd-row-cols-md-9>*{flex:0 0 auto;-ms-flex:0 0 auto;width:11.1111111111%}.sd-row-cols-md-10>*{flex:0 0 auto;-ms-flex:0 0 auto;width:10%}.sd-row-cols-md-11>*{flex:0 0 auto;-ms-flex:0 0 auto;width:9.0909090909%}.sd-row-cols-md-12>*{flex:0 0 auto;-ms-flex:0 0 auto;width:8.3333333333%}}@media(min-width: 992px){.sd-col-lg{flex:1 0 0%;-ms-flex:1 0 0%}.sd-row-cols-lg-auto{flex:1 0 auto;-ms-flex:1 0 auto;width:100%}.sd-row-cols-lg-1>*{flex:0 0 auto;-ms-flex:0 0 auto;width:100%}.sd-row-cols-lg-2>*{flex:0 0 auto;-ms-flex:0 0 auto;width:50%}.sd-row-cols-lg-3>*{flex:0 0 auto;-ms-flex:0 0 auto;width:33.3333333333%}.sd-row-cols-lg-4>*{flex:0 0 auto;-ms-flex:0 0 auto;width:25%}.sd-row-cols-lg-5>*{flex:0 0 auto;-ms-flex:0 0 auto;width:20%}.sd-row-cols-lg-6>*{flex:0 0 auto;-ms-flex:0 0 auto;width:16.6666666667%}.sd-row-cols-lg-7>*{flex:0 0 auto;-ms-flex:0 0 auto;width:14.2857142857%}.sd-row-cols-lg-8>*{flex:0 0 auto;-ms-flex:0 0 auto;width:12.5%}.sd-row-cols-lg-9>*{flex:0 0 auto;-ms-flex:0 0 auto;width:11.1111111111%}.sd-row-cols-lg-10>*{flex:0 0 auto;-ms-flex:0 0 auto;width:10%}.sd-row-cols-lg-11>*{flex:0 0 auto;-ms-flex:0 0 auto;width:9.0909090909%}.sd-row-cols-lg-12>*{flex:0 0 auto;-ms-flex:0 0 auto;width:8.3333333333%}}@media(min-width: 1200px){.sd-col-xl{flex:1 0 0%;-ms-flex:1 0 0%}.sd-row-cols-xl-auto{flex:1 0 auto;-ms-flex:1 0 auto;width:100%}.sd-row-cols-xl-1>*{flex:0 0 auto;-ms-flex:0 0 auto;width:100%}.sd-row-cols-xl-2>*{flex:0 0 auto;-ms-flex:0 0 auto;width:50%}.sd-row-cols-xl-3>*{flex:0 0 auto;-ms-flex:0 0 auto;width:33.3333333333%}.sd-row-cols-xl-4>*{flex:0 0 auto;-ms-flex:0 0 auto;width:25%}.sd-row-cols-xl-5>*{flex:0 0 auto;-ms-flex:0 0 auto;width:20%}.sd-row-cols-xl-6>*{flex:0 0 auto;-ms-flex:0 0 auto;width:16.6666666667%}.sd-row-cols-xl-7>*{flex:0 0 auto;-ms-flex:0 0 auto;width:14.2857142857%}.sd-row-cols-xl-8>*{flex:0 0 auto;-ms-flex:0 0 auto;width:12.5%}.sd-row-cols-xl-9>*{flex:0 0 auto;-ms-flex:0 0 auto;width:11.1111111111%}.sd-row-cols-xl-10>*{flex:0 0 auto;-ms-flex:0 0 auto;width:10%}.sd-row-cols-xl-11>*{flex:0 0 auto;-ms-flex:0 0 auto;width:9.0909090909%}.sd-row-cols-xl-12>*{flex:0 0 auto;-ms-flex:0 0 auto;width:8.3333333333%}}.sd-col-auto{flex:0 0 auto;-ms-flex:0 0 auto;width:auto}.sd-col-1{flex:0 0 auto;-ms-flex:0 0 auto;width:8.3333333333%}.sd-col-2{flex:0 0 auto;-ms-flex:0 0 auto;width:16.6666666667%}.sd-col-3{flex:0 0 auto;-ms-flex:0 0 auto;width:25%}.sd-col-4{flex:0 0 auto;-ms-flex:0 0 auto;width:33.3333333333%}.sd-col-5{flex:0 0 auto;-ms-flex:0 0 auto;width:41.6666666667%}.sd-col-6{flex:0 0 auto;-ms-flex:0 0 auto;width:50%}.sd-col-7{flex:0 0 auto;-ms-flex:0 0 auto;width:58.3333333333%}.sd-col-8{flex:0 0 auto;-ms-flex:0 0 auto;width:66.6666666667%}.sd-col-9{flex:0 0 auto;-ms-flex:0 0 auto;width:75%}.sd-col-10{flex:0 0 auto;-ms-flex:0 0 auto;width:83.3333333333%}.sd-col-11{flex:0 0 auto;-ms-flex:0 0 auto;width:91.6666666667%}.sd-col-12{flex:0 0 auto;-ms-flex:0 0 auto;width:100%}.sd-g-0,.sd-gy-0{--sd-gutter-y: 0}.sd-g-0,.sd-gx-0{--sd-gutter-x: 0}.sd-g-1,.sd-gy-1{--sd-gutter-y: 0.25rem}.sd-g-1,.sd-gx-1{--sd-gutter-x: 0.25rem}.sd-g-2,.sd-gy-2{--sd-gutter-y: 0.5rem}.sd-g-2,.sd-gx-2{--sd-gutter-x: 0.5rem}.sd-g-3,.sd-gy-3{--sd-gutter-y: 1rem}.sd-g-3,.sd-gx-3{--sd-gutter-x: 1rem}.sd-g-4,.sd-gy-4{--sd-gutter-y: 1.5rem}.sd-g-4,.sd-gx-4{--sd-gutter-x: 1.5rem}.sd-g-5,.sd-gy-5{--sd-gutter-y: 3rem}.sd-g-5,.sd-gx-5{--sd-gutter-x: 3rem}@media(min-width: 576px){.sd-col-sm-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto}.sd-col-sm-1{-ms-flex:0 0 auto;flex:0 0 auto;width:8.3333333333%}.sd-col-sm-2{-ms-flex:0 0 auto;flex:0 0 auto;width:16.6666666667%}.sd-col-sm-3{-ms-flex:0 0 auto;flex:0 0 auto;width:25%}.sd-col-sm-4{-ms-flex:0 0 auto;flex:0 0 auto;width:33.3333333333%}.sd-col-sm-5{-ms-flex:0 0 auto;flex:0 0 auto;width:41.6666666667%}.sd-col-sm-6{-ms-flex:0 0 auto;flex:0 0 auto;width:50%}.sd-col-sm-7{-ms-flex:0 0 auto;flex:0 0 auto;width:58.3333333333%}.sd-col-sm-8{-ms-flex:0 0 auto;flex:0 0 auto;width:66.6666666667%}.sd-col-sm-9{-ms-flex:0 0 auto;flex:0 0 auto;width:75%}.sd-col-sm-10{-ms-flex:0 0 auto;flex:0 0 auto;width:83.3333333333%}.sd-col-sm-11{-ms-flex:0 0 auto;flex:0 0 auto;width:91.6666666667%}.sd-col-sm-12{-ms-flex:0 0 auto;flex:0 0 auto;width:100%}.sd-g-sm-0,.sd-gy-sm-0{--sd-gutter-y: 0}.sd-g-sm-0,.sd-gx-sm-0{--sd-gutter-x: 0}.sd-g-sm-1,.sd-gy-sm-1{--sd-gutter-y: 0.25rem}.sd-g-sm-1,.sd-gx-sm-1{--sd-gutter-x: 0.25rem}.sd-g-sm-2,.sd-gy-sm-2{--sd-gutter-y: 0.5rem}.sd-g-sm-2,.sd-gx-sm-2{--sd-gutter-x: 0.5rem}.sd-g-sm-3,.sd-gy-sm-3{--sd-gutter-y: 1rem}.sd-g-sm-3,.sd-gx-sm-3{--sd-gutter-x: 1rem}.sd-g-sm-4,.sd-gy-sm-4{--sd-gutter-y: 1.5rem}.sd-g-sm-4,.sd-gx-sm-4{--sd-gutter-x: 1.5rem}.sd-g-sm-5,.sd-gy-sm-5{--sd-gutter-y: 3rem}.sd-g-sm-5,.sd-gx-sm-5{--sd-gutter-x: 3rem}}@media(min-width: 768px){.sd-col-md-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto}.sd-col-md-1{-ms-flex:0 0 auto;flex:0 0 auto;width:8.3333333333%}.sd-col-md-2{-ms-flex:0 0 auto;flex:0 0 auto;width:16.6666666667%}.sd-col-md-3{-ms-flex:0 0 auto;flex:0 0 auto;width:25%}.sd-col-md-4{-ms-flex:0 0 auto;flex:0 0 auto;width:33.3333333333%}.sd-col-md-5{-ms-flex:0 0 auto;flex:0 0 auto;width:41.6666666667%}.sd-col-md-6{-ms-flex:0 0 auto;flex:0 0 auto;width:50%}.sd-col-md-7{-ms-flex:0 0 auto;flex:0 0 auto;width:58.3333333333%}.sd-col-md-8{-ms-flex:0 0 auto;flex:0 0 auto;width:66.6666666667%}.sd-col-md-9{-ms-flex:0 0 auto;flex:0 0 auto;width:75%}.sd-col-md-10{-ms-flex:0 0 auto;flex:0 0 auto;width:83.3333333333%}.sd-col-md-11{-ms-flex:0 0 auto;flex:0 0 auto;width:91.6666666667%}.sd-col-md-12{-ms-flex:0 0 auto;flex:0 0 auto;width:100%}.sd-g-md-0,.sd-gy-md-0{--sd-gutter-y: 0}.sd-g-md-0,.sd-gx-md-0{--sd-gutter-x: 0}.sd-g-md-1,.sd-gy-md-1{--sd-gutter-y: 0.25rem}.sd-g-md-1,.sd-gx-md-1{--sd-gutter-x: 0.25rem}.sd-g-md-2,.sd-gy-md-2{--sd-gutter-y: 0.5rem}.sd-g-md-2,.sd-gx-md-2{--sd-gutter-x: 0.5rem}.sd-g-md-3,.sd-gy-md-3{--sd-gutter-y: 1rem}.sd-g-md-3,.sd-gx-md-3{--sd-gutter-x: 1rem}.sd-g-md-4,.sd-gy-md-4{--sd-gutter-y: 1.5rem}.sd-g-md-4,.sd-gx-md-4{--sd-gutter-x: 1.5rem}.sd-g-md-5,.sd-gy-md-5{--sd-gutter-y: 3rem}.sd-g-md-5,.sd-gx-md-5{--sd-gutter-x: 3rem}}@media(min-width: 992px){.sd-col-lg-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto}.sd-col-lg-1{-ms-flex:0 0 auto;flex:0 0 auto;width:8.3333333333%}.sd-col-lg-2{-ms-flex:0 0 auto;flex:0 0 auto;width:16.6666666667%}.sd-col-lg-3{-ms-flex:0 0 auto;flex:0 0 auto;width:25%}.sd-col-lg-4{-ms-flex:0 0 auto;flex:0 0 auto;width:33.3333333333%}.sd-col-lg-5{-ms-flex:0 0 auto;flex:0 0 auto;width:41.6666666667%}.sd-col-lg-6{-ms-flex:0 0 auto;flex:0 0 auto;width:50%}.sd-col-lg-7{-ms-flex:0 0 auto;flex:0 0 auto;width:58.3333333333%}.sd-col-lg-8{-ms-flex:0 0 auto;flex:0 0 auto;width:66.6666666667%}.sd-col-lg-9{-ms-flex:0 0 auto;flex:0 0 auto;width:75%}.sd-col-lg-10{-ms-flex:0 0 auto;flex:0 0 auto;width:83.3333333333%}.sd-col-lg-11{-ms-flex:0 0 auto;flex:0 0 auto;width:91.6666666667%}.sd-col-lg-12{-ms-flex:0 0 auto;flex:0 0 auto;width:100%}.sd-g-lg-0,.sd-gy-lg-0{--sd-gutter-y: 0}.sd-g-lg-0,.sd-gx-lg-0{--sd-gutter-x: 0}.sd-g-lg-1,.sd-gy-lg-1{--sd-gutter-y: 0.25rem}.sd-g-lg-1,.sd-gx-lg-1{--sd-gutter-x: 0.25rem}.sd-g-lg-2,.sd-gy-lg-2{--sd-gutter-y: 0.5rem}.sd-g-lg-2,.sd-gx-lg-2{--sd-gutter-x: 0.5rem}.sd-g-lg-3,.sd-gy-lg-3{--sd-gutter-y: 1rem}.sd-g-lg-3,.sd-gx-lg-3{--sd-gutter-x: 1rem}.sd-g-lg-4,.sd-gy-lg-4{--sd-gutter-y: 1.5rem}.sd-g-lg-4,.sd-gx-lg-4{--sd-gutter-x: 1.5rem}.sd-g-lg-5,.sd-gy-lg-5{--sd-gutter-y: 3rem}.sd-g-lg-5,.sd-gx-lg-5{--sd-gutter-x: 3rem}}@media(min-width: 1200px){.sd-col-xl-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto}.sd-col-xl-1{-ms-flex:0 0 auto;flex:0 0 auto;width:8.3333333333%}.sd-col-xl-2{-ms-flex:0 0 auto;flex:0 0 auto;width:16.6666666667%}.sd-col-xl-3{-ms-flex:0 0 auto;flex:0 0 auto;width:25%}.sd-col-xl-4{-ms-flex:0 0 auto;flex:0 0 auto;width:33.3333333333%}.sd-col-xl-5{-ms-flex:0 0 auto;flex:0 0 auto;width:41.6666666667%}.sd-col-xl-6{-ms-flex:0 0 auto;flex:0 0 auto;width:50%}.sd-col-xl-7{-ms-flex:0 0 auto;flex:0 0 auto;width:58.3333333333%}.sd-col-xl-8{-ms-flex:0 0 auto;flex:0 0 auto;width:66.6666666667%}.sd-col-xl-9{-ms-flex:0 0 auto;flex:0 0 auto;width:75%}.sd-col-xl-10{-ms-flex:0 0 auto;flex:0 0 auto;width:83.3333333333%}.sd-col-xl-11{-ms-flex:0 0 auto;flex:0 0 auto;width:91.6666666667%}.sd-col-xl-12{-ms-flex:0 0 auto;flex:0 0 auto;width:100%}.sd-g-xl-0,.sd-gy-xl-0{--sd-gutter-y: 0}.sd-g-xl-0,.sd-gx-xl-0{--sd-gutter-x: 0}.sd-g-xl-1,.sd-gy-xl-1{--sd-gutter-y: 0.25rem}.sd-g-xl-1,.sd-gx-xl-1{--sd-gutter-x: 0.25rem}.sd-g-xl-2,.sd-gy-xl-2{--sd-gutter-y: 0.5rem}.sd-g-xl-2,.sd-gx-xl-2{--sd-gutter-x: 0.5rem}.sd-g-xl-3,.sd-gy-xl-3{--sd-gutter-y: 1rem}.sd-g-xl-3,.sd-gx-xl-3{--sd-gutter-x: 1rem}.sd-g-xl-4,.sd-gy-xl-4{--sd-gutter-y: 1.5rem}.sd-g-xl-4,.sd-gx-xl-4{--sd-gutter-x: 1.5rem}.sd-g-xl-5,.sd-gy-xl-5{--sd-gutter-y: 3rem}.sd-g-xl-5,.sd-gx-xl-5{--sd-gutter-x: 3rem}}.sd-flex-row-reverse{flex-direction:row-reverse !important}details.sd-dropdown{position:relative}details.sd-dropdown .sd-summary-title{font-weight:700;padding-right:3em !important;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none}details.sd-dropdown:hover{cursor:pointer}details.sd-dropdown .sd-summary-content{cursor:default}details.sd-dropdown summary{list-style:none;padding:1em}details.sd-dropdown summary .sd-octicon.no-title{vertical-align:middle}details.sd-dropdown[open] summary .sd-octicon.no-title{visibility:hidden}details.sd-dropdown summary::-webkit-details-marker{display:none}details.sd-dropdown summary:focus{outline:none}details.sd-dropdown .sd-summary-icon{margin-right:.5em}details.sd-dropdown .sd-summary-icon svg{opacity:.8}details.sd-dropdown summary:hover .sd-summary-up svg,details.sd-dropdown summary:hover .sd-summary-down svg{opacity:1;transform:scale(1.1)}details.sd-dropdown .sd-summary-up svg,details.sd-dropdown .sd-summary-down svg{display:block;opacity:.6}details.sd-dropdown .sd-summary-up,details.sd-dropdown .sd-summary-down{pointer-events:none;position:absolute;right:1em;top:1em}details.sd-dropdown[open]>.sd-summary-title .sd-summary-down{visibility:hidden}details.sd-dropdown:not([open])>.sd-summary-title .sd-summary-up{visibility:hidden}details.sd-dropdown:not([open]).sd-card{border:none}details.sd-dropdown:not([open])>.sd-card-header{border:1px solid var(--sd-color-card-border);border-radius:.25rem}details.sd-dropdown.sd-fade-in[open] summary~*{-moz-animation:sd-fade-in .5s ease-in-out;-webkit-animation:sd-fade-in .5s ease-in-out;animation:sd-fade-in .5s ease-in-out}details.sd-dropdown.sd-fade-in-slide-down[open] summary~*{-moz-animation:sd-fade-in .5s ease-in-out,sd-slide-down .5s ease-in-out;-webkit-animation:sd-fade-in .5s ease-in-out,sd-slide-down .5s ease-in-out;animation:sd-fade-in .5s ease-in-out,sd-slide-down .5s ease-in-out}.sd-col>.sd-dropdown{width:100%}.sd-summary-content>.sd-tab-set:first-child{margin-top:0}@keyframes sd-fade-in{0%{opacity:0}100%{opacity:1}}@keyframes sd-slide-down{0%{transform:translate(0, -10px)}100%{transform:translate(0, 0)}}.sd-tab-set{border-radius:.125rem;display:flex;flex-wrap:wrap;margin:1em 0;position:relative}.sd-tab-set>input{opacity:0;position:absolute}.sd-tab-set>input:checked+label{border-color:var(--sd-color-tabs-underline-active);color:var(--sd-color-tabs-label-active)}.sd-tab-set>input:checked+label+.sd-tab-content{display:block}.sd-tab-set>input:not(:checked)+label:hover{color:var(--sd-color-tabs-label-hover);border-color:var(--sd-color-tabs-underline-hover)}.sd-tab-set>input:focus+label{outline-style:auto}.sd-tab-set>input:not(.focus-visible)+label{outline:none;-webkit-tap-highlight-color:transparent}.sd-tab-set>label{border-bottom:.125rem solid transparent;margin-bottom:0;color:var(--sd-color-tabs-label-inactive);border-color:var(--sd-color-tabs-underline-inactive);cursor:pointer;font-size:var(--sd-fontsize-tabs-label);font-weight:700;padding:1em 1.25em .5em;transition:color 250ms;width:auto;z-index:1}html .sd-tab-set>label:hover{color:var(--sd-color-tabs-label-active)}.sd-col>.sd-tab-set{width:100%}.sd-tab-content{box-shadow:0 -0.0625rem var(--sd-color-tabs-overline),0 .0625rem var(--sd-color-tabs-underline);display:none;order:99;padding-bottom:.75rem;padding-top:.75rem;width:100%}.sd-tab-content>:first-child{margin-top:0 !important}.sd-tab-content>:last-child{margin-bottom:0 !important}.sd-tab-content>.sd-tab-set{margin:0}.sd-sphinx-override,.sd-sphinx-override *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.sd-sphinx-override p{margin-top:0}:root{--sd-color-primary: #0071bc;--sd-color-secondary: #6c757d;--sd-color-success: #28a745;--sd-color-info: #17a2b8;--sd-color-warning: #f0b37e;--sd-color-danger: #dc3545;--sd-color-light: #f8f9fa;--sd-color-muted: #6c757d;--sd-color-dark: #212529;--sd-color-black: black;--sd-color-white: white;--sd-color-primary-highlight: #0060a0;--sd-color-secondary-highlight: #5c636a;--sd-color-success-highlight: #228e3b;--sd-color-info-highlight: #148a9c;--sd-color-warning-highlight: #cc986b;--sd-color-danger-highlight: #bb2d3b;--sd-color-light-highlight: #d3d4d5;--sd-color-muted-highlight: #5c636a;--sd-color-dark-highlight: #1c1f23;--sd-color-black-highlight: black;--sd-color-white-highlight: #d9d9d9;--sd-color-primary-text: #fff;--sd-color-secondary-text: #fff;--sd-color-success-text: #fff;--sd-color-info-text: #fff;--sd-color-warning-text: #212529;--sd-color-danger-text: #fff;--sd-color-light-text: #212529;--sd-color-muted-text: #fff;--sd-color-dark-text: #fff;--sd-color-black-text: #fff;--sd-color-white-text: #212529;--sd-color-shadow: rgba(0, 0, 0, 0.15);--sd-color-card-border: rgba(0, 0, 0, 0.125);--sd-color-card-border-hover: hsla(231, 99%, 66%, 1);--sd-color-card-background: transparent;--sd-color-card-text: inherit;--sd-color-card-header: transparent;--sd-color-card-footer: transparent;--sd-color-tabs-label-active: hsla(231, 99%, 66%, 1);--sd-color-tabs-label-hover: hsla(231, 99%, 66%, 1);--sd-color-tabs-label-inactive: hsl(0, 0%, 66%);--sd-color-tabs-underline-active: hsla(231, 99%, 66%, 1);--sd-color-tabs-underline-hover: rgba(178, 206, 245, 0.62);--sd-color-tabs-underline-inactive: transparent;--sd-color-tabs-overline: rgb(222, 222, 222);--sd-color-tabs-underline: rgb(222, 222, 222);--sd-fontsize-tabs-label: 1rem} diff --git a/_sphinx_design_static/design-tabs.js b/_sphinx_design_static/design-tabs.js new file mode 100644 index 0000000..36b38cf --- /dev/null +++ b/_sphinx_design_static/design-tabs.js @@ -0,0 +1,27 @@ +var sd_labels_by_text = {}; + +function ready() { + const li = document.getElementsByClassName("sd-tab-label"); + for (const label of li) { + syncId = label.getAttribute("data-sync-id"); + if (syncId) { + label.onclick = onLabelClick; + if (!sd_labels_by_text[syncId]) { + sd_labels_by_text[syncId] = []; + } + sd_labels_by_text[syncId].push(label); + } + } +} + +function onLabelClick() { + // Activate other inputs with the same sync id. + syncId = this.getAttribute("data-sync-id"); + for (label of sd_labels_by_text[syncId]) { + if (label === this) continue; + label.previousElementSibling.checked = true; + } + window.localStorage.setItem("sphinx-design-last-tab", syncId); +} + +document.addEventListener("DOMContentLoaded", ready, false); diff --git a/_static/_sphinx_javascript_frameworks_compat.js b/_static/_sphinx_javascript_frameworks_compat.js new file mode 100644 index 0000000..8141580 --- /dev/null +++ b/_static/_sphinx_javascript_frameworks_compat.js @@ -0,0 +1,123 @@ +/* Compatability shim for jQuery and underscores.js. + * + * Copyright Sphinx contributors + * Released under the two clause BSD licence + */ + +/** + * small helper function to urldecode strings + * + * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL + */ +jQuery.urldecode = function(x) { + if (!x) { + return x + } + return decodeURIComponent(x.replace(/\+/g, ' ')); +}; + +/** + * small helper function to urlencode strings + */ +jQuery.urlencode = encodeURIComponent; + +/** + * This function returns the parsed url parameters of the + * current request. Multiple values per key are supported, + * it will always return arrays of strings for the value parts. + */ +jQuery.getQueryParameters = function(s) { + if (typeof s === 'undefined') + s = document.location.search; + var parts = s.substr(s.indexOf('?') + 1).split('&'); + var result = {}; + for (var i = 0; i < parts.length; i++) { + var tmp = parts[i].split('=', 2); + var key = jQuery.urldecode(tmp[0]); + var value = jQuery.urldecode(tmp[1]); + if (key in result) + result[key].push(value); + else + result[key] = [value]; + } + return result; +}; + +/** + * highlight a given string on a jquery object by wrapping it in + * span elements with the given class name. + */ +jQuery.fn.highlightText = function(text, className) { + function highlight(node, addItems) { + if (node.nodeType === 3) { + var val = node.nodeValue; + var pos = val.toLowerCase().indexOf(text); + if (pos >= 0 && + !jQuery(node.parentNode).hasClass(className) && + !jQuery(node.parentNode).hasClass("nohighlight")) { + var span; + var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg"); + if (isInSVG) { + span = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); + } else { + span = document.createElement("span"); + span.className = className; + } + span.appendChild(document.createTextNode(val.substr(pos, text.length))); + node.parentNode.insertBefore(span, node.parentNode.insertBefore( + document.createTextNode(val.substr(pos + text.length)), + node.nextSibling)); + node.nodeValue = val.substr(0, pos); + if (isInSVG) { + var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect"); + var bbox = node.parentElement.getBBox(); + rect.x.baseVal.value = bbox.x; + rect.y.baseVal.value = bbox.y; + rect.width.baseVal.value = bbox.width; + rect.height.baseVal.value = bbox.height; + rect.setAttribute('class', className); + addItems.push({ + "parent": node.parentNode, + "target": rect}); + } + } + } + else if (!jQuery(node).is("button, select, textarea")) { + jQuery.each(node.childNodes, function() { + highlight(this, addItems); + }); + } + } + var addItems = []; + var result = this.each(function() { + highlight(this, addItems); + }); + for (var i = 0; i < addItems.length; ++i) { + jQuery(addItems[i].parent).before(addItems[i].target); + } + return result; +}; + +/* + * backward compatibility for jQuery.browser + * This will be supported until firefox bug is fixed. + */ +if (!jQuery.browser) { + jQuery.uaMatch = function(ua) { + ua = ua.toLowerCase(); + + var match = /(chrome)[ \/]([\w.]+)/.exec(ua) || + /(webkit)[ \/]([\w.]+)/.exec(ua) || + /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) || + /(msie) ([\w.]+)/.exec(ua) || + ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || + []; + + return { + browser: match[ 1 ] || "", + version: match[ 2 ] || "0" + }; + }; + jQuery.browser = {}; + jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true; +} diff --git a/_static/basic.css b/_static/basic.css new file mode 100644 index 0000000..30fee9d --- /dev/null +++ b/_static/basic.css @@ -0,0 +1,925 @@ +/* + * basic.css + * ~~~~~~~~~ + * + * Sphinx stylesheet -- basic theme. + * + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ + +/* -- main layout ----------------------------------------------------------- */ + +div.clearer { + clear: both; +} + +div.section::after { + display: block; + content: ''; + clear: left; +} + +/* -- relbar ---------------------------------------------------------------- */ + +div.related { + width: 100%; + font-size: 90%; +} + +div.related h3 { + display: none; +} + +div.related ul { + margin: 0; + padding: 0 0 0 10px; + list-style: none; +} + +div.related li { + display: inline; +} + +div.related li.right { + float: right; + margin-right: 5px; +} + +/* -- sidebar --------------------------------------------------------------- */ + +div.sphinxsidebarwrapper { + padding: 10px 5px 0 10px; +} + +div.sphinxsidebar { + float: left; + width: 230px; + margin-left: -100%; + font-size: 90%; + word-wrap: break-word; + overflow-wrap : break-word; +} + +div.sphinxsidebar ul { + list-style: none; +} + +div.sphinxsidebar ul ul, +div.sphinxsidebar ul.want-points { + margin-left: 20px; + list-style: square; +} + +div.sphinxsidebar ul ul { + margin-top: 0; + margin-bottom: 0; +} + +div.sphinxsidebar form { + margin-top: 10px; +} + +div.sphinxsidebar input { + border: 1px solid #98dbcc; + font-family: sans-serif; + font-size: 1em; +} + +div.sphinxsidebar #searchbox form.search { + overflow: hidden; +} + +div.sphinxsidebar #searchbox input[type="text"] { + float: left; + width: 80%; + padding: 0.25em; + box-sizing: border-box; +} + +div.sphinxsidebar #searchbox input[type="submit"] { + float: left; + width: 20%; + border-left: none; + padding: 0.25em; + box-sizing: border-box; +} + + +img { + border: 0; + max-width: 100%; +} + +/* -- search page ----------------------------------------------------------- */ + +ul.search { + margin: 10px 0 0 20px; + padding: 0; +} + +ul.search li { + padding: 5px 0 5px 20px; + background-image: url(file.png); + background-repeat: no-repeat; + background-position: 0 7px; +} + +ul.search li a { + font-weight: bold; +} + +ul.search li p.context { + color: #888; + margin: 2px 0 0 30px; + text-align: left; +} + +ul.keywordmatches li.goodmatch a { + font-weight: bold; +} + +/* -- index page ------------------------------------------------------------ */ + +table.contentstable { + width: 90%; + margin-left: auto; + margin-right: auto; +} + +table.contentstable p.biglink { + line-height: 150%; +} + +a.biglink { + font-size: 1.3em; +} + +span.linkdescr { + font-style: italic; + padding-top: 5px; + font-size: 90%; +} + +/* -- general index --------------------------------------------------------- */ + +table.indextable { + width: 100%; +} + +table.indextable td { + text-align: left; + vertical-align: top; +} + +table.indextable ul { + margin-top: 0; + margin-bottom: 0; + list-style-type: none; +} + +table.indextable > tbody > tr > td > ul { + padding-left: 0em; +} + +table.indextable tr.pcap { + height: 10px; +} + +table.indextable tr.cap { + margin-top: 10px; + background-color: #f2f2f2; +} + +img.toggler { + margin-right: 3px; + margin-top: 3px; + cursor: pointer; +} + +div.modindex-jumpbox { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + margin: 1em 0 1em 0; + padding: 0.4em; +} + +div.genindex-jumpbox { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + margin: 1em 0 1em 0; + padding: 0.4em; +} + +/* -- domain module index --------------------------------------------------- */ + +table.modindextable td { + padding: 2px; + border-collapse: collapse; +} + +/* -- general body styles --------------------------------------------------- */ + +div.body { + min-width: 360px; + max-width: 800px; +} + +div.body p, div.body dd, div.body li, div.body blockquote { + -moz-hyphens: auto; + -ms-hyphens: auto; + -webkit-hyphens: auto; + hyphens: auto; +} + +a.headerlink { + visibility: hidden; +} + +a:visited { + color: #551A8B; +} + +h1:hover > a.headerlink, +h2:hover > a.headerlink, +h3:hover > a.headerlink, +h4:hover > a.headerlink, +h5:hover > a.headerlink, +h6:hover > a.headerlink, +dt:hover > a.headerlink, +caption:hover > a.headerlink, +p.caption:hover > a.headerlink, +div.code-block-caption:hover > a.headerlink { + visibility: visible; +} + +div.body p.caption { + text-align: inherit; +} + +div.body td { + text-align: left; +} + +.first { + margin-top: 0 !important; +} + +p.rubric { + margin-top: 30px; + font-weight: bold; +} + +img.align-left, figure.align-left, .figure.align-left, object.align-left { + clear: left; + float: left; + margin-right: 1em; +} + +img.align-right, figure.align-right, .figure.align-right, object.align-right { + clear: right; + float: right; + margin-left: 1em; +} + +img.align-center, figure.align-center, .figure.align-center, object.align-center { + display: block; + margin-left: auto; + margin-right: auto; +} + +img.align-default, figure.align-default, .figure.align-default { + display: block; + margin-left: auto; + margin-right: auto; +} + +.align-left { + text-align: left; +} + +.align-center { + text-align: center; +} + +.align-default { + text-align: center; +} + +.align-right { + text-align: right; +} + +/* -- sidebars -------------------------------------------------------------- */ + +div.sidebar, +aside.sidebar { + margin: 0 0 0.5em 1em; + border: 1px solid #ddb; + padding: 7px; + background-color: #ffe; + width: 40%; + float: right; + clear: right; + overflow-x: auto; +} + +p.sidebar-title { + font-weight: bold; +} + +nav.contents, +aside.topic, +div.admonition, div.topic, blockquote { + clear: left; +} + +/* -- topics ---------------------------------------------------------------- */ + +nav.contents, +aside.topic, +div.topic { + border: 1px solid #ccc; + padding: 7px; + margin: 10px 0 10px 0; +} + +p.topic-title { + font-size: 1.1em; + font-weight: bold; + margin-top: 10px; +} + +/* -- admonitions ----------------------------------------------------------- */ + +div.admonition { + margin-top: 10px; + margin-bottom: 10px; + padding: 7px; +} + +div.admonition dt { + font-weight: bold; +} + +p.admonition-title { + margin: 0px 10px 5px 0px; + font-weight: bold; +} + +div.body p.centered { + text-align: center; + margin-top: 25px; +} + +/* -- content of sidebars/topics/admonitions -------------------------------- */ + +div.sidebar > :last-child, +aside.sidebar > :last-child, +nav.contents > :last-child, +aside.topic > :last-child, +div.topic > :last-child, +div.admonition > :last-child { + margin-bottom: 0; +} + +div.sidebar::after, +aside.sidebar::after, +nav.contents::after, +aside.topic::after, +div.topic::after, +div.admonition::after, +blockquote::after { + display: block; + content: ''; + clear: both; +} + +/* -- tables ---------------------------------------------------------------- */ + +table.docutils { + margin-top: 10px; + margin-bottom: 10px; + border: 0; + border-collapse: collapse; +} + +table.align-center { + margin-left: auto; + margin-right: auto; +} + +table.align-default { + margin-left: auto; + margin-right: auto; +} + +table caption span.caption-number { + font-style: italic; +} + +table caption span.caption-text { +} + +table.docutils td, table.docutils th { + padding: 1px 8px 1px 5px; + border-top: 0; + border-left: 0; + border-right: 0; + border-bottom: 1px solid #aaa; +} + +th { + text-align: left; + padding-right: 5px; +} + +table.citation { + border-left: solid 1px gray; + margin-left: 1px; +} + +table.citation td { + border-bottom: none; +} + +th > :first-child, +td > :first-child { + margin-top: 0px; +} + +th > :last-child, +td > :last-child { + margin-bottom: 0px; +} + +/* -- figures --------------------------------------------------------------- */ + +div.figure, figure { + margin: 0.5em; + padding: 0.5em; +} + +div.figure p.caption, figcaption { + padding: 0.3em; +} + +div.figure p.caption span.caption-number, +figcaption span.caption-number { + font-style: italic; +} + +div.figure p.caption span.caption-text, +figcaption span.caption-text { +} + +/* -- field list styles ----------------------------------------------------- */ + +table.field-list td, table.field-list th { + border: 0 !important; +} + +.field-list ul { + margin: 0; + padding-left: 1em; +} + +.field-list p { + margin: 0; +} + +.field-name { + -moz-hyphens: manual; + -ms-hyphens: manual; + -webkit-hyphens: manual; + hyphens: manual; +} + +/* -- hlist styles ---------------------------------------------------------- */ + +table.hlist { + margin: 1em 0; +} + +table.hlist td { + vertical-align: top; +} + +/* -- object description styles --------------------------------------------- */ + +.sig { + font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; +} + +.sig-name, code.descname { + background-color: transparent; + font-weight: bold; +} + +.sig-name { + font-size: 1.1em; +} + +code.descname { + font-size: 1.2em; +} + +.sig-prename, code.descclassname { + background-color: transparent; +} + +.optional { + font-size: 1.3em; +} + +.sig-paren { + font-size: larger; +} + +.sig-param.n { + font-style: italic; +} + +/* C++ specific styling */ + +.sig-inline.c-texpr, +.sig-inline.cpp-texpr { + font-family: unset; +} + +.sig.c .k, .sig.c .kt, +.sig.cpp .k, .sig.cpp .kt { + color: #0033B3; +} + +.sig.c .m, +.sig.cpp .m { + color: #1750EB; +} + +.sig.c .s, .sig.c .sc, +.sig.cpp .s, .sig.cpp .sc { + color: #067D17; +} + + +/* -- other body styles ----------------------------------------------------- */ + +ol.arabic { + list-style: decimal; +} + +ol.loweralpha { + list-style: lower-alpha; +} + +ol.upperalpha { + list-style: upper-alpha; +} + +ol.lowerroman { + list-style: lower-roman; +} + +ol.upperroman { + list-style: upper-roman; +} + +:not(li) > ol > li:first-child > :first-child, +:not(li) > ul > li:first-child > :first-child { + margin-top: 0px; +} + +:not(li) > ol > li:last-child > :last-child, +:not(li) > ul > li:last-child > :last-child { + margin-bottom: 0px; +} + +ol.simple ol p, +ol.simple ul p, +ul.simple ol p, +ul.simple ul p { + margin-top: 0; +} + +ol.simple > li:not(:first-child) > p, +ul.simple > li:not(:first-child) > p { + margin-top: 0; +} + +ol.simple p, +ul.simple p { + margin-bottom: 0; +} + +aside.footnote > span, +div.citation > span { + float: left; +} +aside.footnote > span:last-of-type, +div.citation > span:last-of-type { + padding-right: 0.5em; +} +aside.footnote > p { + margin-left: 2em; +} +div.citation > p { + margin-left: 4em; +} +aside.footnote > p:last-of-type, +div.citation > p:last-of-type { + margin-bottom: 0em; +} +aside.footnote > p:last-of-type:after, +div.citation > p:last-of-type:after { + content: ""; + clear: both; +} + +dl.field-list { + display: grid; + grid-template-columns: fit-content(30%) auto; +} + +dl.field-list > dt { + font-weight: bold; + word-break: break-word; + padding-left: 0.5em; + padding-right: 5px; +} + +dl.field-list > dd { + padding-left: 0.5em; + margin-top: 0em; + margin-left: 0em; + margin-bottom: 0em; +} + +dl { + margin-bottom: 15px; +} + +dd > :first-child { + margin-top: 0px; +} + +dd ul, dd table { + margin-bottom: 10px; +} + +dd { + margin-top: 3px; + margin-bottom: 10px; + margin-left: 30px; +} + +.sig dd { + margin-top: 0px; + margin-bottom: 0px; +} + +.sig dl { + margin-top: 0px; + margin-bottom: 0px; +} + +dl > dd:last-child, +dl > dd:last-child > :last-child { + margin-bottom: 0; +} + +dt:target, span.highlighted { + background-color: #fbe54e; +} + +rect.highlighted { + fill: #fbe54e; +} + +dl.glossary dt { + font-weight: bold; + font-size: 1.1em; +} + +.versionmodified { + font-style: italic; +} + +.system-message { + background-color: #fda; + padding: 5px; + border: 3px solid red; +} + +.footnote:target { + background-color: #ffa; +} + +.line-block { + display: block; + margin-top: 1em; + margin-bottom: 1em; +} + +.line-block .line-block { + margin-top: 0; + margin-bottom: 0; + margin-left: 1.5em; +} + +.guilabel, .menuselection { + font-family: sans-serif; +} + +.accelerator { + text-decoration: underline; +} + +.classifier { + font-style: oblique; +} + +.classifier:before { + font-style: normal; + margin: 0 0.5em; + content: ":"; + display: inline-block; +} + +abbr, acronym { + border-bottom: dotted 1px; + cursor: help; +} + +.translated { + background-color: rgba(207, 255, 207, 0.2) +} + +.untranslated { + background-color: rgba(255, 207, 207, 0.2) +} + +/* -- code displays --------------------------------------------------------- */ + +pre { + overflow: auto; + overflow-y: hidden; /* fixes display issues on Chrome browsers */ +} + +pre, div[class*="highlight-"] { + clear: both; +} + +span.pre { + -moz-hyphens: none; + -ms-hyphens: none; + -webkit-hyphens: none; + hyphens: none; + white-space: nowrap; +} + +div[class*="highlight-"] { + margin: 1em 0; +} + +td.linenos pre { + border: 0; + background-color: transparent; + color: #aaa; +} + +table.highlighttable { + display: block; +} + +table.highlighttable tbody { + display: block; +} + +table.highlighttable tr { + display: flex; +} + +table.highlighttable td { + margin: 0; + padding: 0; +} + +table.highlighttable td.linenos { + padding-right: 0.5em; +} + +table.highlighttable td.code { + flex: 1; + overflow: hidden; +} + +.highlight .hll { + display: block; +} + +div.highlight pre, +table.highlighttable pre { + margin: 0; +} + +div.code-block-caption + div { + margin-top: 0; +} + +div.code-block-caption { + margin-top: 1em; + padding: 2px 5px; + font-size: small; +} + +div.code-block-caption code { + background-color: transparent; +} + +table.highlighttable td.linenos, +span.linenos, +div.highlight span.gp { /* gp: Generic.Prompt */ + user-select: none; + -webkit-user-select: text; /* Safari fallback only */ + -webkit-user-select: none; /* Chrome/Safari */ + -moz-user-select: none; /* Firefox */ + -ms-user-select: none; /* IE10+ */ +} + +div.code-block-caption span.caption-number { + padding: 0.1em 0.3em; + font-style: italic; +} + +div.code-block-caption span.caption-text { +} + +div.literal-block-wrapper { + margin: 1em 0; +} + +code.xref, a code { + background-color: transparent; + font-weight: bold; +} + +h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { + background-color: transparent; +} + +.viewcode-link { + float: right; +} + +.viewcode-back { + float: right; + font-family: sans-serif; +} + +div.viewcode-block:target { + margin: -1px -10px; + padding: 0 10px; +} + +/* -- math display ---------------------------------------------------------- */ + +img.math { + vertical-align: middle; +} + +div.body div.math p { + text-align: center; +} + +span.eqno { + float: right; +} + +span.eqno a.headerlink { + position: absolute; + z-index: 1; +} + +div.math:hover a.headerlink { + visibility: visible; +} + +/* -- printout stylesheet --------------------------------------------------- */ + +@media print { + div.document, + div.documentwrapper, + div.bodywrapper { + margin: 0 !important; + width: 100%; + } + + div.sphinxsidebar, + div.related, + div.footer, + #top-link { + display: none; + } +} \ No newline at end of file diff --git a/_static/check-solid.svg b/_static/check-solid.svg new file mode 100644 index 0000000..92fad4b --- /dev/null +++ b/_static/check-solid.svg @@ -0,0 +1,4 @@ + + + + diff --git a/_static/clipboard.min.js b/_static/clipboard.min.js new file mode 100644 index 0000000..54b3c46 --- /dev/null +++ b/_static/clipboard.min.js @@ -0,0 +1,7 @@ +/*! + * clipboard.js v2.0.8 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return n={686:function(t,e,n){"use strict";n.d(e,{default:function(){return o}});var e=n(279),i=n.n(e),e=n(370),u=n.n(e),e=n(817),c=n.n(e);function a(t){try{return document.execCommand(t)}catch(t){return}}var f=function(t){t=c()(t);return a("cut"),t};var l=function(t){var e,n,o,r=1 + + + + diff --git a/_static/copybutton.css b/_static/copybutton.css new file mode 100644 index 0000000..f1916ec --- /dev/null +++ b/_static/copybutton.css @@ -0,0 +1,94 @@ +/* Copy buttons */ +button.copybtn { + position: absolute; + display: flex; + top: .3em; + right: .3em; + width: 1.7em; + height: 1.7em; + opacity: 0; + transition: opacity 0.3s, border .3s, background-color .3s; + user-select: none; + padding: 0; + border: none; + outline: none; + border-radius: 0.4em; + /* The colors that GitHub uses */ + border: #1b1f2426 1px solid; + background-color: #f6f8fa; + color: #57606a; +} + +button.copybtn.success { + border-color: #22863a; + color: #22863a; +} + +button.copybtn svg { + stroke: currentColor; + width: 1.5em; + height: 1.5em; + padding: 0.1em; +} + +div.highlight { + position: relative; +} + +/* Show the copybutton */ +.highlight:hover button.copybtn, button.copybtn.success { + opacity: 1; +} + +.highlight button.copybtn:hover { + background-color: rgb(235, 235, 235); +} + +.highlight button.copybtn:active { + background-color: rgb(187, 187, 187); +} + +/** + * A minimal CSS-only tooltip copied from: + * https://codepen.io/mildrenben/pen/rVBrpK + * + * To use, write HTML like the following: + * + *

Short

+ */ + .o-tooltip--left { + position: relative; + } + + .o-tooltip--left:after { + opacity: 0; + visibility: hidden; + position: absolute; + content: attr(data-tooltip); + padding: .2em; + font-size: .8em; + left: -.2em; + background: grey; + color: white; + white-space: nowrap; + z-index: 2; + border-radius: 2px; + transform: translateX(-102%) translateY(0); + transition: opacity 0.2s cubic-bezier(0.64, 0.09, 0.08, 1), transform 0.2s cubic-bezier(0.64, 0.09, 0.08, 1); +} + +.o-tooltip--left:hover:after { + display: block; + opacity: 1; + visibility: visible; + transform: translateX(-100%) translateY(0); + transition: opacity 0.2s cubic-bezier(0.64, 0.09, 0.08, 1), transform 0.2s cubic-bezier(0.64, 0.09, 0.08, 1); + transition-delay: .5s; +} + +/* By default the copy button shouldn't show up when printing a page */ +@media print { + button.copybtn { + display: none; + } +} diff --git a/_static/copybutton.js b/_static/copybutton.js new file mode 100644 index 0000000..2ea7ff3 --- /dev/null +++ b/_static/copybutton.js @@ -0,0 +1,248 @@ +// Localization support +const messages = { + 'en': { + 'copy': 'Copy', + 'copy_to_clipboard': 'Copy to clipboard', + 'copy_success': 'Copied!', + 'copy_failure': 'Failed to copy', + }, + 'es' : { + 'copy': 'Copiar', + 'copy_to_clipboard': 'Copiar al portapapeles', + 'copy_success': '¡Copiado!', + 'copy_failure': 'Error al copiar', + }, + 'de' : { + 'copy': 'Kopieren', + 'copy_to_clipboard': 'In die Zwischenablage kopieren', + 'copy_success': 'Kopiert!', + 'copy_failure': 'Fehler beim Kopieren', + }, + 'fr' : { + 'copy': 'Copier', + 'copy_to_clipboard': 'Copier dans le presse-papier', + 'copy_success': 'Copié !', + 'copy_failure': 'Échec de la copie', + }, + 'ru': { + 'copy': 'Скопировать', + 'copy_to_clipboard': 'Скопировать в буфер', + 'copy_success': 'Скопировано!', + 'copy_failure': 'Не удалось скопировать', + }, + 'zh-CN': { + 'copy': '复制', + 'copy_to_clipboard': '复制到剪贴板', + 'copy_success': '复制成功!', + 'copy_failure': '复制失败', + }, + 'it' : { + 'copy': 'Copiare', + 'copy_to_clipboard': 'Copiato negli appunti', + 'copy_success': 'Copiato!', + 'copy_failure': 'Errore durante la copia', + } +} + +let locale = 'en' +if( document.documentElement.lang !== undefined + && messages[document.documentElement.lang] !== undefined ) { + locale = document.documentElement.lang +} + +let doc_url_root = DOCUMENTATION_OPTIONS.URL_ROOT; +if (doc_url_root == '#') { + doc_url_root = ''; +} + +/** + * SVG files for our copy buttons + */ +let iconCheck = ` + ${messages[locale]['copy_success']} + + +` + +// If the user specified their own SVG use that, otherwise use the default +let iconCopy = ``; +if (!iconCopy) { + iconCopy = ` + ${messages[locale]['copy_to_clipboard']} + + + +` +} + +/** + * Set up copy/paste for code blocks + */ + +const runWhenDOMLoaded = cb => { + if (document.readyState != 'loading') { + cb() + } else if (document.addEventListener) { + document.addEventListener('DOMContentLoaded', cb) + } else { + document.attachEvent('onreadystatechange', function() { + if (document.readyState == 'complete') cb() + }) + } +} + +const codeCellId = index => `codecell${index}` + +// Clears selected text since ClipboardJS will select the text when copying +const clearSelection = () => { + if (window.getSelection) { + window.getSelection().removeAllRanges() + } else if (document.selection) { + document.selection.empty() + } +} + +// Changes tooltip text for a moment, then changes it back +// We want the timeout of our `success` class to be a bit shorter than the +// tooltip and icon change, so that we can hide the icon before changing back. +var timeoutIcon = 2000; +var timeoutSuccessClass = 1500; + +const temporarilyChangeTooltip = (el, oldText, newText) => { + el.setAttribute('data-tooltip', newText) + el.classList.add('success') + // Remove success a little bit sooner than we change the tooltip + // So that we can use CSS to hide the copybutton first + setTimeout(() => el.classList.remove('success'), timeoutSuccessClass) + setTimeout(() => el.setAttribute('data-tooltip', oldText), timeoutIcon) +} + +// Changes the copy button icon for two seconds, then changes it back +const temporarilyChangeIcon = (el) => { + el.innerHTML = iconCheck; + setTimeout(() => {el.innerHTML = iconCopy}, timeoutIcon) +} + +const addCopyButtonToCodeCells = () => { + // If ClipboardJS hasn't loaded, wait a bit and try again. This + // happens because we load ClipboardJS asynchronously. + if (window.ClipboardJS === undefined) { + setTimeout(addCopyButtonToCodeCells, 250) + return + } + + // Add copybuttons to all of our code cells + const COPYBUTTON_SELECTOR = 'div.highlight pre'; + const codeCells = document.querySelectorAll(COPYBUTTON_SELECTOR) + codeCells.forEach((codeCell, index) => { + const id = codeCellId(index) + codeCell.setAttribute('id', id) + + const clipboardButton = id => + `` + codeCell.insertAdjacentHTML('afterend', clipboardButton(id)) + }) + +function escapeRegExp(string) { + return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string +} + +/** + * Removes excluded text from a Node. + * + * @param {Node} target Node to filter. + * @param {string} exclude CSS selector of nodes to exclude. + * @returns {DOMString} Text from `target` with text removed. + */ +function filterText(target, exclude) { + const clone = target.cloneNode(true); // clone as to not modify the live DOM + if (exclude) { + // remove excluded nodes + clone.querySelectorAll(exclude).forEach(node => node.remove()); + } + return clone.innerText; +} + +// Callback when a copy button is clicked. Will be passed the node that was clicked +// should then grab the text and replace pieces of text that shouldn't be used in output +function formatCopyText(textContent, copybuttonPromptText, isRegexp = false, onlyCopyPromptLines = true, removePrompts = true, copyEmptyLines = true, lineContinuationChar = "", hereDocDelim = "") { + var regexp; + var match; + + // Do we check for line continuation characters and "HERE-documents"? + var useLineCont = !!lineContinuationChar + var useHereDoc = !!hereDocDelim + + // create regexp to capture prompt and remaining line + if (isRegexp) { + regexp = new RegExp('^(' + copybuttonPromptText + ')(.*)') + } else { + regexp = new RegExp('^(' + escapeRegExp(copybuttonPromptText) + ')(.*)') + } + + const outputLines = []; + var promptFound = false; + var gotLineCont = false; + var gotHereDoc = false; + const lineGotPrompt = []; + for (const line of textContent.split('\n')) { + match = line.match(regexp) + if (match || gotLineCont || gotHereDoc) { + promptFound = regexp.test(line) + lineGotPrompt.push(promptFound) + if (removePrompts && promptFound) { + outputLines.push(match[2]) + } else { + outputLines.push(line) + } + gotLineCont = line.endsWith(lineContinuationChar) & useLineCont + if (line.includes(hereDocDelim) & useHereDoc) + gotHereDoc = !gotHereDoc + } else if (!onlyCopyPromptLines) { + outputLines.push(line) + } else if (copyEmptyLines && line.trim() === '') { + outputLines.push(line) + } + } + + // If no lines with the prompt were found then just use original lines + if (lineGotPrompt.some(v => v === true)) { + textContent = outputLines.join('\n'); + } + + // Remove a trailing newline to avoid auto-running when pasting + if (textContent.endsWith("\n")) { + textContent = textContent.slice(0, -1) + } + return textContent +} + + +var copyTargetText = (trigger) => { + var target = document.querySelector(trigger.attributes['data-clipboard-target'].value); + + // get filtered text + let exclude = '.linenos'; + + let text = filterText(target, exclude); + return formatCopyText(text, '', false, true, true, true, '', '') +} + + // Initialize with a callback so we can modify the text before copy + const clipboard = new ClipboardJS('.copybtn', {text: copyTargetText}) + + // Update UI with error/success messages + clipboard.on('success', event => { + clearSelection() + temporarilyChangeTooltip(event.trigger, messages[locale]['copy'], messages[locale]['copy_success']) + temporarilyChangeIcon(event.trigger) + }) + + clipboard.on('error', event => { + temporarilyChangeTooltip(event.trigger, messages[locale]['copy'], messages[locale]['copy_failure']) + }) +} + +runWhenDOMLoaded(addCopyButtonToCodeCells) \ No newline at end of file diff --git a/_static/copybutton_funcs.js b/_static/copybutton_funcs.js new file mode 100644 index 0000000..dbe1aaa --- /dev/null +++ b/_static/copybutton_funcs.js @@ -0,0 +1,73 @@ +function escapeRegExp(string) { + return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string +} + +/** + * Removes excluded text from a Node. + * + * @param {Node} target Node to filter. + * @param {string} exclude CSS selector of nodes to exclude. + * @returns {DOMString} Text from `target` with text removed. + */ +export function filterText(target, exclude) { + const clone = target.cloneNode(true); // clone as to not modify the live DOM + if (exclude) { + // remove excluded nodes + clone.querySelectorAll(exclude).forEach(node => node.remove()); + } + return clone.innerText; +} + +// Callback when a copy button is clicked. Will be passed the node that was clicked +// should then grab the text and replace pieces of text that shouldn't be used in output +export function formatCopyText(textContent, copybuttonPromptText, isRegexp = false, onlyCopyPromptLines = true, removePrompts = true, copyEmptyLines = true, lineContinuationChar = "", hereDocDelim = "") { + var regexp; + var match; + + // Do we check for line continuation characters and "HERE-documents"? + var useLineCont = !!lineContinuationChar + var useHereDoc = !!hereDocDelim + + // create regexp to capture prompt and remaining line + if (isRegexp) { + regexp = new RegExp('^(' + copybuttonPromptText + ')(.*)') + } else { + regexp = new RegExp('^(' + escapeRegExp(copybuttonPromptText) + ')(.*)') + } + + const outputLines = []; + var promptFound = false; + var gotLineCont = false; + var gotHereDoc = false; + const lineGotPrompt = []; + for (const line of textContent.split('\n')) { + match = line.match(regexp) + if (match || gotLineCont || gotHereDoc) { + promptFound = regexp.test(line) + lineGotPrompt.push(promptFound) + if (removePrompts && promptFound) { + outputLines.push(match[2]) + } else { + outputLines.push(line) + } + gotLineCont = line.endsWith(lineContinuationChar) & useLineCont + if (line.includes(hereDocDelim) & useHereDoc) + gotHereDoc = !gotHereDoc + } else if (!onlyCopyPromptLines) { + outputLines.push(line) + } else if (copyEmptyLines && line.trim() === '') { + outputLines.push(line) + } + } + + // If no lines with the prompt were found then just use original lines + if (lineGotPrompt.some(v => v === true)) { + textContent = outputLines.join('\n'); + } + + // Remove a trailing newline to avoid auto-running when pasting + if (textContent.endsWith("\n")) { + textContent = textContent.slice(0, -1) + } + return textContent +} diff --git a/_static/css/badge_only.css b/_static/css/badge_only.css new file mode 100644 index 0000000..c718cee --- /dev/null +++ b/_static/css/badge_only.css @@ -0,0 +1 @@ +.clearfix{*zoom:1}.clearfix:after,.clearfix:before{display:table;content:""}.clearfix:after{clear:both}@font-face{font-family:FontAwesome;font-style:normal;font-weight:400;src:url(fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713?#iefix) format("embedded-opentype"),url(fonts/fontawesome-webfont.woff2?af7ae505a9eed503f8b8e6982036873e) format("woff2"),url(fonts/fontawesome-webfont.woff?fee66e712a8a08eef5805a46892932ad) format("woff"),url(fonts/fontawesome-webfont.ttf?b06871f281fee6b241d60582ae9369b9) format("truetype"),url(fonts/fontawesome-webfont.svg?912ec66d7572ff821749319396470bde#FontAwesome) format("svg")}.fa:before{font-family:FontAwesome;font-style:normal;font-weight:400;line-height:1}.fa:before,a .fa{text-decoration:inherit}.fa:before,a .fa,li .fa{display:inline-block}li .fa-large:before{width:1.875em}ul.fas{list-style-type:none;margin-left:2em;text-indent:-.8em}ul.fas li .fa{width:.8em}ul.fas li .fa-large:before{vertical-align:baseline}.fa-book:before,.icon-book:before{content:"\f02d"}.fa-caret-down:before,.icon-caret-down:before{content:"\f0d7"}.fa-caret-up:before,.icon-caret-up:before{content:"\f0d8"}.fa-caret-left:before,.icon-caret-left:before{content:"\f0d9"}.fa-caret-right:before,.icon-caret-right:before{content:"\f0da"}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;z-index:400}.rst-versions a{color:#2980b9;text-decoration:none}.rst-versions .rst-badge-small{display:none}.rst-versions .rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27ae60}.rst-versions .rst-current-version:after{clear:both;content:"";display:block}.rst-versions .rst-current-version .fa{color:#fcfcfc}.rst-versions .rst-current-version .fa-book,.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version.rst-out-of-date{background-color:#e74c3c;color:#fff}.rst-versions .rst-current-version.rst-active-old-version{background-color:#f1c40f;color:#000}.rst-versions.shift-up{height:auto;max-height:100%;overflow-y:scroll}.rst-versions.shift-up .rst-other-versions{display:block}.rst-versions .rst-other-versions{font-size:90%;padding:12px;color:grey;display:none}.rst-versions .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 0;padding:0;border-top:1px solid #413d3d}.rst-versions .rst-other-versions dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px;max-height:90%}.rst-versions.rst-badge .fa-book,.rst-versions.rst-badge .icon-book{float:none;line-height:30px}.rst-versions.rst-badge.shift-up .rst-current-version{text-align:right}.rst-versions.rst-badge.shift-up .rst-current-version .fa-book,.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge>.rst-current-version{width:auto;height:30px;line-height:30px;padding:0 6px;display:block;text-align:center}@media screen and (max-width:768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}} \ No newline at end of file diff --git a/_static/css/fonts/Roboto-Slab-Bold.woff b/_static/css/fonts/Roboto-Slab-Bold.woff new file mode 100644 index 0000000..6cb6000 Binary files /dev/null and b/_static/css/fonts/Roboto-Slab-Bold.woff differ diff --git a/_static/css/fonts/Roboto-Slab-Bold.woff2 b/_static/css/fonts/Roboto-Slab-Bold.woff2 new file mode 100644 index 0000000..7059e23 Binary files /dev/null and b/_static/css/fonts/Roboto-Slab-Bold.woff2 differ diff --git a/_static/css/fonts/Roboto-Slab-Regular.woff b/_static/css/fonts/Roboto-Slab-Regular.woff new file mode 100644 index 0000000..f815f63 Binary files /dev/null and b/_static/css/fonts/Roboto-Slab-Regular.woff differ diff --git a/_static/css/fonts/Roboto-Slab-Regular.woff2 b/_static/css/fonts/Roboto-Slab-Regular.woff2 new file mode 100644 index 0000000..f2c76e5 Binary files /dev/null and b/_static/css/fonts/Roboto-Slab-Regular.woff2 differ diff --git a/_static/css/fonts/fontawesome-webfont.eot b/_static/css/fonts/fontawesome-webfont.eot new file mode 100644 index 0000000..e9f60ca Binary files /dev/null and b/_static/css/fonts/fontawesome-webfont.eot differ diff --git a/_static/css/fonts/fontawesome-webfont.svg b/_static/css/fonts/fontawesome-webfont.svg new file mode 100644 index 0000000..855c845 --- /dev/null +++ b/_static/css/fonts/fontawesome-webfont.svg @@ -0,0 +1,2671 @@ + + + + +Created by FontForge 20120731 at Mon Oct 24 17:37:40 2016 + By ,,, +Copyright Dave Gandy 2016. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/_static/css/fonts/fontawesome-webfont.ttf b/_static/css/fonts/fontawesome-webfont.ttf new file mode 100644 index 0000000..35acda2 Binary files /dev/null and b/_static/css/fonts/fontawesome-webfont.ttf differ diff --git a/_static/css/fonts/fontawesome-webfont.woff b/_static/css/fonts/fontawesome-webfont.woff new file mode 100644 index 0000000..400014a Binary files /dev/null and b/_static/css/fonts/fontawesome-webfont.woff differ diff --git a/_static/css/fonts/fontawesome-webfont.woff2 b/_static/css/fonts/fontawesome-webfont.woff2 new file mode 100644 index 0000000..4d13fc6 Binary files /dev/null and b/_static/css/fonts/fontawesome-webfont.woff2 differ diff --git a/_static/css/fonts/lato-bold-italic.woff b/_static/css/fonts/lato-bold-italic.woff new file mode 100644 index 0000000..88ad05b Binary files /dev/null and b/_static/css/fonts/lato-bold-italic.woff differ diff --git a/_static/css/fonts/lato-bold-italic.woff2 b/_static/css/fonts/lato-bold-italic.woff2 new file mode 100644 index 0000000..c4e3d80 Binary files /dev/null and b/_static/css/fonts/lato-bold-italic.woff2 differ diff --git a/_static/css/fonts/lato-bold.woff b/_static/css/fonts/lato-bold.woff new file mode 100644 index 0000000..c6dff51 Binary files /dev/null and b/_static/css/fonts/lato-bold.woff differ diff --git a/_static/css/fonts/lato-bold.woff2 b/_static/css/fonts/lato-bold.woff2 new file mode 100644 index 0000000..bb19504 Binary files /dev/null and b/_static/css/fonts/lato-bold.woff2 differ diff --git a/_static/css/fonts/lato-normal-italic.woff b/_static/css/fonts/lato-normal-italic.woff new file mode 100644 index 0000000..76114bc Binary files /dev/null and b/_static/css/fonts/lato-normal-italic.woff differ diff --git a/_static/css/fonts/lato-normal-italic.woff2 b/_static/css/fonts/lato-normal-italic.woff2 new file mode 100644 index 0000000..3404f37 Binary files /dev/null and b/_static/css/fonts/lato-normal-italic.woff2 differ diff --git a/_static/css/fonts/lato-normal.woff b/_static/css/fonts/lato-normal.woff new file mode 100644 index 0000000..ae1307f Binary files /dev/null and b/_static/css/fonts/lato-normal.woff differ diff --git a/_static/css/fonts/lato-normal.woff2 b/_static/css/fonts/lato-normal.woff2 new file mode 100644 index 0000000..3bf9843 Binary files /dev/null and b/_static/css/fonts/lato-normal.woff2 differ diff --git a/_static/css/theme.css b/_static/css/theme.css new file mode 100644 index 0000000..19a446a --- /dev/null +++ b/_static/css/theme.css @@ -0,0 +1,4 @@ +html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden],audio:not([controls]){display:none}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}blockquote{margin:0}dfn{font-style:italic}ins{background:#ff9;text-decoration:none}ins,mark{color:#000}mark{background:#ff0;font-style:italic;font-weight:700}.rst-content code,.rst-content tt,code,kbd,pre,samp{font-family:monospace,serif;_font-family:courier new,monospace;font-size:1em}pre{white-space:pre}q{quotes:none}q:after,q:before{content:"";content:none}small{font-size:85%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}dl,ol,ul{margin:0;padding:0;list-style:none;list-style-image:none}li{list-style:none}dd{margin:0}img{border:0;-ms-interpolation-mode:bicubic;vertical-align:middle;max-width:100%}svg:not(:root){overflow:hidden}figure,form{margin:0}label{cursor:pointer}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}button,input{line-height:normal}button,input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button;*overflow:visible}button[disabled],input[disabled]{cursor:default}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}textarea{resize:vertical}table{border-collapse:collapse;border-spacing:0}td{vertical-align:top}.chromeframe{margin:.2em 0;background:#ccc;color:#000;padding:.2em 0}.ir{display:block;border:0;text-indent:-999em;overflow:hidden;background-color:transparent;background-repeat:no-repeat;text-align:left;direction:ltr;*line-height:0}.ir br{display:none}.hidden{display:none!important;visibility:hidden}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.invisible{visibility:hidden}.relative{position:relative}big,small{font-size:100%}@media print{body,html,section{background:none!important}*{box-shadow:none!important;text-shadow:none!important;filter:none!important;-ms-filter:none!important}a,a:visited{text-decoration:underline}.ir a:after,a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}@page{margin:.5cm}.rst-content .toctree-wrapper>p.caption,h2,h3,p{orphans:3;widows:3}.rst-content .toctree-wrapper>p.caption,h2,h3{page-break-after:avoid}}.btn,.fa:before,.icon:before,.rst-content .admonition,.rst-content .admonition-title:before,.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .code-block-caption .headerlink:before,.rst-content .danger,.rst-content .eqno .headerlink:before,.rst-content .error,.rst-content .hint,.rst-content .important,.rst-content .note,.rst-content .seealso,.rst-content .tip,.rst-content .warning,.rst-content code.download span:first-child:before,.rst-content dl dt .headerlink:before,.rst-content h1 .headerlink:before,.rst-content h2 .headerlink:before,.rst-content h3 .headerlink:before,.rst-content h4 .headerlink:before,.rst-content h5 .headerlink:before,.rst-content h6 .headerlink:before,.rst-content p.caption .headerlink:before,.rst-content p .headerlink:before,.rst-content table>caption .headerlink:before,.rst-content tt.download span:first-child:before,.wy-alert,.wy-dropdown .caret:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before,.wy-menu-vertical li.current>a button.toctree-expand:before,.wy-menu-vertical li.on a button.toctree-expand:before,.wy-menu-vertical li button.toctree-expand:before,input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,textarea{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:after,.clearfix:before{display:table;content:""}.clearfix:after{clear:both}/*! + * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome + * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) + */@font-face{font-family:FontAwesome;src:url(fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713);src:url(fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713?#iefix&v=4.7.0) format("embedded-opentype"),url(fonts/fontawesome-webfont.woff2?af7ae505a9eed503f8b8e6982036873e) format("woff2"),url(fonts/fontawesome-webfont.woff?fee66e712a8a08eef5805a46892932ad) format("woff"),url(fonts/fontawesome-webfont.ttf?b06871f281fee6b241d60582ae9369b9) format("truetype"),url(fonts/fontawesome-webfont.svg?912ec66d7572ff821749319396470bde#fontawesomeregular) format("svg");font-weight:400;font-style:normal}.fa,.icon,.rst-content .admonition-title,.rst-content .code-block-caption .headerlink,.rst-content .eqno .headerlink,.rst-content code.download span:first-child,.rst-content dl dt .headerlink,.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content p.caption .headerlink,.rst-content p .headerlink,.rst-content table>caption .headerlink,.rst-content tt.download span:first-child,.wy-menu-vertical li.current>a button.toctree-expand,.wy-menu-vertical li.on a button.toctree-expand,.wy-menu-vertical li button.toctree-expand{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14286em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14286em;width:2.14286em;top:.14286em;text-align:center}.fa-li.fa-lg{left:-1.85714em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa-pull-left.icon,.fa.fa-pull-left,.rst-content .code-block-caption .fa-pull-left.headerlink,.rst-content .eqno .fa-pull-left.headerlink,.rst-content .fa-pull-left.admonition-title,.rst-content code.download span.fa-pull-left:first-child,.rst-content dl dt .fa-pull-left.headerlink,.rst-content h1 .fa-pull-left.headerlink,.rst-content h2 .fa-pull-left.headerlink,.rst-content h3 .fa-pull-left.headerlink,.rst-content h4 .fa-pull-left.headerlink,.rst-content h5 .fa-pull-left.headerlink,.rst-content h6 .fa-pull-left.headerlink,.rst-content p .fa-pull-left.headerlink,.rst-content table>caption .fa-pull-left.headerlink,.rst-content tt.download span.fa-pull-left:first-child,.wy-menu-vertical li.current>a button.fa-pull-left.toctree-expand,.wy-menu-vertical li.on a button.fa-pull-left.toctree-expand,.wy-menu-vertical li button.fa-pull-left.toctree-expand{margin-right:.3em}.fa-pull-right.icon,.fa.fa-pull-right,.rst-content .code-block-caption .fa-pull-right.headerlink,.rst-content .eqno .fa-pull-right.headerlink,.rst-content .fa-pull-right.admonition-title,.rst-content code.download span.fa-pull-right:first-child,.rst-content dl dt .fa-pull-right.headerlink,.rst-content h1 .fa-pull-right.headerlink,.rst-content h2 .fa-pull-right.headerlink,.rst-content h3 .fa-pull-right.headerlink,.rst-content h4 .fa-pull-right.headerlink,.rst-content h5 .fa-pull-right.headerlink,.rst-content h6 .fa-pull-right.headerlink,.rst-content p .fa-pull-right.headerlink,.rst-content table>caption .fa-pull-right.headerlink,.rst-content tt.download span.fa-pull-right:first-child,.wy-menu-vertical li.current>a button.fa-pull-right.toctree-expand,.wy-menu-vertical li.on a button.fa-pull-right.toctree-expand,.wy-menu-vertical li button.fa-pull-right.toctree-expand{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left,.pull-left.icon,.rst-content .code-block-caption .pull-left.headerlink,.rst-content .eqno .pull-left.headerlink,.rst-content .pull-left.admonition-title,.rst-content code.download span.pull-left:first-child,.rst-content dl dt .pull-left.headerlink,.rst-content h1 .pull-left.headerlink,.rst-content h2 .pull-left.headerlink,.rst-content h3 .pull-left.headerlink,.rst-content h4 .pull-left.headerlink,.rst-content h5 .pull-left.headerlink,.rst-content h6 .pull-left.headerlink,.rst-content p .pull-left.headerlink,.rst-content table>caption .pull-left.headerlink,.rst-content tt.download span.pull-left:first-child,.wy-menu-vertical li.current>a button.pull-left.toctree-expand,.wy-menu-vertical li.on a button.pull-left.toctree-expand,.wy-menu-vertical li button.pull-left.toctree-expand{margin-right:.3em}.fa.pull-right,.pull-right.icon,.rst-content .code-block-caption .pull-right.headerlink,.rst-content .eqno .pull-right.headerlink,.rst-content .pull-right.admonition-title,.rst-content code.download span.pull-right:first-child,.rst-content dl dt .pull-right.headerlink,.rst-content h1 .pull-right.headerlink,.rst-content h2 .pull-right.headerlink,.rst-content h3 .pull-right.headerlink,.rst-content h4 .pull-right.headerlink,.rst-content h5 .pull-right.headerlink,.rst-content h6 .pull-right.headerlink,.rst-content p .pull-right.headerlink,.rst-content table>caption .pull-right.headerlink,.rst-content tt.download span.pull-right:first-child,.wy-menu-vertical li.current>a button.pull-right.toctree-expand,.wy-menu-vertical li.on a button.pull-right.toctree-expand,.wy-menu-vertical li button.pull-right.toctree-expand{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scaleY(-1);-ms-transform:scaleY(-1);transform:scaleY(-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:""}.fa-music:before{content:""}.fa-search:before,.icon-search:before{content:""}.fa-envelope-o:before{content:""}.fa-heart:before{content:""}.fa-star:before{content:""}.fa-star-o:before{content:""}.fa-user:before{content:""}.fa-film:before{content:""}.fa-th-large:before{content:""}.fa-th:before{content:""}.fa-th-list:before{content:""}.fa-check:before{content:""}.fa-close:before,.fa-remove:before,.fa-times:before{content:""}.fa-search-plus:before{content:""}.fa-search-minus:before{content:""}.fa-power-off:before{content:""}.fa-signal:before{content:""}.fa-cog:before,.fa-gear:before{content:""}.fa-trash-o:before{content:""}.fa-home:before,.icon-home:before{content:""}.fa-file-o:before{content:""}.fa-clock-o:before{content:""}.fa-road:before{content:""}.fa-download:before,.rst-content code.download span:first-child:before,.rst-content tt.download span:first-child:before{content:""}.fa-arrow-circle-o-down:before{content:""}.fa-arrow-circle-o-up:before{content:""}.fa-inbox:before{content:""}.fa-play-circle-o:before{content:""}.fa-repeat:before,.fa-rotate-right:before{content:""}.fa-refresh:before{content:""}.fa-list-alt:before{content:""}.fa-lock:before{content:""}.fa-flag:before{content:""}.fa-headphones:before{content:""}.fa-volume-off:before{content:""}.fa-volume-down:before{content:""}.fa-volume-up:before{content:""}.fa-qrcode:before{content:""}.fa-barcode:before{content:""}.fa-tag:before{content:""}.fa-tags:before{content:""}.fa-book:before,.icon-book:before{content:""}.fa-bookmark:before{content:""}.fa-print:before{content:""}.fa-camera:before{content:""}.fa-font:before{content:""}.fa-bold:before{content:""}.fa-italic:before{content:""}.fa-text-height:before{content:""}.fa-text-width:before{content:""}.fa-align-left:before{content:""}.fa-align-center:before{content:""}.fa-align-right:before{content:""}.fa-align-justify:before{content:""}.fa-list:before{content:""}.fa-dedent:before,.fa-outdent:before{content:""}.fa-indent:before{content:""}.fa-video-camera:before{content:""}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:""}.fa-pencil:before{content:""}.fa-map-marker:before{content:""}.fa-adjust:before{content:""}.fa-tint:before{content:""}.fa-edit:before,.fa-pencil-square-o:before{content:""}.fa-share-square-o:before{content:""}.fa-check-square-o:before{content:""}.fa-arrows:before{content:""}.fa-step-backward:before{content:""}.fa-fast-backward:before{content:""}.fa-backward:before{content:""}.fa-play:before{content:""}.fa-pause:before{content:""}.fa-stop:before{content:""}.fa-forward:before{content:""}.fa-fast-forward:before{content:""}.fa-step-forward:before{content:""}.fa-eject:before{content:""}.fa-chevron-left:before{content:""}.fa-chevron-right:before{content:""}.fa-plus-circle:before{content:""}.fa-minus-circle:before{content:""}.fa-times-circle:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before{content:""}.fa-check-circle:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before{content:""}.fa-question-circle:before{content:""}.fa-info-circle:before{content:""}.fa-crosshairs:before{content:""}.fa-times-circle-o:before{content:""}.fa-check-circle-o:before{content:""}.fa-ban:before{content:""}.fa-arrow-left:before{content:""}.fa-arrow-right:before{content:""}.fa-arrow-up:before{content:""}.fa-arrow-down:before{content:""}.fa-mail-forward:before,.fa-share:before{content:""}.fa-expand:before{content:""}.fa-compress:before{content:""}.fa-plus:before{content:""}.fa-minus:before{content:""}.fa-asterisk:before{content:""}.fa-exclamation-circle:before,.rst-content .admonition-title:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before{content:""}.fa-gift:before{content:""}.fa-leaf:before{content:""}.fa-fire:before,.icon-fire:before{content:""}.fa-eye:before{content:""}.fa-eye-slash:before{content:""}.fa-exclamation-triangle:before,.fa-warning:before{content:""}.fa-plane:before{content:""}.fa-calendar:before{content:""}.fa-random:before{content:""}.fa-comment:before{content:""}.fa-magnet:before{content:""}.fa-chevron-up:before{content:""}.fa-chevron-down:before{content:""}.fa-retweet:before{content:""}.fa-shopping-cart:before{content:""}.fa-folder:before{content:""}.fa-folder-open:before{content:""}.fa-arrows-v:before{content:""}.fa-arrows-h:before{content:""}.fa-bar-chart-o:before,.fa-bar-chart:before{content:""}.fa-twitter-square:before{content:""}.fa-facebook-square:before{content:""}.fa-camera-retro:before{content:""}.fa-key:before{content:""}.fa-cogs:before,.fa-gears:before{content:""}.fa-comments:before{content:""}.fa-thumbs-o-up:before{content:""}.fa-thumbs-o-down:before{content:""}.fa-star-half:before{content:""}.fa-heart-o:before{content:""}.fa-sign-out:before{content:""}.fa-linkedin-square:before{content:""}.fa-thumb-tack:before{content:""}.fa-external-link:before{content:""}.fa-sign-in:before{content:""}.fa-trophy:before{content:""}.fa-github-square:before{content:""}.fa-upload:before{content:""}.fa-lemon-o:before{content:""}.fa-phone:before{content:""}.fa-square-o:before{content:""}.fa-bookmark-o:before{content:""}.fa-phone-square:before{content:""}.fa-twitter:before{content:""}.fa-facebook-f:before,.fa-facebook:before{content:""}.fa-github:before,.icon-github:before{content:""}.fa-unlock:before{content:""}.fa-credit-card:before{content:""}.fa-feed:before,.fa-rss:before{content:""}.fa-hdd-o:before{content:""}.fa-bullhorn:before{content:""}.fa-bell:before{content:""}.fa-certificate:before{content:""}.fa-hand-o-right:before{content:""}.fa-hand-o-left:before{content:""}.fa-hand-o-up:before{content:""}.fa-hand-o-down:before{content:""}.fa-arrow-circle-left:before,.icon-circle-arrow-left:before{content:""}.fa-arrow-circle-right:before,.icon-circle-arrow-right:before{content:""}.fa-arrow-circle-up:before{content:""}.fa-arrow-circle-down:before{content:""}.fa-globe:before{content:""}.fa-wrench:before{content:""}.fa-tasks:before{content:""}.fa-filter:before{content:""}.fa-briefcase:before{content:""}.fa-arrows-alt:before{content:""}.fa-group:before,.fa-users:before{content:""}.fa-chain:before,.fa-link:before,.icon-link:before{content:""}.fa-cloud:before{content:""}.fa-flask:before{content:""}.fa-cut:before,.fa-scissors:before{content:""}.fa-copy:before,.fa-files-o:before{content:""}.fa-paperclip:before{content:""}.fa-floppy-o:before,.fa-save:before{content:""}.fa-square:before{content:""}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:""}.fa-list-ul:before{content:""}.fa-list-ol:before{content:""}.fa-strikethrough:before{content:""}.fa-underline:before{content:""}.fa-table:before{content:""}.fa-magic:before{content:""}.fa-truck:before{content:""}.fa-pinterest:before{content:""}.fa-pinterest-square:before{content:""}.fa-google-plus-square:before{content:""}.fa-google-plus:before{content:""}.fa-money:before{content:""}.fa-caret-down:before,.icon-caret-down:before,.wy-dropdown .caret:before{content:""}.fa-caret-up:before{content:""}.fa-caret-left:before{content:""}.fa-caret-right:before{content:""}.fa-columns:before{content:""}.fa-sort:before,.fa-unsorted:before{content:""}.fa-sort-desc:before,.fa-sort-down:before{content:""}.fa-sort-asc:before,.fa-sort-up:before{content:""}.fa-envelope:before{content:""}.fa-linkedin:before{content:""}.fa-rotate-left:before,.fa-undo:before{content:""}.fa-gavel:before,.fa-legal:before{content:""}.fa-dashboard:before,.fa-tachometer:before{content:""}.fa-comment-o:before{content:""}.fa-comments-o:before{content:""}.fa-bolt:before,.fa-flash:before{content:""}.fa-sitemap:before{content:""}.fa-umbrella:before{content:""}.fa-clipboard:before,.fa-paste:before{content:""}.fa-lightbulb-o:before{content:""}.fa-exchange:before{content:""}.fa-cloud-download:before{content:""}.fa-cloud-upload:before{content:""}.fa-user-md:before{content:""}.fa-stethoscope:before{content:""}.fa-suitcase:before{content:""}.fa-bell-o:before{content:""}.fa-coffee:before{content:""}.fa-cutlery:before{content:""}.fa-file-text-o:before{content:""}.fa-building-o:before{content:""}.fa-hospital-o:before{content:""}.fa-ambulance:before{content:""}.fa-medkit:before{content:""}.fa-fighter-jet:before{content:""}.fa-beer:before{content:""}.fa-h-square:before{content:""}.fa-plus-square:before{content:""}.fa-angle-double-left:before{content:""}.fa-angle-double-right:before{content:""}.fa-angle-double-up:before{content:""}.fa-angle-double-down:before{content:""}.fa-angle-left:before{content:""}.fa-angle-right:before{content:""}.fa-angle-up:before{content:""}.fa-angle-down:before{content:""}.fa-desktop:before{content:""}.fa-laptop:before{content:""}.fa-tablet:before{content:""}.fa-mobile-phone:before,.fa-mobile:before{content:""}.fa-circle-o:before{content:""}.fa-quote-left:before{content:""}.fa-quote-right:before{content:""}.fa-spinner:before{content:""}.fa-circle:before{content:""}.fa-mail-reply:before,.fa-reply:before{content:""}.fa-github-alt:before{content:""}.fa-folder-o:before{content:""}.fa-folder-open-o:before{content:""}.fa-smile-o:before{content:""}.fa-frown-o:before{content:""}.fa-meh-o:before{content:""}.fa-gamepad:before{content:""}.fa-keyboard-o:before{content:""}.fa-flag-o:before{content:""}.fa-flag-checkered:before{content:""}.fa-terminal:before{content:""}.fa-code:before{content:""}.fa-mail-reply-all:before,.fa-reply-all:before{content:""}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:""}.fa-location-arrow:before{content:""}.fa-crop:before{content:""}.fa-code-fork:before{content:""}.fa-chain-broken:before,.fa-unlink:before{content:""}.fa-question:before{content:""}.fa-info:before{content:""}.fa-exclamation:before{content:""}.fa-superscript:before{content:""}.fa-subscript:before{content:""}.fa-eraser:before{content:""}.fa-puzzle-piece:before{content:""}.fa-microphone:before{content:""}.fa-microphone-slash:before{content:""}.fa-shield:before{content:""}.fa-calendar-o:before{content:""}.fa-fire-extinguisher:before{content:""}.fa-rocket:before{content:""}.fa-maxcdn:before{content:""}.fa-chevron-circle-left:before{content:""}.fa-chevron-circle-right:before{content:""}.fa-chevron-circle-up:before{content:""}.fa-chevron-circle-down:before{content:""}.fa-html5:before{content:""}.fa-css3:before{content:""}.fa-anchor:before{content:""}.fa-unlock-alt:before{content:""}.fa-bullseye:before{content:""}.fa-ellipsis-h:before{content:""}.fa-ellipsis-v:before{content:""}.fa-rss-square:before{content:""}.fa-play-circle:before{content:""}.fa-ticket:before{content:""}.fa-minus-square:before{content:""}.fa-minus-square-o:before,.wy-menu-vertical li.current>a button.toctree-expand:before,.wy-menu-vertical li.on a button.toctree-expand:before{content:""}.fa-level-up:before{content:""}.fa-level-down:before{content:""}.fa-check-square:before{content:""}.fa-pencil-square:before{content:""}.fa-external-link-square:before{content:""}.fa-share-square:before{content:""}.fa-compass:before{content:""}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:""}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:""}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:""}.fa-eur:before,.fa-euro:before{content:""}.fa-gbp:before{content:""}.fa-dollar:before,.fa-usd:before{content:""}.fa-inr:before,.fa-rupee:before{content:""}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:""}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:""}.fa-krw:before,.fa-won:before{content:""}.fa-bitcoin:before,.fa-btc:before{content:""}.fa-file:before{content:""}.fa-file-text:before{content:""}.fa-sort-alpha-asc:before{content:""}.fa-sort-alpha-desc:before{content:""}.fa-sort-amount-asc:before{content:""}.fa-sort-amount-desc:before{content:""}.fa-sort-numeric-asc:before{content:""}.fa-sort-numeric-desc:before{content:""}.fa-thumbs-up:before{content:""}.fa-thumbs-down:before{content:""}.fa-youtube-square:before{content:""}.fa-youtube:before{content:""}.fa-xing:before{content:""}.fa-xing-square:before{content:""}.fa-youtube-play:before{content:""}.fa-dropbox:before{content:""}.fa-stack-overflow:before{content:""}.fa-instagram:before{content:""}.fa-flickr:before{content:""}.fa-adn:before{content:""}.fa-bitbucket:before,.icon-bitbucket:before{content:""}.fa-bitbucket-square:before{content:""}.fa-tumblr:before{content:""}.fa-tumblr-square:before{content:""}.fa-long-arrow-down:before{content:""}.fa-long-arrow-up:before{content:""}.fa-long-arrow-left:before{content:""}.fa-long-arrow-right:before{content:""}.fa-apple:before{content:""}.fa-windows:before{content:""}.fa-android:before{content:""}.fa-linux:before{content:""}.fa-dribbble:before{content:""}.fa-skype:before{content:""}.fa-foursquare:before{content:""}.fa-trello:before{content:""}.fa-female:before{content:""}.fa-male:before{content:""}.fa-gittip:before,.fa-gratipay:before{content:""}.fa-sun-o:before{content:""}.fa-moon-o:before{content:""}.fa-archive:before{content:""}.fa-bug:before{content:""}.fa-vk:before{content:""}.fa-weibo:before{content:""}.fa-renren:before{content:""}.fa-pagelines:before{content:""}.fa-stack-exchange:before{content:""}.fa-arrow-circle-o-right:before{content:""}.fa-arrow-circle-o-left:before{content:""}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:""}.fa-dot-circle-o:before{content:""}.fa-wheelchair:before{content:""}.fa-vimeo-square:before{content:""}.fa-try:before,.fa-turkish-lira:before{content:""}.fa-plus-square-o:before,.wy-menu-vertical li button.toctree-expand:before{content:""}.fa-space-shuttle:before{content:""}.fa-slack:before{content:""}.fa-envelope-square:before{content:""}.fa-wordpress:before{content:""}.fa-openid:before{content:""}.fa-bank:before,.fa-institution:before,.fa-university:before{content:""}.fa-graduation-cap:before,.fa-mortar-board:before{content:""}.fa-yahoo:before{content:""}.fa-google:before{content:""}.fa-reddit:before{content:""}.fa-reddit-square:before{content:""}.fa-stumbleupon-circle:before{content:""}.fa-stumbleupon:before{content:""}.fa-delicious:before{content:""}.fa-digg:before{content:""}.fa-pied-piper-pp:before{content:""}.fa-pied-piper-alt:before{content:""}.fa-drupal:before{content:""}.fa-joomla:before{content:""}.fa-language:before{content:""}.fa-fax:before{content:""}.fa-building:before{content:""}.fa-child:before{content:""}.fa-paw:before{content:""}.fa-spoon:before{content:""}.fa-cube:before{content:""}.fa-cubes:before{content:""}.fa-behance:before{content:""}.fa-behance-square:before{content:""}.fa-steam:before{content:""}.fa-steam-square:before{content:""}.fa-recycle:before{content:""}.fa-automobile:before,.fa-car:before{content:""}.fa-cab:before,.fa-taxi:before{content:""}.fa-tree:before{content:""}.fa-spotify:before{content:""}.fa-deviantart:before{content:""}.fa-soundcloud:before{content:""}.fa-database:before{content:""}.fa-file-pdf-o:before{content:""}.fa-file-word-o:before{content:""}.fa-file-excel-o:before{content:""}.fa-file-powerpoint-o:before{content:""}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:""}.fa-file-archive-o:before,.fa-file-zip-o:before{content:""}.fa-file-audio-o:before,.fa-file-sound-o:before{content:""}.fa-file-movie-o:before,.fa-file-video-o:before{content:""}.fa-file-code-o:before{content:""}.fa-vine:before{content:""}.fa-codepen:before{content:""}.fa-jsfiddle:before{content:""}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:""}.fa-circle-o-notch:before{content:""}.fa-ra:before,.fa-rebel:before,.fa-resistance:before{content:""}.fa-empire:before,.fa-ge:before{content:""}.fa-git-square:before{content:""}.fa-git:before{content:""}.fa-hacker-news:before,.fa-y-combinator-square:before,.fa-yc-square:before{content:""}.fa-tencent-weibo:before{content:""}.fa-qq:before{content:""}.fa-wechat:before,.fa-weixin:before{content:""}.fa-paper-plane:before,.fa-send:before{content:""}.fa-paper-plane-o:before,.fa-send-o:before{content:""}.fa-history:before{content:""}.fa-circle-thin:before{content:""}.fa-header:before{content:""}.fa-paragraph:before{content:""}.fa-sliders:before{content:""}.fa-share-alt:before{content:""}.fa-share-alt-square:before{content:""}.fa-bomb:before{content:""}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:""}.fa-tty:before{content:""}.fa-binoculars:before{content:""}.fa-plug:before{content:""}.fa-slideshare:before{content:""}.fa-twitch:before{content:""}.fa-yelp:before{content:""}.fa-newspaper-o:before{content:""}.fa-wifi:before{content:""}.fa-calculator:before{content:""}.fa-paypal:before{content:""}.fa-google-wallet:before{content:""}.fa-cc-visa:before{content:""}.fa-cc-mastercard:before{content:""}.fa-cc-discover:before{content:""}.fa-cc-amex:before{content:""}.fa-cc-paypal:before{content:""}.fa-cc-stripe:before{content:""}.fa-bell-slash:before{content:""}.fa-bell-slash-o:before{content:""}.fa-trash:before{content:""}.fa-copyright:before{content:""}.fa-at:before{content:""}.fa-eyedropper:before{content:""}.fa-paint-brush:before{content:""}.fa-birthday-cake:before{content:""}.fa-area-chart:before{content:""}.fa-pie-chart:before{content:""}.fa-line-chart:before{content:""}.fa-lastfm:before{content:""}.fa-lastfm-square:before{content:""}.fa-toggle-off:before{content:""}.fa-toggle-on:before{content:""}.fa-bicycle:before{content:""}.fa-bus:before{content:""}.fa-ioxhost:before{content:""}.fa-angellist:before{content:""}.fa-cc:before{content:""}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:""}.fa-meanpath:before{content:""}.fa-buysellads:before{content:""}.fa-connectdevelop:before{content:""}.fa-dashcube:before{content:""}.fa-forumbee:before{content:""}.fa-leanpub:before{content:""}.fa-sellsy:before{content:""}.fa-shirtsinbulk:before{content:""}.fa-simplybuilt:before{content:""}.fa-skyatlas:before{content:""}.fa-cart-plus:before{content:""}.fa-cart-arrow-down:before{content:""}.fa-diamond:before{content:""}.fa-ship:before{content:""}.fa-user-secret:before{content:""}.fa-motorcycle:before{content:""}.fa-street-view:before{content:""}.fa-heartbeat:before{content:""}.fa-venus:before{content:""}.fa-mars:before{content:""}.fa-mercury:before{content:""}.fa-intersex:before,.fa-transgender:before{content:""}.fa-transgender-alt:before{content:""}.fa-venus-double:before{content:""}.fa-mars-double:before{content:""}.fa-venus-mars:before{content:""}.fa-mars-stroke:before{content:""}.fa-mars-stroke-v:before{content:""}.fa-mars-stroke-h:before{content:""}.fa-neuter:before{content:""}.fa-genderless:before{content:""}.fa-facebook-official:before{content:""}.fa-pinterest-p:before{content:""}.fa-whatsapp:before{content:""}.fa-server:before{content:""}.fa-user-plus:before{content:""}.fa-user-times:before{content:""}.fa-bed:before,.fa-hotel:before{content:""}.fa-viacoin:before{content:""}.fa-train:before{content:""}.fa-subway:before{content:""}.fa-medium:before{content:""}.fa-y-combinator:before,.fa-yc:before{content:""}.fa-optin-monster:before{content:""}.fa-opencart:before{content:""}.fa-expeditedssl:before{content:""}.fa-battery-4:before,.fa-battery-full:before,.fa-battery:before{content:""}.fa-battery-3:before,.fa-battery-three-quarters:before{content:""}.fa-battery-2:before,.fa-battery-half:before{content:""}.fa-battery-1:before,.fa-battery-quarter:before{content:""}.fa-battery-0:before,.fa-battery-empty:before{content:""}.fa-mouse-pointer:before{content:""}.fa-i-cursor:before{content:""}.fa-object-group:before{content:""}.fa-object-ungroup:before{content:""}.fa-sticky-note:before{content:""}.fa-sticky-note-o:before{content:""}.fa-cc-jcb:before{content:""}.fa-cc-diners-club:before{content:""}.fa-clone:before{content:""}.fa-balance-scale:before{content:""}.fa-hourglass-o:before{content:""}.fa-hourglass-1:before,.fa-hourglass-start:before{content:""}.fa-hourglass-2:before,.fa-hourglass-half:before{content:""}.fa-hourglass-3:before,.fa-hourglass-end:before{content:""}.fa-hourglass:before{content:""}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:""}.fa-hand-paper-o:before,.fa-hand-stop-o:before{content:""}.fa-hand-scissors-o:before{content:""}.fa-hand-lizard-o:before{content:""}.fa-hand-spock-o:before{content:""}.fa-hand-pointer-o:before{content:""}.fa-hand-peace-o:before{content:""}.fa-trademark:before{content:""}.fa-registered:before{content:""}.fa-creative-commons:before{content:""}.fa-gg:before{content:""}.fa-gg-circle:before{content:""}.fa-tripadvisor:before{content:""}.fa-odnoklassniki:before{content:""}.fa-odnoklassniki-square:before{content:""}.fa-get-pocket:before{content:""}.fa-wikipedia-w:before{content:""}.fa-safari:before{content:""}.fa-chrome:before{content:""}.fa-firefox:before{content:""}.fa-opera:before{content:""}.fa-internet-explorer:before{content:""}.fa-television:before,.fa-tv:before{content:""}.fa-contao:before{content:""}.fa-500px:before{content:""}.fa-amazon:before{content:""}.fa-calendar-plus-o:before{content:""}.fa-calendar-minus-o:before{content:""}.fa-calendar-times-o:before{content:""}.fa-calendar-check-o:before{content:""}.fa-industry:before{content:""}.fa-map-pin:before{content:""}.fa-map-signs:before{content:""}.fa-map-o:before{content:""}.fa-map:before{content:""}.fa-commenting:before{content:""}.fa-commenting-o:before{content:""}.fa-houzz:before{content:""}.fa-vimeo:before{content:""}.fa-black-tie:before{content:""}.fa-fonticons:before{content:""}.fa-reddit-alien:before{content:""}.fa-edge:before{content:""}.fa-credit-card-alt:before{content:""}.fa-codiepie:before{content:""}.fa-modx:before{content:""}.fa-fort-awesome:before{content:""}.fa-usb:before{content:""}.fa-product-hunt:before{content:""}.fa-mixcloud:before{content:""}.fa-scribd:before{content:""}.fa-pause-circle:before{content:""}.fa-pause-circle-o:before{content:""}.fa-stop-circle:before{content:""}.fa-stop-circle-o:before{content:""}.fa-shopping-bag:before{content:""}.fa-shopping-basket:before{content:""}.fa-hashtag:before{content:""}.fa-bluetooth:before{content:""}.fa-bluetooth-b:before{content:""}.fa-percent:before{content:""}.fa-gitlab:before,.icon-gitlab:before{content:""}.fa-wpbeginner:before{content:""}.fa-wpforms:before{content:""}.fa-envira:before{content:""}.fa-universal-access:before{content:""}.fa-wheelchair-alt:before{content:""}.fa-question-circle-o:before{content:""}.fa-blind:before{content:""}.fa-audio-description:before{content:""}.fa-volume-control-phone:before{content:""}.fa-braille:before{content:""}.fa-assistive-listening-systems:before{content:""}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before{content:""}.fa-deaf:before,.fa-deafness:before,.fa-hard-of-hearing:before{content:""}.fa-glide:before{content:""}.fa-glide-g:before{content:""}.fa-sign-language:before,.fa-signing:before{content:""}.fa-low-vision:before{content:""}.fa-viadeo:before{content:""}.fa-viadeo-square:before{content:""}.fa-snapchat:before{content:""}.fa-snapchat-ghost:before{content:""}.fa-snapchat-square:before{content:""}.fa-pied-piper:before{content:""}.fa-first-order:before{content:""}.fa-yoast:before{content:""}.fa-themeisle:before{content:""}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:""}.fa-fa:before,.fa-font-awesome:before{content:""}.fa-handshake-o:before{content:""}.fa-envelope-open:before{content:""}.fa-envelope-open-o:before{content:""}.fa-linode:before{content:""}.fa-address-book:before{content:""}.fa-address-book-o:before{content:""}.fa-address-card:before,.fa-vcard:before{content:""}.fa-address-card-o:before,.fa-vcard-o:before{content:""}.fa-user-circle:before{content:""}.fa-user-circle-o:before{content:""}.fa-user-o:before{content:""}.fa-id-badge:before{content:""}.fa-drivers-license:before,.fa-id-card:before{content:""}.fa-drivers-license-o:before,.fa-id-card-o:before{content:""}.fa-quora:before{content:""}.fa-free-code-camp:before{content:""}.fa-telegram:before{content:""}.fa-thermometer-4:before,.fa-thermometer-full:before,.fa-thermometer:before{content:""}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:""}.fa-thermometer-2:before,.fa-thermometer-half:before{content:""}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:""}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:""}.fa-shower:before{content:""}.fa-bath:before,.fa-bathtub:before,.fa-s15:before{content:""}.fa-podcast:before{content:""}.fa-window-maximize:before{content:""}.fa-window-minimize:before{content:""}.fa-window-restore:before{content:""}.fa-times-rectangle:before,.fa-window-close:before{content:""}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:""}.fa-bandcamp:before{content:""}.fa-grav:before{content:""}.fa-etsy:before{content:""}.fa-imdb:before{content:""}.fa-ravelry:before{content:""}.fa-eercast:before{content:""}.fa-microchip:before{content:""}.fa-snowflake-o:before{content:""}.fa-superpowers:before{content:""}.fa-wpexplorer:before{content:""}.fa-meetup:before{content:""}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}.fa,.icon,.rst-content .admonition-title,.rst-content .code-block-caption .headerlink,.rst-content .eqno .headerlink,.rst-content code.download span:first-child,.rst-content dl dt .headerlink,.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content p.caption .headerlink,.rst-content p .headerlink,.rst-content table>caption .headerlink,.rst-content tt.download span:first-child,.wy-dropdown .caret,.wy-inline-validate.wy-inline-validate-danger .wy-input-context,.wy-inline-validate.wy-inline-validate-info .wy-input-context,.wy-inline-validate.wy-inline-validate-success .wy-input-context,.wy-inline-validate.wy-inline-validate-warning .wy-input-context,.wy-menu-vertical li.current>a button.toctree-expand,.wy-menu-vertical li.on a button.toctree-expand,.wy-menu-vertical li button.toctree-expand{font-family:inherit}.fa:before,.icon:before,.rst-content .admonition-title:before,.rst-content .code-block-caption .headerlink:before,.rst-content .eqno .headerlink:before,.rst-content code.download span:first-child:before,.rst-content dl dt .headerlink:before,.rst-content h1 .headerlink:before,.rst-content h2 .headerlink:before,.rst-content h3 .headerlink:before,.rst-content h4 .headerlink:before,.rst-content h5 .headerlink:before,.rst-content h6 .headerlink:before,.rst-content p.caption .headerlink:before,.rst-content p .headerlink:before,.rst-content table>caption .headerlink:before,.rst-content tt.download span:first-child:before,.wy-dropdown .caret:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before,.wy-menu-vertical li.current>a button.toctree-expand:before,.wy-menu-vertical li.on a button.toctree-expand:before,.wy-menu-vertical li button.toctree-expand:before{font-family:FontAwesome;display:inline-block;font-style:normal;font-weight:400;line-height:1;text-decoration:inherit}.rst-content .code-block-caption a .headerlink,.rst-content .eqno a .headerlink,.rst-content a .admonition-title,.rst-content code.download a span:first-child,.rst-content dl dt a .headerlink,.rst-content h1 a .headerlink,.rst-content h2 a .headerlink,.rst-content h3 a .headerlink,.rst-content h4 a .headerlink,.rst-content h5 a .headerlink,.rst-content h6 a .headerlink,.rst-content p.caption a .headerlink,.rst-content p a .headerlink,.rst-content table>caption a .headerlink,.rst-content tt.download a span:first-child,.wy-menu-vertical li.current>a button.toctree-expand,.wy-menu-vertical li.on a button.toctree-expand,.wy-menu-vertical li a button.toctree-expand,a .fa,a .icon,a .rst-content .admonition-title,a .rst-content .code-block-caption .headerlink,a .rst-content .eqno .headerlink,a .rst-content code.download span:first-child,a .rst-content dl dt .headerlink,a .rst-content h1 .headerlink,a .rst-content h2 .headerlink,a .rst-content h3 .headerlink,a .rst-content h4 .headerlink,a .rst-content h5 .headerlink,a .rst-content h6 .headerlink,a .rst-content p.caption .headerlink,a .rst-content p .headerlink,a .rst-content table>caption .headerlink,a .rst-content tt.download span:first-child,a .wy-menu-vertical li button.toctree-expand{display:inline-block;text-decoration:inherit}.btn .fa,.btn .icon,.btn .rst-content .admonition-title,.btn .rst-content .code-block-caption .headerlink,.btn .rst-content .eqno .headerlink,.btn .rst-content code.download span:first-child,.btn .rst-content dl dt .headerlink,.btn .rst-content h1 .headerlink,.btn .rst-content h2 .headerlink,.btn .rst-content h3 .headerlink,.btn .rst-content h4 .headerlink,.btn .rst-content h5 .headerlink,.btn .rst-content h6 .headerlink,.btn .rst-content p .headerlink,.btn .rst-content table>caption .headerlink,.btn .rst-content tt.download span:first-child,.btn .wy-menu-vertical li.current>a button.toctree-expand,.btn .wy-menu-vertical li.on a button.toctree-expand,.btn .wy-menu-vertical li button.toctree-expand,.nav .fa,.nav .icon,.nav .rst-content .admonition-title,.nav .rst-content .code-block-caption .headerlink,.nav .rst-content .eqno .headerlink,.nav .rst-content code.download span:first-child,.nav .rst-content dl dt .headerlink,.nav .rst-content h1 .headerlink,.nav .rst-content h2 .headerlink,.nav .rst-content h3 .headerlink,.nav .rst-content h4 .headerlink,.nav .rst-content h5 .headerlink,.nav .rst-content h6 .headerlink,.nav .rst-content p .headerlink,.nav .rst-content table>caption .headerlink,.nav .rst-content tt.download span:first-child,.nav .wy-menu-vertical li.current>a button.toctree-expand,.nav .wy-menu-vertical li.on a button.toctree-expand,.nav .wy-menu-vertical li button.toctree-expand,.rst-content .btn .admonition-title,.rst-content .code-block-caption .btn .headerlink,.rst-content .code-block-caption .nav .headerlink,.rst-content .eqno .btn .headerlink,.rst-content .eqno .nav .headerlink,.rst-content .nav .admonition-title,.rst-content code.download .btn span:first-child,.rst-content code.download .nav span:first-child,.rst-content dl dt .btn .headerlink,.rst-content dl dt .nav .headerlink,.rst-content h1 .btn .headerlink,.rst-content h1 .nav .headerlink,.rst-content h2 .btn .headerlink,.rst-content h2 .nav .headerlink,.rst-content h3 .btn .headerlink,.rst-content h3 .nav .headerlink,.rst-content h4 .btn .headerlink,.rst-content h4 .nav .headerlink,.rst-content h5 .btn .headerlink,.rst-content h5 .nav .headerlink,.rst-content h6 .btn .headerlink,.rst-content h6 .nav .headerlink,.rst-content p .btn .headerlink,.rst-content p .nav .headerlink,.rst-content table>caption .btn .headerlink,.rst-content table>caption .nav .headerlink,.rst-content tt.download .btn span:first-child,.rst-content tt.download .nav span:first-child,.wy-menu-vertical li .btn button.toctree-expand,.wy-menu-vertical li.current>a .btn button.toctree-expand,.wy-menu-vertical li.current>a .nav button.toctree-expand,.wy-menu-vertical li .nav button.toctree-expand,.wy-menu-vertical li.on a .btn button.toctree-expand,.wy-menu-vertical li.on a .nav button.toctree-expand{display:inline}.btn .fa-large.icon,.btn .fa.fa-large,.btn .rst-content .code-block-caption .fa-large.headerlink,.btn .rst-content .eqno .fa-large.headerlink,.btn .rst-content .fa-large.admonition-title,.btn .rst-content code.download span.fa-large:first-child,.btn .rst-content dl dt .fa-large.headerlink,.btn .rst-content h1 .fa-large.headerlink,.btn .rst-content h2 .fa-large.headerlink,.btn .rst-content h3 .fa-large.headerlink,.btn .rst-content h4 .fa-large.headerlink,.btn .rst-content h5 .fa-large.headerlink,.btn .rst-content h6 .fa-large.headerlink,.btn .rst-content p .fa-large.headerlink,.btn .rst-content table>caption .fa-large.headerlink,.btn .rst-content tt.download span.fa-large:first-child,.btn .wy-menu-vertical li button.fa-large.toctree-expand,.nav .fa-large.icon,.nav .fa.fa-large,.nav .rst-content .code-block-caption .fa-large.headerlink,.nav .rst-content .eqno .fa-large.headerlink,.nav .rst-content .fa-large.admonition-title,.nav .rst-content code.download span.fa-large:first-child,.nav .rst-content dl dt .fa-large.headerlink,.nav .rst-content h1 .fa-large.headerlink,.nav .rst-content h2 .fa-large.headerlink,.nav .rst-content h3 .fa-large.headerlink,.nav .rst-content h4 .fa-large.headerlink,.nav .rst-content h5 .fa-large.headerlink,.nav .rst-content h6 .fa-large.headerlink,.nav .rst-content p .fa-large.headerlink,.nav .rst-content table>caption .fa-large.headerlink,.nav .rst-content tt.download span.fa-large:first-child,.nav .wy-menu-vertical li button.fa-large.toctree-expand,.rst-content .btn .fa-large.admonition-title,.rst-content .code-block-caption .btn .fa-large.headerlink,.rst-content .code-block-caption .nav .fa-large.headerlink,.rst-content .eqno .btn .fa-large.headerlink,.rst-content .eqno .nav .fa-large.headerlink,.rst-content .nav .fa-large.admonition-title,.rst-content code.download .btn span.fa-large:first-child,.rst-content code.download .nav span.fa-large:first-child,.rst-content dl dt .btn .fa-large.headerlink,.rst-content dl dt .nav .fa-large.headerlink,.rst-content h1 .btn .fa-large.headerlink,.rst-content h1 .nav .fa-large.headerlink,.rst-content h2 .btn .fa-large.headerlink,.rst-content h2 .nav .fa-large.headerlink,.rst-content h3 .btn .fa-large.headerlink,.rst-content h3 .nav .fa-large.headerlink,.rst-content h4 .btn .fa-large.headerlink,.rst-content h4 .nav .fa-large.headerlink,.rst-content h5 .btn .fa-large.headerlink,.rst-content h5 .nav .fa-large.headerlink,.rst-content h6 .btn .fa-large.headerlink,.rst-content h6 .nav .fa-large.headerlink,.rst-content p .btn .fa-large.headerlink,.rst-content p .nav .fa-large.headerlink,.rst-content table>caption .btn .fa-large.headerlink,.rst-content table>caption .nav .fa-large.headerlink,.rst-content tt.download .btn span.fa-large:first-child,.rst-content tt.download .nav span.fa-large:first-child,.wy-menu-vertical li .btn button.fa-large.toctree-expand,.wy-menu-vertical li .nav button.fa-large.toctree-expand{line-height:.9em}.btn .fa-spin.icon,.btn .fa.fa-spin,.btn .rst-content .code-block-caption .fa-spin.headerlink,.btn .rst-content .eqno .fa-spin.headerlink,.btn .rst-content .fa-spin.admonition-title,.btn .rst-content code.download span.fa-spin:first-child,.btn .rst-content dl dt .fa-spin.headerlink,.btn .rst-content h1 .fa-spin.headerlink,.btn .rst-content h2 .fa-spin.headerlink,.btn .rst-content h3 .fa-spin.headerlink,.btn .rst-content h4 .fa-spin.headerlink,.btn .rst-content h5 .fa-spin.headerlink,.btn .rst-content h6 .fa-spin.headerlink,.btn .rst-content p .fa-spin.headerlink,.btn .rst-content table>caption .fa-spin.headerlink,.btn .rst-content tt.download span.fa-spin:first-child,.btn .wy-menu-vertical li button.fa-spin.toctree-expand,.nav .fa-spin.icon,.nav .fa.fa-spin,.nav .rst-content .code-block-caption .fa-spin.headerlink,.nav .rst-content .eqno .fa-spin.headerlink,.nav .rst-content .fa-spin.admonition-title,.nav .rst-content code.download span.fa-spin:first-child,.nav .rst-content dl dt .fa-spin.headerlink,.nav .rst-content h1 .fa-spin.headerlink,.nav .rst-content h2 .fa-spin.headerlink,.nav .rst-content h3 .fa-spin.headerlink,.nav .rst-content h4 .fa-spin.headerlink,.nav .rst-content h5 .fa-spin.headerlink,.nav .rst-content h6 .fa-spin.headerlink,.nav .rst-content p .fa-spin.headerlink,.nav .rst-content table>caption .fa-spin.headerlink,.nav .rst-content tt.download span.fa-spin:first-child,.nav .wy-menu-vertical li button.fa-spin.toctree-expand,.rst-content .btn .fa-spin.admonition-title,.rst-content .code-block-caption .btn .fa-spin.headerlink,.rst-content .code-block-caption .nav .fa-spin.headerlink,.rst-content .eqno .btn .fa-spin.headerlink,.rst-content .eqno .nav .fa-spin.headerlink,.rst-content .nav .fa-spin.admonition-title,.rst-content code.download .btn span.fa-spin:first-child,.rst-content code.download .nav span.fa-spin:first-child,.rst-content dl dt .btn .fa-spin.headerlink,.rst-content dl dt .nav .fa-spin.headerlink,.rst-content h1 .btn .fa-spin.headerlink,.rst-content h1 .nav .fa-spin.headerlink,.rst-content h2 .btn .fa-spin.headerlink,.rst-content h2 .nav .fa-spin.headerlink,.rst-content h3 .btn .fa-spin.headerlink,.rst-content h3 .nav .fa-spin.headerlink,.rst-content h4 .btn .fa-spin.headerlink,.rst-content h4 .nav .fa-spin.headerlink,.rst-content h5 .btn .fa-spin.headerlink,.rst-content h5 .nav .fa-spin.headerlink,.rst-content h6 .btn .fa-spin.headerlink,.rst-content h6 .nav .fa-spin.headerlink,.rst-content p .btn .fa-spin.headerlink,.rst-content p .nav .fa-spin.headerlink,.rst-content table>caption .btn .fa-spin.headerlink,.rst-content table>caption .nav .fa-spin.headerlink,.rst-content tt.download .btn span.fa-spin:first-child,.rst-content tt.download .nav span.fa-spin:first-child,.wy-menu-vertical li .btn button.fa-spin.toctree-expand,.wy-menu-vertical li .nav button.fa-spin.toctree-expand{display:inline-block}.btn.fa:before,.btn.icon:before,.rst-content .btn.admonition-title:before,.rst-content .code-block-caption .btn.headerlink:before,.rst-content .eqno .btn.headerlink:before,.rst-content code.download span.btn:first-child:before,.rst-content dl dt .btn.headerlink:before,.rst-content h1 .btn.headerlink:before,.rst-content h2 .btn.headerlink:before,.rst-content h3 .btn.headerlink:before,.rst-content h4 .btn.headerlink:before,.rst-content h5 .btn.headerlink:before,.rst-content h6 .btn.headerlink:before,.rst-content p .btn.headerlink:before,.rst-content table>caption .btn.headerlink:before,.rst-content tt.download span.btn:first-child:before,.wy-menu-vertical li button.btn.toctree-expand:before{opacity:.5;-webkit-transition:opacity .05s ease-in;-moz-transition:opacity .05s ease-in;transition:opacity .05s ease-in}.btn.fa:hover:before,.btn.icon:hover:before,.rst-content .btn.admonition-title:hover:before,.rst-content .code-block-caption .btn.headerlink:hover:before,.rst-content .eqno .btn.headerlink:hover:before,.rst-content code.download span.btn:first-child:hover:before,.rst-content dl dt .btn.headerlink:hover:before,.rst-content h1 .btn.headerlink:hover:before,.rst-content h2 .btn.headerlink:hover:before,.rst-content h3 .btn.headerlink:hover:before,.rst-content h4 .btn.headerlink:hover:before,.rst-content h5 .btn.headerlink:hover:before,.rst-content h6 .btn.headerlink:hover:before,.rst-content p .btn.headerlink:hover:before,.rst-content table>caption .btn.headerlink:hover:before,.rst-content tt.download span.btn:first-child:hover:before,.wy-menu-vertical li button.btn.toctree-expand:hover:before{opacity:1}.btn-mini .fa:before,.btn-mini .icon:before,.btn-mini .rst-content .admonition-title:before,.btn-mini .rst-content .code-block-caption .headerlink:before,.btn-mini .rst-content .eqno .headerlink:before,.btn-mini .rst-content code.download span:first-child:before,.btn-mini .rst-content dl dt .headerlink:before,.btn-mini .rst-content h1 .headerlink:before,.btn-mini .rst-content h2 .headerlink:before,.btn-mini .rst-content h3 .headerlink:before,.btn-mini .rst-content h4 .headerlink:before,.btn-mini .rst-content h5 .headerlink:before,.btn-mini .rst-content h6 .headerlink:before,.btn-mini .rst-content p .headerlink:before,.btn-mini .rst-content table>caption .headerlink:before,.btn-mini .rst-content tt.download span:first-child:before,.btn-mini .wy-menu-vertical li button.toctree-expand:before,.rst-content .btn-mini .admonition-title:before,.rst-content .code-block-caption .btn-mini .headerlink:before,.rst-content .eqno .btn-mini .headerlink:before,.rst-content code.download .btn-mini span:first-child:before,.rst-content dl dt .btn-mini .headerlink:before,.rst-content h1 .btn-mini .headerlink:before,.rst-content h2 .btn-mini .headerlink:before,.rst-content h3 .btn-mini .headerlink:before,.rst-content h4 .btn-mini .headerlink:before,.rst-content h5 .btn-mini .headerlink:before,.rst-content h6 .btn-mini .headerlink:before,.rst-content p .btn-mini .headerlink:before,.rst-content table>caption .btn-mini .headerlink:before,.rst-content tt.download .btn-mini span:first-child:before,.wy-menu-vertical li .btn-mini button.toctree-expand:before{font-size:14px;vertical-align:-15%}.rst-content .admonition,.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .danger,.rst-content .error,.rst-content .hint,.rst-content .important,.rst-content .note,.rst-content .seealso,.rst-content .tip,.rst-content .warning,.wy-alert{padding:12px;line-height:24px;margin-bottom:24px;background:#e7f2fa}.rst-content .admonition-title,.wy-alert-title{font-weight:700;display:block;color:#fff;background:#6ab0de;padding:6px 12px;margin:-12px -12px 12px}.rst-content .danger,.rst-content .error,.rst-content .wy-alert-danger.admonition,.rst-content .wy-alert-danger.admonition-todo,.rst-content .wy-alert-danger.attention,.rst-content .wy-alert-danger.caution,.rst-content .wy-alert-danger.hint,.rst-content .wy-alert-danger.important,.rst-content .wy-alert-danger.note,.rst-content .wy-alert-danger.seealso,.rst-content .wy-alert-danger.tip,.rst-content .wy-alert-danger.warning,.wy-alert.wy-alert-danger{background:#fdf3f2}.rst-content .danger .admonition-title,.rst-content .danger .wy-alert-title,.rst-content .error .admonition-title,.rst-content .error .wy-alert-title,.rst-content .wy-alert-danger.admonition-todo .admonition-title,.rst-content .wy-alert-danger.admonition-todo .wy-alert-title,.rst-content .wy-alert-danger.admonition .admonition-title,.rst-content .wy-alert-danger.admonition .wy-alert-title,.rst-content .wy-alert-danger.attention .admonition-title,.rst-content .wy-alert-danger.attention .wy-alert-title,.rst-content .wy-alert-danger.caution .admonition-title,.rst-content .wy-alert-danger.caution .wy-alert-title,.rst-content .wy-alert-danger.hint .admonition-title,.rst-content .wy-alert-danger.hint .wy-alert-title,.rst-content .wy-alert-danger.important .admonition-title,.rst-content .wy-alert-danger.important .wy-alert-title,.rst-content .wy-alert-danger.note .admonition-title,.rst-content .wy-alert-danger.note .wy-alert-title,.rst-content .wy-alert-danger.seealso .admonition-title,.rst-content .wy-alert-danger.seealso .wy-alert-title,.rst-content .wy-alert-danger.tip .admonition-title,.rst-content .wy-alert-danger.tip .wy-alert-title,.rst-content .wy-alert-danger.warning .admonition-title,.rst-content .wy-alert-danger.warning .wy-alert-title,.rst-content .wy-alert.wy-alert-danger .admonition-title,.wy-alert.wy-alert-danger .rst-content .admonition-title,.wy-alert.wy-alert-danger .wy-alert-title{background:#f29f97}.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .warning,.rst-content .wy-alert-warning.admonition,.rst-content .wy-alert-warning.danger,.rst-content .wy-alert-warning.error,.rst-content .wy-alert-warning.hint,.rst-content .wy-alert-warning.important,.rst-content .wy-alert-warning.note,.rst-content .wy-alert-warning.seealso,.rst-content .wy-alert-warning.tip,.wy-alert.wy-alert-warning{background:#ffedcc}.rst-content .admonition-todo .admonition-title,.rst-content .admonition-todo .wy-alert-title,.rst-content .attention .admonition-title,.rst-content .attention .wy-alert-title,.rst-content .caution .admonition-title,.rst-content .caution .wy-alert-title,.rst-content .warning .admonition-title,.rst-content .warning .wy-alert-title,.rst-content .wy-alert-warning.admonition .admonition-title,.rst-content .wy-alert-warning.admonition .wy-alert-title,.rst-content .wy-alert-warning.danger .admonition-title,.rst-content .wy-alert-warning.danger .wy-alert-title,.rst-content .wy-alert-warning.error .admonition-title,.rst-content .wy-alert-warning.error .wy-alert-title,.rst-content .wy-alert-warning.hint .admonition-title,.rst-content .wy-alert-warning.hint .wy-alert-title,.rst-content .wy-alert-warning.important .admonition-title,.rst-content .wy-alert-warning.important .wy-alert-title,.rst-content .wy-alert-warning.note .admonition-title,.rst-content .wy-alert-warning.note .wy-alert-title,.rst-content .wy-alert-warning.seealso .admonition-title,.rst-content .wy-alert-warning.seealso .wy-alert-title,.rst-content .wy-alert-warning.tip .admonition-title,.rst-content .wy-alert-warning.tip .wy-alert-title,.rst-content .wy-alert.wy-alert-warning .admonition-title,.wy-alert.wy-alert-warning .rst-content .admonition-title,.wy-alert.wy-alert-warning .wy-alert-title{background:#f0b37e}.rst-content .note,.rst-content .seealso,.rst-content .wy-alert-info.admonition,.rst-content .wy-alert-info.admonition-todo,.rst-content .wy-alert-info.attention,.rst-content .wy-alert-info.caution,.rst-content .wy-alert-info.danger,.rst-content .wy-alert-info.error,.rst-content .wy-alert-info.hint,.rst-content .wy-alert-info.important,.rst-content .wy-alert-info.tip,.rst-content .wy-alert-info.warning,.wy-alert.wy-alert-info{background:#e7f2fa}.rst-content .note .admonition-title,.rst-content .note .wy-alert-title,.rst-content .seealso .admonition-title,.rst-content .seealso .wy-alert-title,.rst-content .wy-alert-info.admonition-todo .admonition-title,.rst-content .wy-alert-info.admonition-todo .wy-alert-title,.rst-content .wy-alert-info.admonition .admonition-title,.rst-content .wy-alert-info.admonition .wy-alert-title,.rst-content .wy-alert-info.attention .admonition-title,.rst-content .wy-alert-info.attention .wy-alert-title,.rst-content .wy-alert-info.caution .admonition-title,.rst-content .wy-alert-info.caution .wy-alert-title,.rst-content .wy-alert-info.danger .admonition-title,.rst-content .wy-alert-info.danger .wy-alert-title,.rst-content .wy-alert-info.error .admonition-title,.rst-content .wy-alert-info.error .wy-alert-title,.rst-content .wy-alert-info.hint .admonition-title,.rst-content .wy-alert-info.hint .wy-alert-title,.rst-content .wy-alert-info.important .admonition-title,.rst-content .wy-alert-info.important .wy-alert-title,.rst-content .wy-alert-info.tip .admonition-title,.rst-content .wy-alert-info.tip .wy-alert-title,.rst-content .wy-alert-info.warning .admonition-title,.rst-content .wy-alert-info.warning .wy-alert-title,.rst-content .wy-alert.wy-alert-info .admonition-title,.wy-alert.wy-alert-info .rst-content .admonition-title,.wy-alert.wy-alert-info .wy-alert-title{background:#6ab0de}.rst-content .hint,.rst-content .important,.rst-content .tip,.rst-content .wy-alert-success.admonition,.rst-content .wy-alert-success.admonition-todo,.rst-content .wy-alert-success.attention,.rst-content .wy-alert-success.caution,.rst-content .wy-alert-success.danger,.rst-content .wy-alert-success.error,.rst-content .wy-alert-success.note,.rst-content .wy-alert-success.seealso,.rst-content .wy-alert-success.warning,.wy-alert.wy-alert-success{background:#dbfaf4}.rst-content .hint .admonition-title,.rst-content .hint .wy-alert-title,.rst-content .important .admonition-title,.rst-content .important .wy-alert-title,.rst-content .tip .admonition-title,.rst-content .tip .wy-alert-title,.rst-content .wy-alert-success.admonition-todo .admonition-title,.rst-content .wy-alert-success.admonition-todo .wy-alert-title,.rst-content .wy-alert-success.admonition .admonition-title,.rst-content .wy-alert-success.admonition .wy-alert-title,.rst-content .wy-alert-success.attention .admonition-title,.rst-content .wy-alert-success.attention .wy-alert-title,.rst-content .wy-alert-success.caution .admonition-title,.rst-content .wy-alert-success.caution .wy-alert-title,.rst-content .wy-alert-success.danger .admonition-title,.rst-content .wy-alert-success.danger .wy-alert-title,.rst-content .wy-alert-success.error .admonition-title,.rst-content .wy-alert-success.error .wy-alert-title,.rst-content .wy-alert-success.note .admonition-title,.rst-content .wy-alert-success.note .wy-alert-title,.rst-content .wy-alert-success.seealso .admonition-title,.rst-content .wy-alert-success.seealso .wy-alert-title,.rst-content .wy-alert-success.warning .admonition-title,.rst-content .wy-alert-success.warning .wy-alert-title,.rst-content .wy-alert.wy-alert-success .admonition-title,.wy-alert.wy-alert-success .rst-content .admonition-title,.wy-alert.wy-alert-success .wy-alert-title{background:#1abc9c}.rst-content .wy-alert-neutral.admonition,.rst-content .wy-alert-neutral.admonition-todo,.rst-content .wy-alert-neutral.attention,.rst-content .wy-alert-neutral.caution,.rst-content .wy-alert-neutral.danger,.rst-content .wy-alert-neutral.error,.rst-content .wy-alert-neutral.hint,.rst-content .wy-alert-neutral.important,.rst-content .wy-alert-neutral.note,.rst-content .wy-alert-neutral.seealso,.rst-content .wy-alert-neutral.tip,.rst-content .wy-alert-neutral.warning,.wy-alert.wy-alert-neutral{background:#f3f6f6}.rst-content .wy-alert-neutral.admonition-todo .admonition-title,.rst-content .wy-alert-neutral.admonition-todo .wy-alert-title,.rst-content .wy-alert-neutral.admonition .admonition-title,.rst-content .wy-alert-neutral.admonition .wy-alert-title,.rst-content .wy-alert-neutral.attention .admonition-title,.rst-content .wy-alert-neutral.attention .wy-alert-title,.rst-content .wy-alert-neutral.caution .admonition-title,.rst-content .wy-alert-neutral.caution .wy-alert-title,.rst-content .wy-alert-neutral.danger .admonition-title,.rst-content .wy-alert-neutral.danger .wy-alert-title,.rst-content .wy-alert-neutral.error .admonition-title,.rst-content .wy-alert-neutral.error .wy-alert-title,.rst-content .wy-alert-neutral.hint .admonition-title,.rst-content .wy-alert-neutral.hint .wy-alert-title,.rst-content .wy-alert-neutral.important .admonition-title,.rst-content .wy-alert-neutral.important .wy-alert-title,.rst-content .wy-alert-neutral.note .admonition-title,.rst-content .wy-alert-neutral.note .wy-alert-title,.rst-content .wy-alert-neutral.seealso .admonition-title,.rst-content .wy-alert-neutral.seealso .wy-alert-title,.rst-content .wy-alert-neutral.tip .admonition-title,.rst-content .wy-alert-neutral.tip .wy-alert-title,.rst-content .wy-alert-neutral.warning .admonition-title,.rst-content .wy-alert-neutral.warning .wy-alert-title,.rst-content .wy-alert.wy-alert-neutral .admonition-title,.wy-alert.wy-alert-neutral .rst-content .admonition-title,.wy-alert.wy-alert-neutral .wy-alert-title{color:#404040;background:#e1e4e5}.rst-content .wy-alert-neutral.admonition-todo a,.rst-content .wy-alert-neutral.admonition a,.rst-content .wy-alert-neutral.attention a,.rst-content .wy-alert-neutral.caution a,.rst-content .wy-alert-neutral.danger a,.rst-content .wy-alert-neutral.error a,.rst-content .wy-alert-neutral.hint a,.rst-content .wy-alert-neutral.important a,.rst-content .wy-alert-neutral.note a,.rst-content .wy-alert-neutral.seealso a,.rst-content .wy-alert-neutral.tip a,.rst-content .wy-alert-neutral.warning a,.wy-alert.wy-alert-neutral a{color:#2980b9}.rst-content .admonition-todo p:last-child,.rst-content .admonition p:last-child,.rst-content .attention p:last-child,.rst-content .caution p:last-child,.rst-content .danger p:last-child,.rst-content .error p:last-child,.rst-content .hint p:last-child,.rst-content .important p:last-child,.rst-content .note p:last-child,.rst-content .seealso p:last-child,.rst-content .tip p:last-child,.rst-content .warning p:last-child,.wy-alert p:last-child{margin-bottom:0}.wy-tray-container{position:fixed;bottom:0;left:0;z-index:600}.wy-tray-container li{display:block;width:300px;background:transparent;color:#fff;text-align:center;box-shadow:0 5px 5px 0 rgba(0,0,0,.1);padding:0 24px;min-width:20%;opacity:0;height:0;line-height:56px;overflow:hidden;-webkit-transition:all .3s ease-in;-moz-transition:all .3s ease-in;transition:all .3s ease-in}.wy-tray-container li.wy-tray-item-success{background:#27ae60}.wy-tray-container li.wy-tray-item-info{background:#2980b9}.wy-tray-container li.wy-tray-item-warning{background:#e67e22}.wy-tray-container li.wy-tray-item-danger{background:#e74c3c}.wy-tray-container li.on{opacity:1;height:56px}@media screen and (max-width:768px){.wy-tray-container{bottom:auto;top:0;width:100%}.wy-tray-container li{width:100%}}button{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle;cursor:pointer;line-height:normal;-webkit-appearance:button;*overflow:visible}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}button[disabled]{cursor:default}.btn{display:inline-block;border-radius:2px;line-height:normal;white-space:nowrap;text-align:center;cursor:pointer;font-size:100%;padding:6px 12px 8px;color:#fff;border:1px solid rgba(0,0,0,.1);background-color:#27ae60;text-decoration:none;font-weight:400;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;box-shadow:inset 0 1px 2px -1px hsla(0,0%,100%,.5),inset 0 -2px 0 0 rgba(0,0,0,.1);outline-none:false;vertical-align:middle;*display:inline;zoom:1;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:all .1s linear;-moz-transition:all .1s linear;transition:all .1s linear}.btn-hover{background:#2e8ece;color:#fff}.btn:hover{background:#2cc36b;color:#fff}.btn:focus{background:#2cc36b;outline:0}.btn:active{box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.05),inset 0 2px 0 0 rgba(0,0,0,.1);padding:8px 12px 6px}.btn:visited{color:#fff}.btn-disabled,.btn-disabled:active,.btn-disabled:focus,.btn-disabled:hover,.btn:disabled{background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);filter:alpha(opacity=40);opacity:.4;cursor:not-allowed;box-shadow:none}.btn::-moz-focus-inner{padding:0;border:0}.btn-small{font-size:80%}.btn-info{background-color:#2980b9!important}.btn-info:hover{background-color:#2e8ece!important}.btn-neutral{background-color:#f3f6f6!important;color:#404040!important}.btn-neutral:hover{background-color:#e5ebeb!important;color:#404040}.btn-neutral:visited{color:#404040!important}.btn-success{background-color:#27ae60!important}.btn-success:hover{background-color:#295!important}.btn-danger{background-color:#e74c3c!important}.btn-danger:hover{background-color:#ea6153!important}.btn-warning{background-color:#e67e22!important}.btn-warning:hover{background-color:#e98b39!important}.btn-invert{background-color:#222}.btn-invert:hover{background-color:#2f2f2f!important}.btn-link{background-color:transparent!important;color:#2980b9;box-shadow:none;border-color:transparent!important}.btn-link:active,.btn-link:hover{background-color:transparent!important;color:#409ad5!important;box-shadow:none}.btn-link:visited{color:#9b59b6}.wy-btn-group .btn,.wy-control .btn{vertical-align:middle}.wy-btn-group{margin-bottom:24px;*zoom:1}.wy-btn-group:after,.wy-btn-group:before{display:table;content:""}.wy-btn-group:after{clear:both}.wy-dropdown{position:relative;display:inline-block}.wy-dropdown-active .wy-dropdown-menu{display:block}.wy-dropdown-menu{position:absolute;left:0;display:none;float:left;top:100%;min-width:100%;background:#fcfcfc;z-index:100;border:1px solid #cfd7dd;box-shadow:0 2px 2px 0 rgba(0,0,0,.1);padding:12px}.wy-dropdown-menu>dd>a{display:block;clear:both;color:#404040;white-space:nowrap;font-size:90%;padding:0 12px;cursor:pointer}.wy-dropdown-menu>dd>a:hover{background:#2980b9;color:#fff}.wy-dropdown-menu>dd.divider{border-top:1px solid #cfd7dd;margin:6px 0}.wy-dropdown-menu>dd.search{padding-bottom:12px}.wy-dropdown-menu>dd.search input[type=search]{width:100%}.wy-dropdown-menu>dd.call-to-action{background:#e3e3e3;text-transform:uppercase;font-weight:500;font-size:80%}.wy-dropdown-menu>dd.call-to-action:hover{background:#e3e3e3}.wy-dropdown-menu>dd.call-to-action .btn{color:#fff}.wy-dropdown.wy-dropdown-up .wy-dropdown-menu{bottom:100%;top:auto;left:auto;right:0}.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu{background:#fcfcfc;margin-top:2px}.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu a{padding:6px 12px}.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu a:hover{background:#2980b9;color:#fff}.wy-dropdown.wy-dropdown-left .wy-dropdown-menu{right:0;left:auto;text-align:right}.wy-dropdown-arrow:before{content:" ";border-bottom:5px solid #f5f5f5;border-left:5px solid transparent;border-right:5px solid transparent;position:absolute;display:block;top:-4px;left:50%;margin-left:-3px}.wy-dropdown-arrow.wy-dropdown-arrow-left:before{left:11px}.wy-form-stacked select{display:block}.wy-form-aligned .wy-help-inline,.wy-form-aligned input,.wy-form-aligned label,.wy-form-aligned select,.wy-form-aligned textarea{display:inline-block;*display:inline;*zoom:1;vertical-align:middle}.wy-form-aligned .wy-control-group>label{display:inline-block;vertical-align:middle;width:10em;margin:6px 12px 0 0;float:left}.wy-form-aligned .wy-control{float:left}.wy-form-aligned .wy-control label{display:block}.wy-form-aligned .wy-control select{margin-top:6px}fieldset{margin:0}fieldset,legend{border:0;padding:0}legend{width:100%;white-space:normal;margin-bottom:24px;font-size:150%;*margin-left:-7px}label,legend{display:block}label{margin:0 0 .3125em;color:#333;font-size:90%}input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}.wy-control-group{margin-bottom:24px;max-width:1200px;margin-left:auto;margin-right:auto;*zoom:1}.wy-control-group:after,.wy-control-group:before{display:table;content:""}.wy-control-group:after{clear:both}.wy-control-group.wy-control-group-required>label:after{content:" *";color:#e74c3c}.wy-control-group .wy-form-full,.wy-control-group .wy-form-halves,.wy-control-group .wy-form-thirds{padding-bottom:12px}.wy-control-group .wy-form-full input[type=color],.wy-control-group .wy-form-full input[type=date],.wy-control-group .wy-form-full input[type=datetime-local],.wy-control-group .wy-form-full input[type=datetime],.wy-control-group .wy-form-full input[type=email],.wy-control-group .wy-form-full input[type=month],.wy-control-group .wy-form-full input[type=number],.wy-control-group .wy-form-full input[type=password],.wy-control-group .wy-form-full input[type=search],.wy-control-group .wy-form-full input[type=tel],.wy-control-group .wy-form-full input[type=text],.wy-control-group .wy-form-full input[type=time],.wy-control-group .wy-form-full input[type=url],.wy-control-group .wy-form-full input[type=week],.wy-control-group .wy-form-full select,.wy-control-group .wy-form-halves input[type=color],.wy-control-group .wy-form-halves input[type=date],.wy-control-group .wy-form-halves input[type=datetime-local],.wy-control-group .wy-form-halves input[type=datetime],.wy-control-group .wy-form-halves input[type=email],.wy-control-group .wy-form-halves input[type=month],.wy-control-group .wy-form-halves input[type=number],.wy-control-group .wy-form-halves input[type=password],.wy-control-group .wy-form-halves input[type=search],.wy-control-group .wy-form-halves input[type=tel],.wy-control-group .wy-form-halves input[type=text],.wy-control-group .wy-form-halves input[type=time],.wy-control-group .wy-form-halves input[type=url],.wy-control-group .wy-form-halves input[type=week],.wy-control-group .wy-form-halves select,.wy-control-group .wy-form-thirds input[type=color],.wy-control-group .wy-form-thirds input[type=date],.wy-control-group .wy-form-thirds input[type=datetime-local],.wy-control-group .wy-form-thirds input[type=datetime],.wy-control-group .wy-form-thirds input[type=email],.wy-control-group .wy-form-thirds input[type=month],.wy-control-group .wy-form-thirds input[type=number],.wy-control-group .wy-form-thirds input[type=password],.wy-control-group .wy-form-thirds input[type=search],.wy-control-group .wy-form-thirds input[type=tel],.wy-control-group .wy-form-thirds input[type=text],.wy-control-group .wy-form-thirds input[type=time],.wy-control-group .wy-form-thirds input[type=url],.wy-control-group .wy-form-thirds input[type=week],.wy-control-group .wy-form-thirds select{width:100%}.wy-control-group .wy-form-full{float:left;display:block;width:100%;margin-right:0}.wy-control-group .wy-form-full:last-child{margin-right:0}.wy-control-group .wy-form-halves{float:left;display:block;margin-right:2.35765%;width:48.82117%}.wy-control-group .wy-form-halves:last-child,.wy-control-group .wy-form-halves:nth-of-type(2n){margin-right:0}.wy-control-group .wy-form-halves:nth-of-type(odd){clear:left}.wy-control-group .wy-form-thirds{float:left;display:block;margin-right:2.35765%;width:31.76157%}.wy-control-group .wy-form-thirds:last-child,.wy-control-group .wy-form-thirds:nth-of-type(3n){margin-right:0}.wy-control-group .wy-form-thirds:nth-of-type(3n+1){clear:left}.wy-control-group.wy-control-group-no-input .wy-control,.wy-control-no-input{margin:6px 0 0;font-size:90%}.wy-control-no-input{display:inline-block}.wy-control-group.fluid-input input[type=color],.wy-control-group.fluid-input input[type=date],.wy-control-group.fluid-input input[type=datetime-local],.wy-control-group.fluid-input input[type=datetime],.wy-control-group.fluid-input input[type=email],.wy-control-group.fluid-input input[type=month],.wy-control-group.fluid-input input[type=number],.wy-control-group.fluid-input input[type=password],.wy-control-group.fluid-input input[type=search],.wy-control-group.fluid-input input[type=tel],.wy-control-group.fluid-input input[type=text],.wy-control-group.fluid-input input[type=time],.wy-control-group.fluid-input input[type=url],.wy-control-group.fluid-input input[type=week]{width:100%}.wy-form-message-inline{padding-left:.3em;color:#666;font-size:90%}.wy-form-message{display:block;color:#999;font-size:70%;margin-top:.3125em;font-style:italic}.wy-form-message p{font-size:inherit;font-style:italic;margin-bottom:6px}.wy-form-message p:last-child{margin-bottom:0}input{line-height:normal}input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;*overflow:visible}input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week]{-webkit-appearance:none;padding:6px;display:inline-block;border:1px solid #ccc;font-size:80%;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;box-shadow:inset 0 1px 3px #ddd;border-radius:0;-webkit-transition:border .3s linear;-moz-transition:border .3s linear;transition:border .3s linear}input[type=datetime-local]{padding:.34375em .625em}input[disabled]{cursor:default}input[type=checkbox],input[type=radio]{padding:0;margin-right:.3125em;*height:13px;*width:13px}input[type=checkbox],input[type=radio],input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus{outline:0;outline:thin dotted\9;border-color:#333}input.no-focus:focus{border-color:#ccc!important}input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{outline:thin dotted #333;outline:1px auto #129fea}input[type=color][disabled],input[type=date][disabled],input[type=datetime-local][disabled],input[type=datetime][disabled],input[type=email][disabled],input[type=month][disabled],input[type=number][disabled],input[type=password][disabled],input[type=search][disabled],input[type=tel][disabled],input[type=text][disabled],input[type=time][disabled],input[type=url][disabled],input[type=week][disabled]{cursor:not-allowed;background-color:#fafafa}input:focus:invalid,select:focus:invalid,textarea:focus:invalid{color:#e74c3c;border:1px solid #e74c3c}input:focus:invalid:focus,select:focus:invalid:focus,textarea:focus:invalid:focus{border-color:#e74c3c}input[type=checkbox]:focus:invalid:focus,input[type=file]:focus:invalid:focus,input[type=radio]:focus:invalid:focus{outline-color:#e74c3c}input.wy-input-large{padding:12px;font-size:100%}textarea{overflow:auto;vertical-align:top;width:100%;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif}select,textarea{padding:.5em .625em;display:inline-block;border:1px solid #ccc;font-size:80%;box-shadow:inset 0 1px 3px #ddd;-webkit-transition:border .3s linear;-moz-transition:border .3s linear;transition:border .3s linear}select{border:1px solid #ccc;background-color:#fff}select[multiple]{height:auto}select:focus,textarea:focus{outline:0}input[readonly],select[disabled],select[readonly],textarea[disabled],textarea[readonly]{cursor:not-allowed;background-color:#fafafa}input[type=checkbox][disabled],input[type=radio][disabled]{cursor:not-allowed}.wy-checkbox,.wy-radio{margin:6px 0;color:#404040;display:block}.wy-checkbox input,.wy-radio input{vertical-align:baseline}.wy-form-message-inline{display:inline-block;*display:inline;*zoom:1;vertical-align:middle}.wy-input-prefix,.wy-input-suffix{white-space:nowrap;padding:6px}.wy-input-prefix .wy-input-context,.wy-input-suffix .wy-input-context{line-height:27px;padding:0 8px;display:inline-block;font-size:80%;background-color:#f3f6f6;border:1px solid #ccc;color:#999}.wy-input-suffix .wy-input-context{border-left:0}.wy-input-prefix .wy-input-context{border-right:0}.wy-switch{position:relative;display:block;height:24px;margin-top:12px;cursor:pointer}.wy-switch:before{left:0;top:0;width:36px;height:12px;background:#ccc}.wy-switch:after,.wy-switch:before{position:absolute;content:"";display:block;border-radius:4px;-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.wy-switch:after{width:18px;height:18px;background:#999;left:-3px;top:-3px}.wy-switch span{position:absolute;left:48px;display:block;font-size:12px;color:#ccc;line-height:1}.wy-switch.active:before{background:#1e8449}.wy-switch.active:after{left:24px;background:#27ae60}.wy-switch.disabled{cursor:not-allowed;opacity:.8}.wy-control-group.wy-control-group-error .wy-form-message,.wy-control-group.wy-control-group-error>label{color:#e74c3c}.wy-control-group.wy-control-group-error input[type=color],.wy-control-group.wy-control-group-error input[type=date],.wy-control-group.wy-control-group-error input[type=datetime-local],.wy-control-group.wy-control-group-error input[type=datetime],.wy-control-group.wy-control-group-error input[type=email],.wy-control-group.wy-control-group-error input[type=month],.wy-control-group.wy-control-group-error input[type=number],.wy-control-group.wy-control-group-error input[type=password],.wy-control-group.wy-control-group-error input[type=search],.wy-control-group.wy-control-group-error input[type=tel],.wy-control-group.wy-control-group-error input[type=text],.wy-control-group.wy-control-group-error input[type=time],.wy-control-group.wy-control-group-error input[type=url],.wy-control-group.wy-control-group-error input[type=week],.wy-control-group.wy-control-group-error textarea{border:1px solid #e74c3c}.wy-inline-validate{white-space:nowrap}.wy-inline-validate .wy-input-context{padding:.5em .625em;display:inline-block;font-size:80%}.wy-inline-validate.wy-inline-validate-success .wy-input-context{color:#27ae60}.wy-inline-validate.wy-inline-validate-danger .wy-input-context{color:#e74c3c}.wy-inline-validate.wy-inline-validate-warning .wy-input-context{color:#e67e22}.wy-inline-validate.wy-inline-validate-info .wy-input-context{color:#2980b9}.rotate-90{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.rotate-180{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}.rotate-270{-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-ms-transform:rotate(270deg);-o-transform:rotate(270deg);transform:rotate(270deg)}.mirror{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);-o-transform:scaleX(-1);transform:scaleX(-1)}.mirror.rotate-90{-webkit-transform:scaleX(-1) rotate(90deg);-moz-transform:scaleX(-1) rotate(90deg);-ms-transform:scaleX(-1) rotate(90deg);-o-transform:scaleX(-1) rotate(90deg);transform:scaleX(-1) rotate(90deg)}.mirror.rotate-180{-webkit-transform:scaleX(-1) rotate(180deg);-moz-transform:scaleX(-1) rotate(180deg);-ms-transform:scaleX(-1) rotate(180deg);-o-transform:scaleX(-1) rotate(180deg);transform:scaleX(-1) rotate(180deg)}.mirror.rotate-270{-webkit-transform:scaleX(-1) rotate(270deg);-moz-transform:scaleX(-1) rotate(270deg);-ms-transform:scaleX(-1) rotate(270deg);-o-transform:scaleX(-1) rotate(270deg);transform:scaleX(-1) rotate(270deg)}@media only screen and (max-width:480px){.wy-form button[type=submit]{margin:.7em 0 0}.wy-form input[type=color],.wy-form input[type=date],.wy-form input[type=datetime-local],.wy-form input[type=datetime],.wy-form input[type=email],.wy-form input[type=month],.wy-form input[type=number],.wy-form input[type=password],.wy-form input[type=search],.wy-form input[type=tel],.wy-form input[type=text],.wy-form input[type=time],.wy-form input[type=url],.wy-form input[type=week],.wy-form label{margin-bottom:.3em;display:block}.wy-form input[type=color],.wy-form input[type=date],.wy-form input[type=datetime-local],.wy-form input[type=datetime],.wy-form input[type=email],.wy-form input[type=month],.wy-form input[type=number],.wy-form input[type=password],.wy-form input[type=search],.wy-form input[type=tel],.wy-form input[type=time],.wy-form input[type=url],.wy-form input[type=week]{margin-bottom:0}.wy-form-aligned .wy-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.wy-form-aligned .wy-control{margin:1.5em 0 0}.wy-form-message,.wy-form-message-inline,.wy-form .wy-help-inline{display:block;font-size:80%;padding:6px 0}}@media screen and (max-width:768px){.tablet-hide{display:none}}@media screen and (max-width:480px){.mobile-hide{display:none}}.float-left{float:left}.float-right{float:right}.full-width{width:100%}.rst-content table.docutils,.rst-content table.field-list,.wy-table{border-collapse:collapse;border-spacing:0;empty-cells:show;margin-bottom:24px}.rst-content table.docutils caption,.rst-content table.field-list caption,.wy-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.rst-content table.docutils td,.rst-content table.docutils th,.rst-content table.field-list td,.rst-content table.field-list th,.wy-table td,.wy-table th{font-size:90%;margin:0;overflow:visible;padding:8px 16px}.rst-content table.docutils td:first-child,.rst-content table.docutils th:first-child,.rst-content table.field-list td:first-child,.rst-content table.field-list th:first-child,.wy-table td:first-child,.wy-table th:first-child{border-left-width:0}.rst-content table.docutils thead,.rst-content table.field-list thead,.wy-table thead{color:#000;text-align:left;vertical-align:bottom;white-space:nowrap}.rst-content table.docutils thead th,.rst-content table.field-list thead th,.wy-table thead th{font-weight:700;border-bottom:2px solid #e1e4e5}.rst-content table.docutils td,.rst-content table.field-list td,.wy-table td{background-color:transparent;vertical-align:middle}.rst-content table.docutils td p,.rst-content table.field-list td p,.wy-table td p{line-height:18px}.rst-content table.docutils td p:last-child,.rst-content table.field-list td p:last-child,.wy-table td p:last-child{margin-bottom:0}.rst-content table.docutils .wy-table-cell-min,.rst-content table.field-list .wy-table-cell-min,.wy-table .wy-table-cell-min{width:1%;padding-right:0}.rst-content table.docutils .wy-table-cell-min input[type=checkbox],.rst-content table.field-list .wy-table-cell-min input[type=checkbox],.wy-table .wy-table-cell-min input[type=checkbox]{margin:0}.wy-table-secondary{color:grey;font-size:90%}.wy-table-tertiary{color:grey;font-size:80%}.rst-content table.docutils:not(.field-list) tr:nth-child(2n-1) td,.wy-table-backed,.wy-table-odd td,.wy-table-striped tr:nth-child(2n-1) td{background-color:#f3f6f6}.rst-content table.docutils,.wy-table-bordered-all{border:1px solid #e1e4e5}.rst-content table.docutils td,.wy-table-bordered-all td{border-bottom:1px solid #e1e4e5;border-left:1px solid #e1e4e5}.rst-content table.docutils tbody>tr:last-child td,.wy-table-bordered-all tbody>tr:last-child td{border-bottom-width:0}.wy-table-bordered{border:1px solid #e1e4e5}.wy-table-bordered-rows td{border-bottom:1px solid #e1e4e5}.wy-table-bordered-rows tbody>tr:last-child td{border-bottom-width:0}.wy-table-horizontal td,.wy-table-horizontal th{border-width:0 0 1px;border-bottom:1px solid #e1e4e5}.wy-table-horizontal tbody>tr:last-child td{border-bottom-width:0}.wy-table-responsive{margin-bottom:24px;max-width:100%;overflow:auto}.wy-table-responsive table{margin-bottom:0!important}.wy-table-responsive table td,.wy-table-responsive table th{white-space:nowrap}a{color:#2980b9;text-decoration:none;cursor:pointer}a:hover{color:#3091d1}a:visited{color:#9b59b6}html{height:100%}body,html{overflow-x:hidden}body{font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;font-weight:400;color:#404040;min-height:100%;background:#edf0f2}.wy-text-left{text-align:left}.wy-text-center{text-align:center}.wy-text-right{text-align:right}.wy-text-large{font-size:120%}.wy-text-normal{font-size:100%}.wy-text-small,small{font-size:80%}.wy-text-strike{text-decoration:line-through}.wy-text-warning{color:#e67e22!important}a.wy-text-warning:hover{color:#eb9950!important}.wy-text-info{color:#2980b9!important}a.wy-text-info:hover{color:#409ad5!important}.wy-text-success{color:#27ae60!important}a.wy-text-success:hover{color:#36d278!important}.wy-text-danger{color:#e74c3c!important}a.wy-text-danger:hover{color:#ed7669!important}.wy-text-neutral{color:#404040!important}a.wy-text-neutral:hover{color:#595959!important}.rst-content .toctree-wrapper>p.caption,h1,h2,h3,h4,h5,h6,legend{margin-top:0;font-weight:700;font-family:Roboto Slab,ff-tisa-web-pro,Georgia,Arial,sans-serif}p{line-height:24px;font-size:16px;margin:0 0 24px}h1{font-size:175%}.rst-content .toctree-wrapper>p.caption,h2{font-size:150%}h3{font-size:125%}h4{font-size:115%}h5{font-size:110%}h6{font-size:100%}hr{display:block;height:1px;border:0;border-top:1px solid #e1e4e5;margin:24px 0;padding:0}.rst-content code,.rst-content tt,code{white-space:nowrap;max-width:100%;background:#fff;border:1px solid #e1e4e5;font-size:75%;padding:0 5px;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;color:#e74c3c;overflow-x:auto}.rst-content tt.code-large,code.code-large{font-size:90%}.rst-content .section ul,.rst-content .toctree-wrapper ul,.rst-content section ul,.wy-plain-list-disc,article ul{list-style:disc;line-height:24px;margin-bottom:24px}.rst-content .section ul li,.rst-content .toctree-wrapper ul li,.rst-content section ul li,.wy-plain-list-disc li,article ul li{list-style:disc;margin-left:24px}.rst-content .section ul li p:last-child,.rst-content .section ul li ul,.rst-content .toctree-wrapper ul li p:last-child,.rst-content .toctree-wrapper ul li ul,.rst-content section ul li p:last-child,.rst-content section ul li ul,.wy-plain-list-disc li p:last-child,.wy-plain-list-disc li ul,article ul li p:last-child,article ul li ul{margin-bottom:0}.rst-content .section ul li li,.rst-content .toctree-wrapper ul li li,.rst-content section ul li li,.wy-plain-list-disc li li,article ul li li{list-style:circle}.rst-content .section ul li li li,.rst-content .toctree-wrapper ul li li li,.rst-content section ul li li li,.wy-plain-list-disc li li li,article ul li li li{list-style:square}.rst-content .section ul li ol li,.rst-content .toctree-wrapper ul li ol li,.rst-content section ul li ol li,.wy-plain-list-disc li ol li,article ul li ol li{list-style:decimal}.rst-content .section ol,.rst-content .section ol.arabic,.rst-content .toctree-wrapper ol,.rst-content .toctree-wrapper ol.arabic,.rst-content section ol,.rst-content section ol.arabic,.wy-plain-list-decimal,article ol{list-style:decimal;line-height:24px;margin-bottom:24px}.rst-content .section ol.arabic li,.rst-content .section ol li,.rst-content .toctree-wrapper ol.arabic li,.rst-content .toctree-wrapper ol li,.rst-content section ol.arabic li,.rst-content section ol li,.wy-plain-list-decimal li,article ol li{list-style:decimal;margin-left:24px}.rst-content .section ol.arabic li ul,.rst-content .section ol li p:last-child,.rst-content .section ol li ul,.rst-content .toctree-wrapper ol.arabic li ul,.rst-content .toctree-wrapper ol li p:last-child,.rst-content .toctree-wrapper ol li ul,.rst-content section ol.arabic li ul,.rst-content section ol li p:last-child,.rst-content section ol li ul,.wy-plain-list-decimal li p:last-child,.wy-plain-list-decimal li ul,article ol li p:last-child,article ol li ul{margin-bottom:0}.rst-content .section ol.arabic li ul li,.rst-content .section ol li ul li,.rst-content .toctree-wrapper ol.arabic li ul li,.rst-content .toctree-wrapper ol li ul li,.rst-content section ol.arabic li ul li,.rst-content section ol li ul li,.wy-plain-list-decimal li ul li,article ol li ul li{list-style:disc}.wy-breadcrumbs{*zoom:1}.wy-breadcrumbs:after,.wy-breadcrumbs:before{display:table;content:""}.wy-breadcrumbs:after{clear:both}.wy-breadcrumbs>li{display:inline-block;padding-top:5px}.wy-breadcrumbs>li.wy-breadcrumbs-aside{float:right}.rst-content .wy-breadcrumbs>li code,.rst-content .wy-breadcrumbs>li tt,.wy-breadcrumbs>li .rst-content tt,.wy-breadcrumbs>li code{all:inherit;color:inherit}.breadcrumb-item:before{content:"/";color:#bbb;font-size:13px;padding:0 6px 0 3px}.wy-breadcrumbs-extra{margin-bottom:0;color:#b3b3b3;font-size:80%;display:inline-block}@media screen and (max-width:480px){.wy-breadcrumbs-extra,.wy-breadcrumbs li.wy-breadcrumbs-aside{display:none}}@media print{.wy-breadcrumbs li.wy-breadcrumbs-aside{display:none}}html{font-size:16px}.wy-affix{position:fixed;top:1.618em}.wy-menu a:hover{text-decoration:none}.wy-menu-horiz{*zoom:1}.wy-menu-horiz:after,.wy-menu-horiz:before{display:table;content:""}.wy-menu-horiz:after{clear:both}.wy-menu-horiz li,.wy-menu-horiz ul{display:inline-block}.wy-menu-horiz li:hover{background:hsla(0,0%,100%,.1)}.wy-menu-horiz li.divide-left{border-left:1px solid #404040}.wy-menu-horiz li.divide-right{border-right:1px solid #404040}.wy-menu-horiz a{height:32px;display:inline-block;line-height:32px;padding:0 16px}.wy-menu-vertical{width:300px}.wy-menu-vertical header,.wy-menu-vertical p.caption{color:#55a5d9;height:32px;line-height:32px;padding:0 1.618em;margin:12px 0 0;display:block;font-weight:700;text-transform:uppercase;font-size:85%;white-space:nowrap}.wy-menu-vertical ul{margin-bottom:0}.wy-menu-vertical li.divide-top{border-top:1px solid #404040}.wy-menu-vertical li.divide-bottom{border-bottom:1px solid #404040}.wy-menu-vertical li.current{background:#e3e3e3}.wy-menu-vertical li.current a{color:grey;border-right:1px solid #c9c9c9;padding:.4045em 2.427em}.wy-menu-vertical li.current a:hover{background:#d6d6d6}.rst-content .wy-menu-vertical li tt,.wy-menu-vertical li .rst-content tt,.wy-menu-vertical li code{border:none;background:inherit;color:inherit;padding-left:0;padding-right:0}.wy-menu-vertical li button.toctree-expand{display:block;float:left;margin-left:-1.2em;line-height:18px;color:#4d4d4d;border:none;background:none;padding:0}.wy-menu-vertical li.current>a,.wy-menu-vertical li.on a{color:#404040;font-weight:700;position:relative;background:#fcfcfc;border:none;padding:.4045em 1.618em}.wy-menu-vertical li.current>a:hover,.wy-menu-vertical li.on a:hover{background:#fcfcfc}.wy-menu-vertical li.current>a:hover button.toctree-expand,.wy-menu-vertical li.on a:hover button.toctree-expand{color:grey}.wy-menu-vertical li.current>a button.toctree-expand,.wy-menu-vertical li.on a button.toctree-expand{display:block;line-height:18px;color:#333}.wy-menu-vertical li.toctree-l1.current>a{border-bottom:1px solid #c9c9c9;border-top:1px solid #c9c9c9}.wy-menu-vertical .toctree-l1.current .toctree-l2>ul,.wy-menu-vertical .toctree-l2.current .toctree-l3>ul,.wy-menu-vertical .toctree-l3.current .toctree-l4>ul,.wy-menu-vertical .toctree-l4.current .toctree-l5>ul,.wy-menu-vertical .toctree-l5.current .toctree-l6>ul,.wy-menu-vertical .toctree-l6.current .toctree-l7>ul,.wy-menu-vertical .toctree-l7.current .toctree-l8>ul,.wy-menu-vertical .toctree-l8.current .toctree-l9>ul,.wy-menu-vertical .toctree-l9.current .toctree-l10>ul,.wy-menu-vertical .toctree-l10.current .toctree-l11>ul{display:none}.wy-menu-vertical .toctree-l1.current .current.toctree-l2>ul,.wy-menu-vertical .toctree-l2.current .current.toctree-l3>ul,.wy-menu-vertical .toctree-l3.current .current.toctree-l4>ul,.wy-menu-vertical .toctree-l4.current .current.toctree-l5>ul,.wy-menu-vertical .toctree-l5.current .current.toctree-l6>ul,.wy-menu-vertical .toctree-l6.current .current.toctree-l7>ul,.wy-menu-vertical .toctree-l7.current .current.toctree-l8>ul,.wy-menu-vertical .toctree-l8.current .current.toctree-l9>ul,.wy-menu-vertical .toctree-l9.current .current.toctree-l10>ul,.wy-menu-vertical .toctree-l10.current .current.toctree-l11>ul{display:block}.wy-menu-vertical li.toctree-l3,.wy-menu-vertical li.toctree-l4{font-size:.9em}.wy-menu-vertical li.toctree-l2 a,.wy-menu-vertical li.toctree-l3 a,.wy-menu-vertical li.toctree-l4 a,.wy-menu-vertical li.toctree-l5 a,.wy-menu-vertical li.toctree-l6 a,.wy-menu-vertical li.toctree-l7 a,.wy-menu-vertical li.toctree-l8 a,.wy-menu-vertical li.toctree-l9 a,.wy-menu-vertical li.toctree-l10 a{color:#404040}.wy-menu-vertical li.toctree-l2 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l3 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l4 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l5 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l6 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l7 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l8 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l9 a:hover button.toctree-expand,.wy-menu-vertical li.toctree-l10 a:hover button.toctree-expand{color:grey}.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a,.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a,.wy-menu-vertical li.toctree-l4.current li.toctree-l5>a,.wy-menu-vertical li.toctree-l5.current li.toctree-l6>a,.wy-menu-vertical li.toctree-l6.current li.toctree-l7>a,.wy-menu-vertical li.toctree-l7.current li.toctree-l8>a,.wy-menu-vertical li.toctree-l8.current li.toctree-l9>a,.wy-menu-vertical li.toctree-l9.current li.toctree-l10>a,.wy-menu-vertical li.toctree-l10.current li.toctree-l11>a{display:block}.wy-menu-vertical li.toctree-l2.current>a{padding:.4045em 2.427em}.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a{padding:.4045em 1.618em .4045em 4.045em}.wy-menu-vertical li.toctree-l3.current>a{padding:.4045em 4.045em}.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a{padding:.4045em 1.618em .4045em 5.663em}.wy-menu-vertical li.toctree-l4.current>a{padding:.4045em 5.663em}.wy-menu-vertical li.toctree-l4.current li.toctree-l5>a{padding:.4045em 1.618em .4045em 7.281em}.wy-menu-vertical li.toctree-l5.current>a{padding:.4045em 7.281em}.wy-menu-vertical li.toctree-l5.current li.toctree-l6>a{padding:.4045em 1.618em .4045em 8.899em}.wy-menu-vertical li.toctree-l6.current>a{padding:.4045em 8.899em}.wy-menu-vertical li.toctree-l6.current li.toctree-l7>a{padding:.4045em 1.618em .4045em 10.517em}.wy-menu-vertical li.toctree-l7.current>a{padding:.4045em 10.517em}.wy-menu-vertical li.toctree-l7.current li.toctree-l8>a{padding:.4045em 1.618em .4045em 12.135em}.wy-menu-vertical li.toctree-l8.current>a{padding:.4045em 12.135em}.wy-menu-vertical li.toctree-l8.current li.toctree-l9>a{padding:.4045em 1.618em .4045em 13.753em}.wy-menu-vertical li.toctree-l9.current>a{padding:.4045em 13.753em}.wy-menu-vertical li.toctree-l9.current li.toctree-l10>a{padding:.4045em 1.618em .4045em 15.371em}.wy-menu-vertical li.toctree-l10.current>a{padding:.4045em 15.371em}.wy-menu-vertical li.toctree-l10.current li.toctree-l11>a{padding:.4045em 1.618em .4045em 16.989em}.wy-menu-vertical li.toctree-l2.current>a,.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a{background:#c9c9c9}.wy-menu-vertical li.toctree-l2 button.toctree-expand{color:#a3a3a3}.wy-menu-vertical li.toctree-l3.current>a,.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a{background:#bdbdbd}.wy-menu-vertical li.toctree-l3 button.toctree-expand{color:#969696}.wy-menu-vertical li.current ul{display:block}.wy-menu-vertical li ul{margin-bottom:0;display:none}.wy-menu-vertical li ul li a{margin-bottom:0;color:#d9d9d9;font-weight:400}.wy-menu-vertical a{line-height:18px;padding:.4045em 1.618em;display:block;position:relative;font-size:90%;color:#d9d9d9}.wy-menu-vertical a:hover{background-color:#4e4a4a;cursor:pointer}.wy-menu-vertical a:hover button.toctree-expand{color:#d9d9d9}.wy-menu-vertical a:active{background-color:#2980b9;cursor:pointer;color:#fff}.wy-menu-vertical a:active button.toctree-expand{color:#fff}.wy-side-nav-search{display:block;width:300px;padding:.809em;margin-bottom:.809em;z-index:200;background-color:#2980b9;text-align:center;color:#fcfcfc}.wy-side-nav-search input[type=text]{width:100%;border-radius:50px;padding:6px 12px;border-color:#2472a4}.wy-side-nav-search img{display:block;margin:auto auto .809em;height:45px;width:45px;background-color:#2980b9;padding:5px;border-radius:100%}.wy-side-nav-search .wy-dropdown>a,.wy-side-nav-search>a{color:#fcfcfc;font-size:100%;font-weight:700;display:inline-block;padding:4px 6px;margin-bottom:.809em;max-width:100%}.wy-side-nav-search .wy-dropdown>a:hover,.wy-side-nav-search>a:hover{background:hsla(0,0%,100%,.1)}.wy-side-nav-search .wy-dropdown>a img.logo,.wy-side-nav-search>a img.logo{display:block;margin:0 auto;height:auto;width:auto;border-radius:0;max-width:100%;background:transparent}.wy-side-nav-search .wy-dropdown>a.icon img.logo,.wy-side-nav-search>a.icon img.logo{margin-top:.85em}.wy-side-nav-search>div.version{margin-top:-.4045em;margin-bottom:.809em;font-weight:400;color:hsla(0,0%,100%,.3)}.wy-nav .wy-menu-vertical header{color:#2980b9}.wy-nav .wy-menu-vertical a{color:#b3b3b3}.wy-nav .wy-menu-vertical a:hover{background-color:#2980b9;color:#fff}[data-menu-wrap]{-webkit-transition:all .2s ease-in;-moz-transition:all .2s ease-in;transition:all .2s ease-in;position:absolute;opacity:1;width:100%;opacity:0}[data-menu-wrap].move-center{left:0;right:auto;opacity:1}[data-menu-wrap].move-left{right:auto;left:-100%;opacity:0}[data-menu-wrap].move-right{right:-100%;left:auto;opacity:0}.wy-body-for-nav{background:#fcfcfc}.wy-grid-for-nav{position:absolute;width:100%;height:100%}.wy-nav-side{position:fixed;top:0;bottom:0;left:0;padding-bottom:2em;width:300px;overflow-x:hidden;overflow-y:hidden;min-height:100%;color:#9b9b9b;background:#343131;z-index:200}.wy-side-scroll{width:320px;position:relative;overflow-x:hidden;overflow-y:scroll;height:100%}.wy-nav-top{display:none;background:#2980b9;color:#fff;padding:.4045em .809em;position:relative;line-height:50px;text-align:center;font-size:100%;*zoom:1}.wy-nav-top:after,.wy-nav-top:before{display:table;content:""}.wy-nav-top:after{clear:both}.wy-nav-top a{color:#fff;font-weight:700}.wy-nav-top img{margin-right:12px;height:45px;width:45px;background-color:#2980b9;padding:5px;border-radius:100%}.wy-nav-top i{font-size:30px;float:left;cursor:pointer;padding-top:inherit}.wy-nav-content-wrap{margin-left:300px;background:#fcfcfc;min-height:100%}.wy-nav-content{padding:1.618em 3.236em;height:100%;max-width:800px;margin:auto}.wy-body-mask{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.2);display:none;z-index:499}.wy-body-mask.on{display:block}footer{color:grey}footer p{margin-bottom:12px}.rst-content footer span.commit tt,footer span.commit .rst-content tt,footer span.commit code{padding:0;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;font-size:1em;background:none;border:none;color:grey}.rst-footer-buttons{*zoom:1}.rst-footer-buttons:after,.rst-footer-buttons:before{width:100%;display:table;content:""}.rst-footer-buttons:after{clear:both}.rst-breadcrumbs-buttons{margin-top:12px;*zoom:1}.rst-breadcrumbs-buttons:after,.rst-breadcrumbs-buttons:before{display:table;content:""}.rst-breadcrumbs-buttons:after{clear:both}#search-results .search li{margin-bottom:24px;border-bottom:1px solid #e1e4e5;padding-bottom:24px}#search-results .search li:first-child{border-top:1px solid #e1e4e5;padding-top:24px}#search-results .search li a{font-size:120%;margin-bottom:12px;display:inline-block}#search-results .context{color:grey;font-size:90%}.genindextable li>ul{margin-left:24px}@media screen and (max-width:768px){.wy-body-for-nav{background:#fcfcfc}.wy-nav-top{display:block}.wy-nav-side{left:-300px}.wy-nav-side.shift{width:85%;left:0}.wy-menu.wy-menu-vertical,.wy-side-nav-search,.wy-side-scroll{width:auto}.wy-nav-content-wrap{margin-left:0}.wy-nav-content-wrap .wy-nav-content{padding:1.618em}.wy-nav-content-wrap.shift{position:fixed;min-width:100%;left:85%;top:0;height:100%;overflow:hidden}}@media screen and (min-width:1100px){.wy-nav-content-wrap{background:rgba(0,0,0,.05)}.wy-nav-content{margin:0;background:#fcfcfc}}@media print{.rst-versions,.wy-nav-side,footer{display:none}.wy-nav-content-wrap{margin-left:0}}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;font-family:Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;z-index:400}.rst-versions a{color:#2980b9;text-decoration:none}.rst-versions .rst-badge-small{display:none}.rst-versions .rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27ae60;*zoom:1}.rst-versions .rst-current-version:after,.rst-versions .rst-current-version:before{display:table;content:""}.rst-versions .rst-current-version:after{clear:both}.rst-content .code-block-caption .rst-versions .rst-current-version .headerlink,.rst-content .eqno .rst-versions .rst-current-version .headerlink,.rst-content .rst-versions .rst-current-version .admonition-title,.rst-content code.download .rst-versions .rst-current-version span:first-child,.rst-content dl dt .rst-versions .rst-current-version .headerlink,.rst-content h1 .rst-versions .rst-current-version .headerlink,.rst-content h2 .rst-versions .rst-current-version .headerlink,.rst-content h3 .rst-versions .rst-current-version .headerlink,.rst-content h4 .rst-versions .rst-current-version .headerlink,.rst-content h5 .rst-versions .rst-current-version .headerlink,.rst-content h6 .rst-versions .rst-current-version .headerlink,.rst-content p .rst-versions .rst-current-version .headerlink,.rst-content table>caption .rst-versions .rst-current-version .headerlink,.rst-content tt.download .rst-versions .rst-current-version span:first-child,.rst-versions .rst-current-version .fa,.rst-versions .rst-current-version .icon,.rst-versions .rst-current-version .rst-content .admonition-title,.rst-versions .rst-current-version .rst-content .code-block-caption .headerlink,.rst-versions .rst-current-version .rst-content .eqno .headerlink,.rst-versions .rst-current-version .rst-content code.download span:first-child,.rst-versions .rst-current-version .rst-content dl dt .headerlink,.rst-versions .rst-current-version .rst-content h1 .headerlink,.rst-versions .rst-current-version .rst-content h2 .headerlink,.rst-versions .rst-current-version .rst-content h3 .headerlink,.rst-versions .rst-current-version .rst-content h4 .headerlink,.rst-versions .rst-current-version .rst-content h5 .headerlink,.rst-versions .rst-current-version .rst-content h6 .headerlink,.rst-versions .rst-current-version .rst-content p .headerlink,.rst-versions .rst-current-version .rst-content table>caption .headerlink,.rst-versions .rst-current-version .rst-content tt.download span:first-child,.rst-versions .rst-current-version .wy-menu-vertical li button.toctree-expand,.wy-menu-vertical li .rst-versions .rst-current-version button.toctree-expand{color:#fcfcfc}.rst-versions .rst-current-version .fa-book,.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version.rst-out-of-date{background-color:#e74c3c;color:#fff}.rst-versions .rst-current-version.rst-active-old-version{background-color:#f1c40f;color:#000}.rst-versions.shift-up{height:auto;max-height:100%;overflow-y:scroll}.rst-versions.shift-up .rst-other-versions{display:block}.rst-versions .rst-other-versions{font-size:90%;padding:12px;color:grey;display:none}.rst-versions .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 0;padding:0;border-top:1px solid #413d3d}.rst-versions .rst-other-versions dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px;max-height:90%}.rst-versions.rst-badge .fa-book,.rst-versions.rst-badge .icon-book{float:none;line-height:30px}.rst-versions.rst-badge.shift-up .rst-current-version{text-align:right}.rst-versions.rst-badge.shift-up .rst-current-version .fa-book,.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge>.rst-current-version{width:auto;height:30px;line-height:30px;padding:0 6px;display:block;text-align:center}@media screen and (max-width:768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}}.rst-content .toctree-wrapper>p.caption,.rst-content h1,.rst-content h2,.rst-content h3,.rst-content h4,.rst-content h5,.rst-content h6{margin-bottom:24px}.rst-content img{max-width:100%;height:auto}.rst-content div.figure,.rst-content figure{margin-bottom:24px}.rst-content div.figure .caption-text,.rst-content figure .caption-text{font-style:italic}.rst-content div.figure p:last-child.caption,.rst-content figure p:last-child.caption{margin-bottom:0}.rst-content div.figure.align-center,.rst-content figure.align-center{text-align:center}.rst-content .section>a>img,.rst-content .section>img,.rst-content section>a>img,.rst-content section>img{margin-bottom:24px}.rst-content abbr[title]{text-decoration:none}.rst-content.style-external-links a.reference.external:after{font-family:FontAwesome;content:"\f08e";color:#b3b3b3;vertical-align:super;font-size:60%;margin:0 .2em}.rst-content blockquote{margin-left:24px;line-height:24px;margin-bottom:24px}.rst-content pre.literal-block{white-space:pre;margin:0;padding:12px;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;display:block;overflow:auto}.rst-content div[class^=highlight],.rst-content pre.literal-block{border:1px solid #e1e4e5;overflow-x:auto;margin:1px 0 24px}.rst-content div[class^=highlight] div[class^=highlight],.rst-content pre.literal-block div[class^=highlight]{padding:0;border:none;margin:0}.rst-content div[class^=highlight] td.code{width:100%}.rst-content .linenodiv pre{border-right:1px solid #e6e9ea;margin:0;padding:12px;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;user-select:none;pointer-events:none}.rst-content div[class^=highlight] pre{white-space:pre;margin:0;padding:12px;display:block;overflow:auto}.rst-content div[class^=highlight] pre .hll{display:block;margin:0 -12px;padding:0 12px}.rst-content .linenodiv pre,.rst-content div[class^=highlight] pre,.rst-content pre.literal-block{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;font-size:12px;line-height:1.4}.rst-content div.highlight .gp,.rst-content div.highlight span.linenos{user-select:none;pointer-events:none}.rst-content div.highlight span.linenos{display:inline-block;padding-left:0;padding-right:12px;margin-right:12px;border-right:1px solid #e6e9ea}.rst-content .code-block-caption{font-style:italic;font-size:85%;line-height:1;padding:1em 0;text-align:center}@media print{.rst-content .codeblock,.rst-content div[class^=highlight],.rst-content div[class^=highlight] pre{white-space:pre-wrap}}.rst-content .admonition,.rst-content .admonition-todo,.rst-content .attention,.rst-content .caution,.rst-content .danger,.rst-content .error,.rst-content .hint,.rst-content .important,.rst-content .note,.rst-content .seealso,.rst-content .tip,.rst-content .warning{clear:both}.rst-content .admonition-todo .last,.rst-content .admonition-todo>:last-child,.rst-content .admonition .last,.rst-content .admonition>:last-child,.rst-content .attention .last,.rst-content .attention>:last-child,.rst-content .caution .last,.rst-content .caution>:last-child,.rst-content .danger .last,.rst-content .danger>:last-child,.rst-content .error .last,.rst-content .error>:last-child,.rst-content .hint .last,.rst-content .hint>:last-child,.rst-content .important .last,.rst-content .important>:last-child,.rst-content .note .last,.rst-content .note>:last-child,.rst-content .seealso .last,.rst-content .seealso>:last-child,.rst-content .tip .last,.rst-content .tip>:last-child,.rst-content .warning .last,.rst-content .warning>:last-child{margin-bottom:0}.rst-content .admonition-title:before{margin-right:4px}.rst-content .admonition table{border-color:rgba(0,0,0,.1)}.rst-content .admonition table td,.rst-content .admonition table th{background:transparent!important;border-color:rgba(0,0,0,.1)!important}.rst-content .section ol.loweralpha,.rst-content .section ol.loweralpha>li,.rst-content .toctree-wrapper ol.loweralpha,.rst-content .toctree-wrapper ol.loweralpha>li,.rst-content section ol.loweralpha,.rst-content section ol.loweralpha>li{list-style:lower-alpha}.rst-content .section ol.upperalpha,.rst-content .section ol.upperalpha>li,.rst-content .toctree-wrapper ol.upperalpha,.rst-content .toctree-wrapper ol.upperalpha>li,.rst-content section ol.upperalpha,.rst-content section ol.upperalpha>li{list-style:upper-alpha}.rst-content .section ol li>*,.rst-content .section ul li>*,.rst-content .toctree-wrapper ol li>*,.rst-content .toctree-wrapper ul li>*,.rst-content section ol li>*,.rst-content section ul li>*{margin-top:12px;margin-bottom:12px}.rst-content .section ol li>:first-child,.rst-content .section ul li>:first-child,.rst-content .toctree-wrapper ol li>:first-child,.rst-content .toctree-wrapper ul li>:first-child,.rst-content section ol li>:first-child,.rst-content section ul li>:first-child{margin-top:0}.rst-content .section ol li>p,.rst-content .section ol li>p:last-child,.rst-content .section ul li>p,.rst-content .section ul li>p:last-child,.rst-content .toctree-wrapper ol li>p,.rst-content .toctree-wrapper ol li>p:last-child,.rst-content .toctree-wrapper ul li>p,.rst-content .toctree-wrapper ul li>p:last-child,.rst-content section ol li>p,.rst-content section ol li>p:last-child,.rst-content section ul li>p,.rst-content section ul li>p:last-child{margin-bottom:12px}.rst-content .section ol li>p:only-child,.rst-content .section ol li>p:only-child:last-child,.rst-content .section ul li>p:only-child,.rst-content .section ul li>p:only-child:last-child,.rst-content .toctree-wrapper ol li>p:only-child,.rst-content .toctree-wrapper ol li>p:only-child:last-child,.rst-content .toctree-wrapper ul li>p:only-child,.rst-content .toctree-wrapper ul li>p:only-child:last-child,.rst-content section ol li>p:only-child,.rst-content section ol li>p:only-child:last-child,.rst-content section ul li>p:only-child,.rst-content section ul li>p:only-child:last-child{margin-bottom:0}.rst-content .section ol li>ol,.rst-content .section ol li>ul,.rst-content .section ul li>ol,.rst-content .section ul li>ul,.rst-content .toctree-wrapper ol li>ol,.rst-content .toctree-wrapper ol li>ul,.rst-content .toctree-wrapper ul li>ol,.rst-content .toctree-wrapper ul li>ul,.rst-content section ol li>ol,.rst-content section ol li>ul,.rst-content section ul li>ol,.rst-content section ul li>ul{margin-bottom:12px}.rst-content .section ol.simple li>*,.rst-content .section ol.simple li ol,.rst-content .section ol.simple li ul,.rst-content .section ul.simple li>*,.rst-content .section ul.simple li ol,.rst-content .section ul.simple li ul,.rst-content .toctree-wrapper ol.simple li>*,.rst-content .toctree-wrapper ol.simple li ol,.rst-content .toctree-wrapper ol.simple li ul,.rst-content .toctree-wrapper ul.simple li>*,.rst-content .toctree-wrapper ul.simple li ol,.rst-content .toctree-wrapper ul.simple li ul,.rst-content section ol.simple li>*,.rst-content section ol.simple li ol,.rst-content section ol.simple li ul,.rst-content section ul.simple li>*,.rst-content section ul.simple li ol,.rst-content section ul.simple li ul{margin-top:0;margin-bottom:0}.rst-content .line-block{margin-left:0;margin-bottom:24px;line-height:24px}.rst-content .line-block .line-block{margin-left:24px;margin-bottom:0}.rst-content .topic-title{font-weight:700;margin-bottom:12px}.rst-content .toc-backref{color:#404040}.rst-content .align-right{float:right;margin:0 0 24px 24px}.rst-content .align-left{float:left;margin:0 24px 24px 0}.rst-content .align-center{margin:auto}.rst-content .align-center:not(table){display:block}.rst-content .code-block-caption .headerlink,.rst-content .eqno .headerlink,.rst-content .toctree-wrapper>p.caption .headerlink,.rst-content dl dt .headerlink,.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content p.caption .headerlink,.rst-content p .headerlink,.rst-content table>caption .headerlink{opacity:0;font-size:14px;font-family:FontAwesome;margin-left:.5em}.rst-content .code-block-caption .headerlink:focus,.rst-content .code-block-caption:hover .headerlink,.rst-content .eqno .headerlink:focus,.rst-content .eqno:hover .headerlink,.rst-content .toctree-wrapper>p.caption .headerlink:focus,.rst-content .toctree-wrapper>p.caption:hover .headerlink,.rst-content dl dt .headerlink:focus,.rst-content dl dt:hover .headerlink,.rst-content h1 .headerlink:focus,.rst-content h1:hover .headerlink,.rst-content h2 .headerlink:focus,.rst-content h2:hover .headerlink,.rst-content h3 .headerlink:focus,.rst-content h3:hover .headerlink,.rst-content h4 .headerlink:focus,.rst-content h4:hover .headerlink,.rst-content h5 .headerlink:focus,.rst-content h5:hover .headerlink,.rst-content h6 .headerlink:focus,.rst-content h6:hover .headerlink,.rst-content p.caption .headerlink:focus,.rst-content p.caption:hover .headerlink,.rst-content p .headerlink:focus,.rst-content p:hover .headerlink,.rst-content table>caption .headerlink:focus,.rst-content table>caption:hover .headerlink{opacity:1}.rst-content p a{overflow-wrap:anywhere}.rst-content .wy-table td p,.rst-content .wy-table td ul,.rst-content .wy-table th p,.rst-content .wy-table th ul,.rst-content table.docutils td p,.rst-content table.docutils td ul,.rst-content table.docutils th p,.rst-content table.docutils th ul,.rst-content table.field-list td p,.rst-content table.field-list td ul,.rst-content table.field-list th p,.rst-content table.field-list th ul{font-size:inherit}.rst-content .btn:focus{outline:2px solid}.rst-content table>caption .headerlink:after{font-size:12px}.rst-content .centered{text-align:center}.rst-content .sidebar{float:right;width:40%;display:block;margin:0 0 24px 24px;padding:24px;background:#f3f6f6;border:1px solid #e1e4e5}.rst-content .sidebar dl,.rst-content .sidebar p,.rst-content .sidebar ul{font-size:90%}.rst-content .sidebar .last,.rst-content .sidebar>:last-child{margin-bottom:0}.rst-content .sidebar .sidebar-title{display:block;font-family:Roboto Slab,ff-tisa-web-pro,Georgia,Arial,sans-serif;font-weight:700;background:#e1e4e5;padding:6px 12px;margin:-24px -24px 24px;font-size:100%}.rst-content .highlighted{background:#f1c40f;box-shadow:0 0 0 2px #f1c40f;display:inline;font-weight:700}.rst-content .citation-reference,.rst-content .footnote-reference{vertical-align:baseline;position:relative;top:-.4em;line-height:0;font-size:90%}.rst-content .citation-reference>span.fn-bracket,.rst-content .footnote-reference>span.fn-bracket{display:none}.rst-content .hlist{width:100%}.rst-content dl dt span.classifier:before{content:" : "}.rst-content dl dt span.classifier-delimiter{display:none!important}html.writer-html4 .rst-content table.docutils.citation,html.writer-html4 .rst-content table.docutils.footnote{background:none;border:none}html.writer-html4 .rst-content table.docutils.citation td,html.writer-html4 .rst-content table.docutils.citation tr,html.writer-html4 .rst-content table.docutils.footnote td,html.writer-html4 .rst-content table.docutils.footnote tr{border:none;background-color:transparent!important;white-space:normal}html.writer-html4 .rst-content table.docutils.citation td.label,html.writer-html4 .rst-content table.docutils.footnote td.label{padding-left:0;padding-right:0;vertical-align:top}html.writer-html5 .rst-content dl.citation,html.writer-html5 .rst-content dl.field-list,html.writer-html5 .rst-content dl.footnote{display:grid;grid-template-columns:auto minmax(80%,95%)}html.writer-html5 .rst-content dl.citation>dt,html.writer-html5 .rst-content dl.field-list>dt,html.writer-html5 .rst-content dl.footnote>dt{display:inline-grid;grid-template-columns:max-content auto}html.writer-html5 .rst-content aside.citation,html.writer-html5 .rst-content aside.footnote,html.writer-html5 .rst-content div.citation{display:grid;grid-template-columns:auto auto minmax(.65rem,auto) minmax(40%,95%)}html.writer-html5 .rst-content aside.citation>span.label,html.writer-html5 .rst-content aside.footnote>span.label,html.writer-html5 .rst-content div.citation>span.label{grid-column-start:1;grid-column-end:2}html.writer-html5 .rst-content aside.citation>span.backrefs,html.writer-html5 .rst-content aside.footnote>span.backrefs,html.writer-html5 .rst-content div.citation>span.backrefs{grid-column-start:2;grid-column-end:3;grid-row-start:1;grid-row-end:3}html.writer-html5 .rst-content aside.citation>p,html.writer-html5 .rst-content aside.footnote>p,html.writer-html5 .rst-content div.citation>p{grid-column-start:4;grid-column-end:5}html.writer-html5 .rst-content dl.citation,html.writer-html5 .rst-content dl.field-list,html.writer-html5 .rst-content dl.footnote{margin-bottom:24px}html.writer-html5 .rst-content dl.citation>dt,html.writer-html5 .rst-content dl.field-list>dt,html.writer-html5 .rst-content dl.footnote>dt{padding-left:1rem}html.writer-html5 .rst-content dl.citation>dd,html.writer-html5 .rst-content dl.citation>dt,html.writer-html5 .rst-content dl.field-list>dd,html.writer-html5 .rst-content dl.field-list>dt,html.writer-html5 .rst-content dl.footnote>dd,html.writer-html5 .rst-content dl.footnote>dt{margin-bottom:0}html.writer-html5 .rst-content dl.citation,html.writer-html5 .rst-content dl.footnote{font-size:.9rem}html.writer-html5 .rst-content dl.citation>dt,html.writer-html5 .rst-content dl.footnote>dt{margin:0 .5rem .5rem 0;line-height:1.2rem;word-break:break-all;font-weight:400}html.writer-html5 .rst-content dl.citation>dt>span.brackets:before,html.writer-html5 .rst-content dl.footnote>dt>span.brackets:before{content:"["}html.writer-html5 .rst-content dl.citation>dt>span.brackets:after,html.writer-html5 .rst-content dl.footnote>dt>span.brackets:after{content:"]"}html.writer-html5 .rst-content dl.citation>dt>span.fn-backref,html.writer-html5 .rst-content dl.footnote>dt>span.fn-backref{text-align:left;font-style:italic;margin-left:.65rem;word-break:break-word;word-spacing:-.1rem;max-width:5rem}html.writer-html5 .rst-content dl.citation>dt>span.fn-backref>a,html.writer-html5 .rst-content dl.footnote>dt>span.fn-backref>a{word-break:keep-all}html.writer-html5 .rst-content dl.citation>dt>span.fn-backref>a:not(:first-child):before,html.writer-html5 .rst-content dl.footnote>dt>span.fn-backref>a:not(:first-child):before{content:" "}html.writer-html5 .rst-content dl.citation>dd,html.writer-html5 .rst-content dl.footnote>dd{margin:0 0 .5rem;line-height:1.2rem}html.writer-html5 .rst-content dl.citation>dd p,html.writer-html5 .rst-content dl.footnote>dd p{font-size:.9rem}html.writer-html5 .rst-content aside.citation,html.writer-html5 .rst-content aside.footnote,html.writer-html5 .rst-content div.citation{padding-left:1rem;padding-right:1rem;font-size:.9rem;line-height:1.2rem}html.writer-html5 .rst-content aside.citation p,html.writer-html5 .rst-content aside.footnote p,html.writer-html5 .rst-content div.citation p{font-size:.9rem;line-height:1.2rem;margin-bottom:12px}html.writer-html5 .rst-content aside.citation span.backrefs,html.writer-html5 .rst-content aside.footnote span.backrefs,html.writer-html5 .rst-content div.citation span.backrefs{text-align:left;font-style:italic;margin-left:.65rem;word-break:break-word;word-spacing:-.1rem;max-width:5rem}html.writer-html5 .rst-content aside.citation span.backrefs>a,html.writer-html5 .rst-content aside.footnote span.backrefs>a,html.writer-html5 .rst-content div.citation span.backrefs>a{word-break:keep-all}html.writer-html5 .rst-content aside.citation span.backrefs>a:not(:first-child):before,html.writer-html5 .rst-content aside.footnote span.backrefs>a:not(:first-child):before,html.writer-html5 .rst-content div.citation span.backrefs>a:not(:first-child):before{content:" "}html.writer-html5 .rst-content aside.citation span.label,html.writer-html5 .rst-content aside.footnote span.label,html.writer-html5 .rst-content div.citation span.label{line-height:1.2rem}html.writer-html5 .rst-content aside.citation-list,html.writer-html5 .rst-content aside.footnote-list,html.writer-html5 .rst-content div.citation-list{margin-bottom:24px}html.writer-html5 .rst-content dl.option-list kbd{font-size:.9rem}.rst-content table.docutils.footnote,html.writer-html4 .rst-content table.docutils.citation,html.writer-html5 .rst-content aside.footnote,html.writer-html5 .rst-content aside.footnote-list aside.footnote,html.writer-html5 .rst-content div.citation-list>div.citation,html.writer-html5 .rst-content dl.citation,html.writer-html5 .rst-content dl.footnote{color:grey}.rst-content table.docutils.footnote code,.rst-content table.docutils.footnote tt,html.writer-html4 .rst-content table.docutils.citation code,html.writer-html4 .rst-content table.docutils.citation tt,html.writer-html5 .rst-content aside.footnote-list aside.footnote code,html.writer-html5 .rst-content aside.footnote-list aside.footnote tt,html.writer-html5 .rst-content aside.footnote code,html.writer-html5 .rst-content aside.footnote tt,html.writer-html5 .rst-content div.citation-list>div.citation code,html.writer-html5 .rst-content div.citation-list>div.citation tt,html.writer-html5 .rst-content dl.citation code,html.writer-html5 .rst-content dl.citation tt,html.writer-html5 .rst-content dl.footnote code,html.writer-html5 .rst-content dl.footnote tt{color:#555}.rst-content .wy-table-responsive.citation,.rst-content .wy-table-responsive.footnote{margin-bottom:0}.rst-content .wy-table-responsive.citation+:not(.citation),.rst-content .wy-table-responsive.footnote+:not(.footnote){margin-top:24px}.rst-content .wy-table-responsive.citation:last-child,.rst-content .wy-table-responsive.footnote:last-child{margin-bottom:24px}.rst-content table.docutils th{border-color:#e1e4e5}html.writer-html5 .rst-content table.docutils th{border:1px solid #e1e4e5}html.writer-html5 .rst-content table.docutils td>p,html.writer-html5 .rst-content table.docutils th>p{line-height:1rem;margin-bottom:0;font-size:.9rem}.rst-content table.docutils td .last,.rst-content table.docutils td .last>:last-child{margin-bottom:0}.rst-content table.field-list,.rst-content table.field-list td{border:none}.rst-content table.field-list td p{line-height:inherit}.rst-content table.field-list td>strong{display:inline-block}.rst-content table.field-list .field-name{padding-right:10px;text-align:left;white-space:nowrap}.rst-content table.field-list .field-body{text-align:left}.rst-content code,.rst-content tt{color:#000;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;padding:2px 5px}.rst-content code big,.rst-content code em,.rst-content tt big,.rst-content tt em{font-size:100%!important;line-height:normal}.rst-content code.literal,.rst-content tt.literal{color:#e74c3c;white-space:normal}.rst-content code.xref,.rst-content tt.xref,a .rst-content code,a .rst-content tt{font-weight:700;color:#404040;overflow-wrap:normal}.rst-content kbd,.rst-content pre,.rst-content samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace}.rst-content a code,.rst-content a tt{color:#2980b9}.rst-content dl{margin-bottom:24px}.rst-content dl dt{font-weight:700;margin-bottom:12px}.rst-content dl ol,.rst-content dl p,.rst-content dl table,.rst-content dl ul{margin-bottom:12px}.rst-content dl dd{margin:0 0 12px 24px;line-height:24px}.rst-content dl dd>ol:last-child,.rst-content dl dd>p:last-child,.rst-content dl dd>table:last-child,.rst-content dl dd>ul:last-child{margin-bottom:0}html.writer-html4 .rst-content dl:not(.docutils),html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple){margin-bottom:24px}html.writer-html4 .rst-content dl:not(.docutils)>dt,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt{display:table;margin:6px 0;font-size:90%;line-height:normal;background:#e7f2fa;color:#2980b9;border-top:3px solid #6ab0de;padding:6px;position:relative}html.writer-html4 .rst-content dl:not(.docutils)>dt:before,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt:before{color:#6ab0de}html.writer-html4 .rst-content dl:not(.docutils)>dt .headerlink,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt .headerlink{color:#404040;font-size:100%!important}html.writer-html4 .rst-content dl:not(.docutils) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt{margin-bottom:6px;border:none;border-left:3px solid #ccc;background:#f0f0f0;color:#555}html.writer-html4 .rst-content dl:not(.docutils) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt .headerlink,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt .headerlink{color:#404040;font-size:100%!important}html.writer-html4 .rst-content dl:not(.docutils)>dt:first-child,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt:first-child{margin-top:0}html.writer-html4 .rst-content dl:not(.docutils) code.descclassname,html.writer-html4 .rst-content dl:not(.docutils) code.descname,html.writer-html4 .rst-content dl:not(.docutils) tt.descclassname,html.writer-html4 .rst-content dl:not(.docutils) tt.descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) code.descclassname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) code.descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) tt.descclassname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) tt.descname{background-color:transparent;border:none;padding:0;font-size:100%!important}html.writer-html4 .rst-content dl:not(.docutils) code.descname,html.writer-html4 .rst-content dl:not(.docutils) tt.descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) code.descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) tt.descname{font-weight:700}html.writer-html4 .rst-content dl:not(.docutils) .optional,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .optional{display:inline-block;padding:0 4px;color:#000;font-weight:700}html.writer-html4 .rst-content dl:not(.docutils) .property,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .property{display:inline-block;padding-right:8px;max-width:100%}html.writer-html4 .rst-content dl:not(.docutils) .k,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .k{font-style:italic}html.writer-html4 .rst-content dl:not(.docutils) .descclassname,html.writer-html4 .rst-content dl:not(.docutils) .descname,html.writer-html4 .rst-content dl:not(.docutils) .sig-name,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .descclassname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .sig-name{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;color:#000}.rst-content .viewcode-back,.rst-content .viewcode-link{display:inline-block;color:#27ae60;font-size:80%;padding-left:24px}.rst-content .viewcode-back{display:block;float:right}.rst-content p.rubric{margin-bottom:12px;font-weight:700}.rst-content code.download,.rst-content tt.download{background:inherit;padding:inherit;font-weight:400;font-family:inherit;font-size:inherit;color:inherit;border:inherit;white-space:inherit}.rst-content code.download span:first-child,.rst-content tt.download span:first-child{-webkit-font-smoothing:subpixel-antialiased}.rst-content code.download span:first-child:before,.rst-content tt.download span:first-child:before{margin-right:4px}.rst-content .guilabel,.rst-content .menuselection{font-size:80%;font-weight:700;border-radius:4px;padding:2.4px 6px;margin:auto 2px}.rst-content .guilabel,.rst-content .menuselection{border:1px solid #7fbbe3;background:#e7f2fa}.rst-content :not(dl.option-list)>:not(dt):not(kbd):not(.kbd)>.kbd,.rst-content :not(dl.option-list)>:not(dt):not(kbd):not(.kbd)>kbd{color:inherit;font-size:80%;background-color:#fff;border:1px solid #a6a6a6;border-radius:4px;box-shadow:0 2px grey;padding:2.4px 6px;margin:auto 0}.rst-content .versionmodified{font-style:italic}@media screen and (max-width:480px){.rst-content .sidebar{width:100%}}span[id*=MathJax-Span]{color:#404040}.math{text-align:center}@font-face{font-family:Lato;src:url(fonts/lato-normal.woff2?bd03a2cc277bbbc338d464e679fe9942) format("woff2"),url(fonts/lato-normal.woff?27bd77b9162d388cb8d4c4217c7c5e2a) format("woff");font-weight:400;font-style:normal;font-display:block}@font-face{font-family:Lato;src:url(fonts/lato-bold.woff2?cccb897485813c7c256901dbca54ecf2) format("woff2"),url(fonts/lato-bold.woff?d878b6c29b10beca227e9eef4246111b) format("woff");font-weight:700;font-style:normal;font-display:block}@font-face{font-family:Lato;src:url(fonts/lato-bold-italic.woff2?0b6bb6725576b072c5d0b02ecdd1900d) format("woff2"),url(fonts/lato-bold-italic.woff?9c7e4e9eb485b4a121c760e61bc3707c) format("woff");font-weight:700;font-style:italic;font-display:block}@font-face{font-family:Lato;src:url(fonts/lato-normal-italic.woff2?4eb103b4d12be57cb1d040ed5e162e9d) format("woff2"),url(fonts/lato-normal-italic.woff?f28f2d6482446544ef1ea1ccc6dd5892) format("woff");font-weight:400;font-style:italic;font-display:block}@font-face{font-family:Roboto Slab;font-style:normal;font-weight:400;src:url(fonts/Roboto-Slab-Regular.woff2?7abf5b8d04d26a2cafea937019bca958) format("woff2"),url(fonts/Roboto-Slab-Regular.woff?c1be9284088d487c5e3ff0a10a92e58c) format("woff");font-display:block}@font-face{font-family:Roboto Slab;font-style:normal;font-weight:700;src:url(fonts/Roboto-Slab-Bold.woff2?9984f4a9bda09be08e83f2506954adbe) format("woff2"),url(fonts/Roboto-Slab-Bold.woff?bed5564a116b05148e3b3bea6fb1162a) format("woff");font-display:block} \ No newline at end of file diff --git a/_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css b/_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css new file mode 100644 index 0000000..eb19f69 --- /dev/null +++ b/_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css @@ -0,0 +1 @@ +.sd-bg-primary{background-color:var(--sd-color-primary) !important}.sd-bg-text-primary{color:var(--sd-color-primary-text) !important}button.sd-bg-primary:focus,button.sd-bg-primary:hover{background-color:var(--sd-color-primary-highlight) !important}a.sd-bg-primary:focus,a.sd-bg-primary:hover{background-color:var(--sd-color-primary-highlight) !important}.sd-bg-secondary{background-color:var(--sd-color-secondary) !important}.sd-bg-text-secondary{color:var(--sd-color-secondary-text) !important}button.sd-bg-secondary:focus,button.sd-bg-secondary:hover{background-color:var(--sd-color-secondary-highlight) !important}a.sd-bg-secondary:focus,a.sd-bg-secondary:hover{background-color:var(--sd-color-secondary-highlight) !important}.sd-bg-success{background-color:var(--sd-color-success) !important}.sd-bg-text-success{color:var(--sd-color-success-text) !important}button.sd-bg-success:focus,button.sd-bg-success:hover{background-color:var(--sd-color-success-highlight) !important}a.sd-bg-success:focus,a.sd-bg-success:hover{background-color:var(--sd-color-success-highlight) !important}.sd-bg-info{background-color:var(--sd-color-info) !important}.sd-bg-text-info{color:var(--sd-color-info-text) !important}button.sd-bg-info:focus,button.sd-bg-info:hover{background-color:var(--sd-color-info-highlight) !important}a.sd-bg-info:focus,a.sd-bg-info:hover{background-color:var(--sd-color-info-highlight) !important}.sd-bg-warning{background-color:var(--sd-color-warning) !important}.sd-bg-text-warning{color:var(--sd-color-warning-text) !important}button.sd-bg-warning:focus,button.sd-bg-warning:hover{background-color:var(--sd-color-warning-highlight) !important}a.sd-bg-warning:focus,a.sd-bg-warning:hover{background-color:var(--sd-color-warning-highlight) !important}.sd-bg-danger{background-color:var(--sd-color-danger) !important}.sd-bg-text-danger{color:var(--sd-color-danger-text) !important}button.sd-bg-danger:focus,button.sd-bg-danger:hover{background-color:var(--sd-color-danger-highlight) !important}a.sd-bg-danger:focus,a.sd-bg-danger:hover{background-color:var(--sd-color-danger-highlight) !important}.sd-bg-light{background-color:var(--sd-color-light) !important}.sd-bg-text-light{color:var(--sd-color-light-text) !important}button.sd-bg-light:focus,button.sd-bg-light:hover{background-color:var(--sd-color-light-highlight) !important}a.sd-bg-light:focus,a.sd-bg-light:hover{background-color:var(--sd-color-light-highlight) !important}.sd-bg-muted{background-color:var(--sd-color-muted) !important}.sd-bg-text-muted{color:var(--sd-color-muted-text) !important}button.sd-bg-muted:focus,button.sd-bg-muted:hover{background-color:var(--sd-color-muted-highlight) !important}a.sd-bg-muted:focus,a.sd-bg-muted:hover{background-color:var(--sd-color-muted-highlight) !important}.sd-bg-dark{background-color:var(--sd-color-dark) !important}.sd-bg-text-dark{color:var(--sd-color-dark-text) !important}button.sd-bg-dark:focus,button.sd-bg-dark:hover{background-color:var(--sd-color-dark-highlight) !important}a.sd-bg-dark:focus,a.sd-bg-dark:hover{background-color:var(--sd-color-dark-highlight) !important}.sd-bg-black{background-color:var(--sd-color-black) !important}.sd-bg-text-black{color:var(--sd-color-black-text) !important}button.sd-bg-black:focus,button.sd-bg-black:hover{background-color:var(--sd-color-black-highlight) !important}a.sd-bg-black:focus,a.sd-bg-black:hover{background-color:var(--sd-color-black-highlight) !important}.sd-bg-white{background-color:var(--sd-color-white) !important}.sd-bg-text-white{color:var(--sd-color-white-text) !important}button.sd-bg-white:focus,button.sd-bg-white:hover{background-color:var(--sd-color-white-highlight) !important}a.sd-bg-white:focus,a.sd-bg-white:hover{background-color:var(--sd-color-white-highlight) !important}.sd-text-primary,.sd-text-primary>p{color:var(--sd-color-primary) !important}a.sd-text-primary:focus,a.sd-text-primary:hover{color:var(--sd-color-primary-highlight) !important}.sd-text-secondary,.sd-text-secondary>p{color:var(--sd-color-secondary) !important}a.sd-text-secondary:focus,a.sd-text-secondary:hover{color:var(--sd-color-secondary-highlight) !important}.sd-text-success,.sd-text-success>p{color:var(--sd-color-success) !important}a.sd-text-success:focus,a.sd-text-success:hover{color:var(--sd-color-success-highlight) !important}.sd-text-info,.sd-text-info>p{color:var(--sd-color-info) !important}a.sd-text-info:focus,a.sd-text-info:hover{color:var(--sd-color-info-highlight) !important}.sd-text-warning,.sd-text-warning>p{color:var(--sd-color-warning) !important}a.sd-text-warning:focus,a.sd-text-warning:hover{color:var(--sd-color-warning-highlight) !important}.sd-text-danger,.sd-text-danger>p{color:var(--sd-color-danger) !important}a.sd-text-danger:focus,a.sd-text-danger:hover{color:var(--sd-color-danger-highlight) !important}.sd-text-light,.sd-text-light>p{color:var(--sd-color-light) !important}a.sd-text-light:focus,a.sd-text-light:hover{color:var(--sd-color-light-highlight) !important}.sd-text-muted,.sd-text-muted>p{color:var(--sd-color-muted) !important}a.sd-text-muted:focus,a.sd-text-muted:hover{color:var(--sd-color-muted-highlight) !important}.sd-text-dark,.sd-text-dark>p{color:var(--sd-color-dark) !important}a.sd-text-dark:focus,a.sd-text-dark:hover{color:var(--sd-color-dark-highlight) !important}.sd-text-black,.sd-text-black>p{color:var(--sd-color-black) !important}a.sd-text-black:focus,a.sd-text-black:hover{color:var(--sd-color-black-highlight) !important}.sd-text-white,.sd-text-white>p{color:var(--sd-color-white) !important}a.sd-text-white:focus,a.sd-text-white:hover{color:var(--sd-color-white-highlight) !important}.sd-outline-primary{border-color:var(--sd-color-primary) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-primary:focus,a.sd-outline-primary:hover{border-color:var(--sd-color-primary-highlight) !important}.sd-outline-secondary{border-color:var(--sd-color-secondary) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-secondary:focus,a.sd-outline-secondary:hover{border-color:var(--sd-color-secondary-highlight) !important}.sd-outline-success{border-color:var(--sd-color-success) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-success:focus,a.sd-outline-success:hover{border-color:var(--sd-color-success-highlight) !important}.sd-outline-info{border-color:var(--sd-color-info) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-info:focus,a.sd-outline-info:hover{border-color:var(--sd-color-info-highlight) !important}.sd-outline-warning{border-color:var(--sd-color-warning) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-warning:focus,a.sd-outline-warning:hover{border-color:var(--sd-color-warning-highlight) !important}.sd-outline-danger{border-color:var(--sd-color-danger) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-danger:focus,a.sd-outline-danger:hover{border-color:var(--sd-color-danger-highlight) !important}.sd-outline-light{border-color:var(--sd-color-light) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-light:focus,a.sd-outline-light:hover{border-color:var(--sd-color-light-highlight) !important}.sd-outline-muted{border-color:var(--sd-color-muted) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-muted:focus,a.sd-outline-muted:hover{border-color:var(--sd-color-muted-highlight) !important}.sd-outline-dark{border-color:var(--sd-color-dark) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-dark:focus,a.sd-outline-dark:hover{border-color:var(--sd-color-dark-highlight) !important}.sd-outline-black{border-color:var(--sd-color-black) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-black:focus,a.sd-outline-black:hover{border-color:var(--sd-color-black-highlight) !important}.sd-outline-white{border-color:var(--sd-color-white) !important;border-style:solid !important;border-width:1px !important}a.sd-outline-white:focus,a.sd-outline-white:hover{border-color:var(--sd-color-white-highlight) !important}.sd-bg-transparent{background-color:transparent !important}.sd-outline-transparent{border-color:transparent !important}.sd-text-transparent{color:transparent !important}.sd-p-0{padding:0 !important}.sd-pt-0,.sd-py-0{padding-top:0 !important}.sd-pr-0,.sd-px-0{padding-right:0 !important}.sd-pb-0,.sd-py-0{padding-bottom:0 !important}.sd-pl-0,.sd-px-0{padding-left:0 !important}.sd-p-1{padding:.25rem !important}.sd-pt-1,.sd-py-1{padding-top:.25rem !important}.sd-pr-1,.sd-px-1{padding-right:.25rem !important}.sd-pb-1,.sd-py-1{padding-bottom:.25rem !important}.sd-pl-1,.sd-px-1{padding-left:.25rem !important}.sd-p-2{padding:.5rem !important}.sd-pt-2,.sd-py-2{padding-top:.5rem !important}.sd-pr-2,.sd-px-2{padding-right:.5rem !important}.sd-pb-2,.sd-py-2{padding-bottom:.5rem !important}.sd-pl-2,.sd-px-2{padding-left:.5rem !important}.sd-p-3{padding:1rem !important}.sd-pt-3,.sd-py-3{padding-top:1rem !important}.sd-pr-3,.sd-px-3{padding-right:1rem !important}.sd-pb-3,.sd-py-3{padding-bottom:1rem !important}.sd-pl-3,.sd-px-3{padding-left:1rem !important}.sd-p-4{padding:1.5rem !important}.sd-pt-4,.sd-py-4{padding-top:1.5rem !important}.sd-pr-4,.sd-px-4{padding-right:1.5rem !important}.sd-pb-4,.sd-py-4{padding-bottom:1.5rem !important}.sd-pl-4,.sd-px-4{padding-left:1.5rem !important}.sd-p-5{padding:3rem !important}.sd-pt-5,.sd-py-5{padding-top:3rem !important}.sd-pr-5,.sd-px-5{padding-right:3rem !important}.sd-pb-5,.sd-py-5{padding-bottom:3rem !important}.sd-pl-5,.sd-px-5{padding-left:3rem !important}.sd-m-auto{margin:auto !important}.sd-mt-auto,.sd-my-auto{margin-top:auto !important}.sd-mr-auto,.sd-mx-auto{margin-right:auto !important}.sd-mb-auto,.sd-my-auto{margin-bottom:auto !important}.sd-ml-auto,.sd-mx-auto{margin-left:auto !important}.sd-m-0{margin:0 !important}.sd-mt-0,.sd-my-0{margin-top:0 !important}.sd-mr-0,.sd-mx-0{margin-right:0 !important}.sd-mb-0,.sd-my-0{margin-bottom:0 !important}.sd-ml-0,.sd-mx-0{margin-left:0 !important}.sd-m-1{margin:.25rem !important}.sd-mt-1,.sd-my-1{margin-top:.25rem !important}.sd-mr-1,.sd-mx-1{margin-right:.25rem !important}.sd-mb-1,.sd-my-1{margin-bottom:.25rem !important}.sd-ml-1,.sd-mx-1{margin-left:.25rem !important}.sd-m-2{margin:.5rem !important}.sd-mt-2,.sd-my-2{margin-top:.5rem !important}.sd-mr-2,.sd-mx-2{margin-right:.5rem !important}.sd-mb-2,.sd-my-2{margin-bottom:.5rem !important}.sd-ml-2,.sd-mx-2{margin-left:.5rem !important}.sd-m-3{margin:1rem !important}.sd-mt-3,.sd-my-3{margin-top:1rem !important}.sd-mr-3,.sd-mx-3{margin-right:1rem !important}.sd-mb-3,.sd-my-3{margin-bottom:1rem !important}.sd-ml-3,.sd-mx-3{margin-left:1rem !important}.sd-m-4{margin:1.5rem !important}.sd-mt-4,.sd-my-4{margin-top:1.5rem !important}.sd-mr-4,.sd-mx-4{margin-right:1.5rem !important}.sd-mb-4,.sd-my-4{margin-bottom:1.5rem !important}.sd-ml-4,.sd-mx-4{margin-left:1.5rem !important}.sd-m-5{margin:3rem !important}.sd-mt-5,.sd-my-5{margin-top:3rem !important}.sd-mr-5,.sd-mx-5{margin-right:3rem !important}.sd-mb-5,.sd-my-5{margin-bottom:3rem !important}.sd-ml-5,.sd-mx-5{margin-left:3rem !important}.sd-w-25{width:25% !important}.sd-w-50{width:50% !important}.sd-w-75{width:75% !important}.sd-w-100{width:100% !important}.sd-w-auto{width:auto !important}.sd-h-25{height:25% !important}.sd-h-50{height:50% !important}.sd-h-75{height:75% !important}.sd-h-100{height:100% !important}.sd-h-auto{height:auto !important}.sd-d-none{display:none !important}.sd-d-inline{display:inline !important}.sd-d-inline-block{display:inline-block !important}.sd-d-block{display:block !important}.sd-d-grid{display:grid !important}.sd-d-flex-row{display:-ms-flexbox !important;display:flex !important;flex-direction:row !important}.sd-d-flex-column{display:-ms-flexbox !important;display:flex !important;flex-direction:column !important}.sd-d-inline-flex{display:-ms-inline-flexbox !important;display:inline-flex !important}@media(min-width: 576px){.sd-d-sm-none{display:none !important}.sd-d-sm-inline{display:inline !important}.sd-d-sm-inline-block{display:inline-block !important}.sd-d-sm-block{display:block !important}.sd-d-sm-grid{display:grid !important}.sd-d-sm-flex{display:-ms-flexbox !important;display:flex !important}.sd-d-sm-inline-flex{display:-ms-inline-flexbox !important;display:inline-flex !important}}@media(min-width: 768px){.sd-d-md-none{display:none !important}.sd-d-md-inline{display:inline !important}.sd-d-md-inline-block{display:inline-block !important}.sd-d-md-block{display:block !important}.sd-d-md-grid{display:grid !important}.sd-d-md-flex{display:-ms-flexbox !important;display:flex !important}.sd-d-md-inline-flex{display:-ms-inline-flexbox !important;display:inline-flex !important}}@media(min-width: 992px){.sd-d-lg-none{display:none !important}.sd-d-lg-inline{display:inline !important}.sd-d-lg-inline-block{display:inline-block !important}.sd-d-lg-block{display:block !important}.sd-d-lg-grid{display:grid !important}.sd-d-lg-flex{display:-ms-flexbox !important;display:flex !important}.sd-d-lg-inline-flex{display:-ms-inline-flexbox !important;display:inline-flex !important}}@media(min-width: 1200px){.sd-d-xl-none{display:none !important}.sd-d-xl-inline{display:inline !important}.sd-d-xl-inline-block{display:inline-block !important}.sd-d-xl-block{display:block !important}.sd-d-xl-grid{display:grid !important}.sd-d-xl-flex{display:-ms-flexbox !important;display:flex !important}.sd-d-xl-inline-flex{display:-ms-inline-flexbox !important;display:inline-flex !important}}.sd-align-major-start{justify-content:flex-start !important}.sd-align-major-end{justify-content:flex-end !important}.sd-align-major-center{justify-content:center !important}.sd-align-major-justify{justify-content:space-between !important}.sd-align-major-spaced{justify-content:space-evenly !important}.sd-align-minor-start{align-items:flex-start !important}.sd-align-minor-end{align-items:flex-end !important}.sd-align-minor-center{align-items:center !important}.sd-align-minor-stretch{align-items:stretch !important}.sd-text-justify{text-align:justify !important}.sd-text-left{text-align:left !important}.sd-text-right{text-align:right !important}.sd-text-center{text-align:center !important}.sd-font-weight-light{font-weight:300 !important}.sd-font-weight-lighter{font-weight:lighter !important}.sd-font-weight-normal{font-weight:400 !important}.sd-font-weight-bold{font-weight:700 !important}.sd-font-weight-bolder{font-weight:bolder !important}.sd-font-italic{font-style:italic !important}.sd-text-decoration-none{text-decoration:none !important}.sd-text-lowercase{text-transform:lowercase !important}.sd-text-uppercase{text-transform:uppercase !important}.sd-text-capitalize{text-transform:capitalize !important}.sd-text-wrap{white-space:normal !important}.sd-text-nowrap{white-space:nowrap !important}.sd-text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sd-fs-1,.sd-fs-1>p{font-size:calc(1.375rem + 1.5vw) !important;line-height:unset !important}.sd-fs-2,.sd-fs-2>p{font-size:calc(1.325rem + 0.9vw) !important;line-height:unset !important}.sd-fs-3,.sd-fs-3>p{font-size:calc(1.3rem + 0.6vw) !important;line-height:unset !important}.sd-fs-4,.sd-fs-4>p{font-size:calc(1.275rem + 0.3vw) !important;line-height:unset !important}.sd-fs-5,.sd-fs-5>p{font-size:1.25rem !important;line-height:unset !important}.sd-fs-6,.sd-fs-6>p{font-size:1rem !important;line-height:unset !important}.sd-border-0{border:0 solid !important}.sd-border-top-0{border-top:0 solid !important}.sd-border-bottom-0{border-bottom:0 solid !important}.sd-border-right-0{border-right:0 solid !important}.sd-border-left-0{border-left:0 solid !important}.sd-border-1{border:1px solid !important}.sd-border-top-1{border-top:1px solid !important}.sd-border-bottom-1{border-bottom:1px solid !important}.sd-border-right-1{border-right:1px solid !important}.sd-border-left-1{border-left:1px solid !important}.sd-border-2{border:2px solid !important}.sd-border-top-2{border-top:2px solid !important}.sd-border-bottom-2{border-bottom:2px solid !important}.sd-border-right-2{border-right:2px solid !important}.sd-border-left-2{border-left:2px solid !important}.sd-border-3{border:3px solid !important}.sd-border-top-3{border-top:3px solid !important}.sd-border-bottom-3{border-bottom:3px solid !important}.sd-border-right-3{border-right:3px solid !important}.sd-border-left-3{border-left:3px solid !important}.sd-border-4{border:4px solid !important}.sd-border-top-4{border-top:4px solid !important}.sd-border-bottom-4{border-bottom:4px solid !important}.sd-border-right-4{border-right:4px solid !important}.sd-border-left-4{border-left:4px solid !important}.sd-border-5{border:5px solid !important}.sd-border-top-5{border-top:5px solid !important}.sd-border-bottom-5{border-bottom:5px solid !important}.sd-border-right-5{border-right:5px solid !important}.sd-border-left-5{border-left:5px solid !important}.sd-rounded-0{border-radius:0 !important}.sd-rounded-1{border-radius:.2rem !important}.sd-rounded-2{border-radius:.3rem !important}.sd-rounded-3{border-radius:.5rem !important}.sd-rounded-pill{border-radius:50rem !important}.sd-rounded-circle{border-radius:50% !important}.shadow-none{box-shadow:none !important}.sd-shadow-sm{box-shadow:0 .125rem .25rem var(--sd-color-shadow) !important}.sd-shadow-md{box-shadow:0 .5rem 1rem var(--sd-color-shadow) !important}.sd-shadow-lg{box-shadow:0 1rem 3rem var(--sd-color-shadow) !important}@keyframes sd-slide-from-left{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}@keyframes sd-slide-from-right{0%{transform:translateX(200%)}100%{transform:translateX(0)}}@keyframes sd-grow100{0%{transform:scale(0);opacity:.5}100%{transform:scale(1);opacity:1}}@keyframes sd-grow50{0%{transform:scale(0.5);opacity:.5}100%{transform:scale(1);opacity:1}}@keyframes sd-grow50-rot20{0%{transform:scale(0.5) rotateZ(-20deg);opacity:.5}75%{transform:scale(1) rotateZ(5deg);opacity:1}95%{transform:scale(1) rotateZ(-1deg);opacity:1}100%{transform:scale(1) rotateZ(0);opacity:1}}.sd-animate-slide-from-left{animation:1s ease-out 0s 1 normal none running sd-slide-from-left}.sd-animate-slide-from-right{animation:1s ease-out 0s 1 normal none running sd-slide-from-right}.sd-animate-grow100{animation:1s ease-out 0s 1 normal none running sd-grow100}.sd-animate-grow50{animation:1s ease-out 0s 1 normal none running sd-grow50}.sd-animate-grow50-rot20{animation:1s ease-out 0s 1 normal none running sd-grow50-rot20}.sd-badge{display:inline-block;padding:.35em .65em;font-size:.75em;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25rem}.sd-badge:empty{display:none}a.sd-badge{text-decoration:none}.sd-btn .sd-badge{position:relative;top:-1px}.sd-btn{background-color:transparent;border:1px solid transparent;border-radius:.25rem;cursor:pointer;display:inline-block;font-weight:400;font-size:1rem;line-height:1.5;padding:.375rem .75rem;text-align:center;text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;vertical-align:middle;user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none}.sd-btn:hover{text-decoration:none}@media(prefers-reduced-motion: reduce){.sd-btn{transition:none}}.sd-btn-primary,.sd-btn-outline-primary:hover,.sd-btn-outline-primary:focus{color:var(--sd-color-primary-text) !important;background-color:var(--sd-color-primary) !important;border-color:var(--sd-color-primary) !important;border-width:1px !important;border-style:solid !important}.sd-btn-primary:hover,.sd-btn-primary:focus{color:var(--sd-color-primary-text) !important;background-color:var(--sd-color-primary-highlight) !important;border-color:var(--sd-color-primary-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-primary{color:var(--sd-color-primary) !important;border-color:var(--sd-color-primary) !important;border-width:1px !important;border-style:solid !important}.sd-btn-secondary,.sd-btn-outline-secondary:hover,.sd-btn-outline-secondary:focus{color:var(--sd-color-secondary-text) !important;background-color:var(--sd-color-secondary) !important;border-color:var(--sd-color-secondary) !important;border-width:1px !important;border-style:solid !important}.sd-btn-secondary:hover,.sd-btn-secondary:focus{color:var(--sd-color-secondary-text) !important;background-color:var(--sd-color-secondary-highlight) !important;border-color:var(--sd-color-secondary-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-secondary{color:var(--sd-color-secondary) !important;border-color:var(--sd-color-secondary) !important;border-width:1px !important;border-style:solid !important}.sd-btn-success,.sd-btn-outline-success:hover,.sd-btn-outline-success:focus{color:var(--sd-color-success-text) !important;background-color:var(--sd-color-success) !important;border-color:var(--sd-color-success) !important;border-width:1px !important;border-style:solid !important}.sd-btn-success:hover,.sd-btn-success:focus{color:var(--sd-color-success-text) !important;background-color:var(--sd-color-success-highlight) !important;border-color:var(--sd-color-success-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-success{color:var(--sd-color-success) !important;border-color:var(--sd-color-success) !important;border-width:1px !important;border-style:solid !important}.sd-btn-info,.sd-btn-outline-info:hover,.sd-btn-outline-info:focus{color:var(--sd-color-info-text) !important;background-color:var(--sd-color-info) !important;border-color:var(--sd-color-info) !important;border-width:1px !important;border-style:solid !important}.sd-btn-info:hover,.sd-btn-info:focus{color:var(--sd-color-info-text) !important;background-color:var(--sd-color-info-highlight) !important;border-color:var(--sd-color-info-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-info{color:var(--sd-color-info) !important;border-color:var(--sd-color-info) !important;border-width:1px !important;border-style:solid !important}.sd-btn-warning,.sd-btn-outline-warning:hover,.sd-btn-outline-warning:focus{color:var(--sd-color-warning-text) !important;background-color:var(--sd-color-warning) !important;border-color:var(--sd-color-warning) !important;border-width:1px !important;border-style:solid !important}.sd-btn-warning:hover,.sd-btn-warning:focus{color:var(--sd-color-warning-text) !important;background-color:var(--sd-color-warning-highlight) !important;border-color:var(--sd-color-warning-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-warning{color:var(--sd-color-warning) !important;border-color:var(--sd-color-warning) !important;border-width:1px !important;border-style:solid !important}.sd-btn-danger,.sd-btn-outline-danger:hover,.sd-btn-outline-danger:focus{color:var(--sd-color-danger-text) !important;background-color:var(--sd-color-danger) !important;border-color:var(--sd-color-danger) !important;border-width:1px !important;border-style:solid !important}.sd-btn-danger:hover,.sd-btn-danger:focus{color:var(--sd-color-danger-text) !important;background-color:var(--sd-color-danger-highlight) !important;border-color:var(--sd-color-danger-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-danger{color:var(--sd-color-danger) !important;border-color:var(--sd-color-danger) !important;border-width:1px !important;border-style:solid !important}.sd-btn-light,.sd-btn-outline-light:hover,.sd-btn-outline-light:focus{color:var(--sd-color-light-text) !important;background-color:var(--sd-color-light) !important;border-color:var(--sd-color-light) !important;border-width:1px !important;border-style:solid !important}.sd-btn-light:hover,.sd-btn-light:focus{color:var(--sd-color-light-text) !important;background-color:var(--sd-color-light-highlight) !important;border-color:var(--sd-color-light-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-light{color:var(--sd-color-light) !important;border-color:var(--sd-color-light) !important;border-width:1px !important;border-style:solid !important}.sd-btn-muted,.sd-btn-outline-muted:hover,.sd-btn-outline-muted:focus{color:var(--sd-color-muted-text) !important;background-color:var(--sd-color-muted) !important;border-color:var(--sd-color-muted) !important;border-width:1px !important;border-style:solid !important}.sd-btn-muted:hover,.sd-btn-muted:focus{color:var(--sd-color-muted-text) !important;background-color:var(--sd-color-muted-highlight) !important;border-color:var(--sd-color-muted-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-muted{color:var(--sd-color-muted) !important;border-color:var(--sd-color-muted) !important;border-width:1px !important;border-style:solid !important}.sd-btn-dark,.sd-btn-outline-dark:hover,.sd-btn-outline-dark:focus{color:var(--sd-color-dark-text) !important;background-color:var(--sd-color-dark) !important;border-color:var(--sd-color-dark) !important;border-width:1px !important;border-style:solid !important}.sd-btn-dark:hover,.sd-btn-dark:focus{color:var(--sd-color-dark-text) !important;background-color:var(--sd-color-dark-highlight) !important;border-color:var(--sd-color-dark-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-dark{color:var(--sd-color-dark) !important;border-color:var(--sd-color-dark) !important;border-width:1px !important;border-style:solid !important}.sd-btn-black,.sd-btn-outline-black:hover,.sd-btn-outline-black:focus{color:var(--sd-color-black-text) !important;background-color:var(--sd-color-black) !important;border-color:var(--sd-color-black) !important;border-width:1px !important;border-style:solid !important}.sd-btn-black:hover,.sd-btn-black:focus{color:var(--sd-color-black-text) !important;background-color:var(--sd-color-black-highlight) !important;border-color:var(--sd-color-black-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-black{color:var(--sd-color-black) !important;border-color:var(--sd-color-black) !important;border-width:1px !important;border-style:solid !important}.sd-btn-white,.sd-btn-outline-white:hover,.sd-btn-outline-white:focus{color:var(--sd-color-white-text) !important;background-color:var(--sd-color-white) !important;border-color:var(--sd-color-white) !important;border-width:1px !important;border-style:solid !important}.sd-btn-white:hover,.sd-btn-white:focus{color:var(--sd-color-white-text) !important;background-color:var(--sd-color-white-highlight) !important;border-color:var(--sd-color-white-highlight) !important;border-width:1px !important;border-style:solid !important}.sd-btn-outline-white{color:var(--sd-color-white) !important;border-color:var(--sd-color-white) !important;border-width:1px !important;border-style:solid !important}.sd-stretched-link::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}.sd-hide-link-text{font-size:0}.sd-octicon,.sd-material-icon{display:inline-block;fill:currentColor;vertical-align:middle}.sd-avatar-xs{border-radius:50%;object-fit:cover;object-position:center;width:1rem;height:1rem}.sd-avatar-sm{border-radius:50%;object-fit:cover;object-position:center;width:3rem;height:3rem}.sd-avatar-md{border-radius:50%;object-fit:cover;object-position:center;width:5rem;height:5rem}.sd-avatar-lg{border-radius:50%;object-fit:cover;object-position:center;width:7rem;height:7rem}.sd-avatar-xl{border-radius:50%;object-fit:cover;object-position:center;width:10rem;height:10rem}.sd-avatar-inherit{border-radius:50%;object-fit:cover;object-position:center;width:inherit;height:inherit}.sd-avatar-initial{border-radius:50%;object-fit:cover;object-position:center;width:initial;height:initial}.sd-card{background-clip:border-box;background-color:var(--sd-color-card-background);border:1px solid var(--sd-color-card-border);border-radius:.25rem;color:var(--sd-color-card-text);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:0;position:relative;word-wrap:break-word}.sd-card>hr{margin-left:0;margin-right:0}.sd-card-hover:hover{border-color:var(--sd-color-card-border-hover);transform:scale(1.01)}.sd-card-body{-ms-flex:1 1 auto;flex:1 1 auto;padding:1rem 1rem}.sd-card-title{margin-bottom:.5rem}.sd-card-subtitle{margin-top:-0.25rem;margin-bottom:0}.sd-card-text:last-child{margin-bottom:0}.sd-card-link:hover{text-decoration:none}.sd-card-link+.card-link{margin-left:1rem}.sd-card-header{padding:.5rem 1rem;margin-bottom:0;background-color:var(--sd-color-card-header);border-bottom:1px solid var(--sd-color-card-border)}.sd-card-header:first-child{border-radius:calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0}.sd-card-footer{padding:.5rem 1rem;background-color:var(--sd-color-card-footer);border-top:1px solid var(--sd-color-card-border)}.sd-card-footer:last-child{border-radius:0 0 calc(0.25rem - 1px) calc(0.25rem - 1px)}.sd-card-header-tabs{margin-right:-0.5rem;margin-bottom:-0.5rem;margin-left:-0.5rem;border-bottom:0}.sd-card-header-pills{margin-right:-0.5rem;margin-left:-0.5rem}.sd-card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:1rem;border-radius:calc(0.25rem - 1px)}.sd-card-img,.sd-card-img-bottom,.sd-card-img-top{width:100%}.sd-card-img,.sd-card-img-top{border-top-left-radius:calc(0.25rem - 1px);border-top-right-radius:calc(0.25rem - 1px)}.sd-card-img,.sd-card-img-bottom{border-bottom-left-radius:calc(0.25rem - 1px);border-bottom-right-radius:calc(0.25rem - 1px)}.sd-cards-carousel{width:100%;display:flex;flex-wrap:nowrap;-ms-flex-direction:row;flex-direction:row;overflow-x:hidden;scroll-snap-type:x mandatory}.sd-cards-carousel.sd-show-scrollbar{overflow-x:auto}.sd-cards-carousel:hover,.sd-cards-carousel:focus{overflow-x:auto}.sd-cards-carousel>.sd-card{flex-shrink:0;scroll-snap-align:start}.sd-cards-carousel>.sd-card:not(:last-child){margin-right:3px}.sd-card-cols-1>.sd-card{width:90%}.sd-card-cols-2>.sd-card{width:45%}.sd-card-cols-3>.sd-card{width:30%}.sd-card-cols-4>.sd-card{width:22.5%}.sd-card-cols-5>.sd-card{width:18%}.sd-card-cols-6>.sd-card{width:15%}.sd-card-cols-7>.sd-card{width:12.8571428571%}.sd-card-cols-8>.sd-card{width:11.25%}.sd-card-cols-9>.sd-card{width:10%}.sd-card-cols-10>.sd-card{width:9%}.sd-card-cols-11>.sd-card{width:8.1818181818%}.sd-card-cols-12>.sd-card{width:7.5%}.sd-container,.sd-container-fluid,.sd-container-lg,.sd-container-md,.sd-container-sm,.sd-container-xl{margin-left:auto;margin-right:auto;padding-left:var(--sd-gutter-x, 0.75rem);padding-right:var(--sd-gutter-x, 0.75rem);width:100%}@media(min-width: 576px){.sd-container-sm,.sd-container{max-width:540px}}@media(min-width: 768px){.sd-container-md,.sd-container-sm,.sd-container{max-width:720px}}@media(min-width: 992px){.sd-container-lg,.sd-container-md,.sd-container-sm,.sd-container{max-width:960px}}@media(min-width: 1200px){.sd-container-xl,.sd-container-lg,.sd-container-md,.sd-container-sm,.sd-container{max-width:1140px}}.sd-row{--sd-gutter-x: 1.5rem;--sd-gutter-y: 0;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-top:calc(var(--sd-gutter-y) * -1);margin-right:calc(var(--sd-gutter-x) * -0.5);margin-left:calc(var(--sd-gutter-x) * -0.5)}.sd-row>*{box-sizing:border-box;flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--sd-gutter-x) * 0.5);padding-left:calc(var(--sd-gutter-x) * 0.5);margin-top:var(--sd-gutter-y)}.sd-col{flex:1 0 0%;-ms-flex:1 0 0%}.sd-row-cols-auto>*{flex:0 0 auto;width:auto}.sd-row-cols-1>*{flex:0 0 auto;-ms-flex:0 0 auto;width:100%}.sd-row-cols-2>*{flex:0 0 auto;-ms-flex:0 0 auto;width:50%}.sd-row-cols-3>*{flex:0 0 auto;-ms-flex:0 0 auto;width:33.3333333333%}.sd-row-cols-4>*{flex:0 0 auto;-ms-flex:0 0 auto;width:25%}.sd-row-cols-5>*{flex:0 0 auto;-ms-flex:0 0 auto;width:20%}.sd-row-cols-6>*{flex:0 0 auto;-ms-flex:0 0 auto;width:16.6666666667%}.sd-row-cols-7>*{flex:0 0 auto;-ms-flex:0 0 auto;width:14.2857142857%}.sd-row-cols-8>*{flex:0 0 auto;-ms-flex:0 0 auto;width:12.5%}.sd-row-cols-9>*{flex:0 0 auto;-ms-flex:0 0 auto;width:11.1111111111%}.sd-row-cols-10>*{flex:0 0 auto;-ms-flex:0 0 auto;width:10%}.sd-row-cols-11>*{flex:0 0 auto;-ms-flex:0 0 auto;width:9.0909090909%}.sd-row-cols-12>*{flex:0 0 auto;-ms-flex:0 0 auto;width:8.3333333333%}@media(min-width: 576px){.sd-col-sm{flex:1 0 0%;-ms-flex:1 0 0%}.sd-row-cols-sm-auto{flex:1 0 auto;-ms-flex:1 0 auto;width:100%}.sd-row-cols-sm-1>*{flex:0 0 auto;-ms-flex:0 0 auto;width:100%}.sd-row-cols-sm-2>*{flex:0 0 auto;-ms-flex:0 0 auto;width:50%}.sd-row-cols-sm-3>*{flex:0 0 auto;-ms-flex:0 0 auto;width:33.3333333333%}.sd-row-cols-sm-4>*{flex:0 0 auto;-ms-flex:0 0 auto;width:25%}.sd-row-cols-sm-5>*{flex:0 0 auto;-ms-flex:0 0 auto;width:20%}.sd-row-cols-sm-6>*{flex:0 0 auto;-ms-flex:0 0 auto;width:16.6666666667%}.sd-row-cols-sm-7>*{flex:0 0 auto;-ms-flex:0 0 auto;width:14.2857142857%}.sd-row-cols-sm-8>*{flex:0 0 auto;-ms-flex:0 0 auto;width:12.5%}.sd-row-cols-sm-9>*{flex:0 0 auto;-ms-flex:0 0 auto;width:11.1111111111%}.sd-row-cols-sm-10>*{flex:0 0 auto;-ms-flex:0 0 auto;width:10%}.sd-row-cols-sm-11>*{flex:0 0 auto;-ms-flex:0 0 auto;width:9.0909090909%}.sd-row-cols-sm-12>*{flex:0 0 auto;-ms-flex:0 0 auto;width:8.3333333333%}}@media(min-width: 768px){.sd-col-md{flex:1 0 0%;-ms-flex:1 0 0%}.sd-row-cols-md-auto{flex:1 0 auto;-ms-flex:1 0 auto;width:100%}.sd-row-cols-md-1>*{flex:0 0 auto;-ms-flex:0 0 auto;width:100%}.sd-row-cols-md-2>*{flex:0 0 auto;-ms-flex:0 0 auto;width:50%}.sd-row-cols-md-3>*{flex:0 0 auto;-ms-flex:0 0 auto;width:33.3333333333%}.sd-row-cols-md-4>*{flex:0 0 auto;-ms-flex:0 0 auto;width:25%}.sd-row-cols-md-5>*{flex:0 0 auto;-ms-flex:0 0 auto;width:20%}.sd-row-cols-md-6>*{flex:0 0 auto;-ms-flex:0 0 auto;width:16.6666666667%}.sd-row-cols-md-7>*{flex:0 0 auto;-ms-flex:0 0 auto;width:14.2857142857%}.sd-row-cols-md-8>*{flex:0 0 auto;-ms-flex:0 0 auto;width:12.5%}.sd-row-cols-md-9>*{flex:0 0 auto;-ms-flex:0 0 auto;width:11.1111111111%}.sd-row-cols-md-10>*{flex:0 0 auto;-ms-flex:0 0 auto;width:10%}.sd-row-cols-md-11>*{flex:0 0 auto;-ms-flex:0 0 auto;width:9.0909090909%}.sd-row-cols-md-12>*{flex:0 0 auto;-ms-flex:0 0 auto;width:8.3333333333%}}@media(min-width: 992px){.sd-col-lg{flex:1 0 0%;-ms-flex:1 0 0%}.sd-row-cols-lg-auto{flex:1 0 auto;-ms-flex:1 0 auto;width:100%}.sd-row-cols-lg-1>*{flex:0 0 auto;-ms-flex:0 0 auto;width:100%}.sd-row-cols-lg-2>*{flex:0 0 auto;-ms-flex:0 0 auto;width:50%}.sd-row-cols-lg-3>*{flex:0 0 auto;-ms-flex:0 0 auto;width:33.3333333333%}.sd-row-cols-lg-4>*{flex:0 0 auto;-ms-flex:0 0 auto;width:25%}.sd-row-cols-lg-5>*{flex:0 0 auto;-ms-flex:0 0 auto;width:20%}.sd-row-cols-lg-6>*{flex:0 0 auto;-ms-flex:0 0 auto;width:16.6666666667%}.sd-row-cols-lg-7>*{flex:0 0 auto;-ms-flex:0 0 auto;width:14.2857142857%}.sd-row-cols-lg-8>*{flex:0 0 auto;-ms-flex:0 0 auto;width:12.5%}.sd-row-cols-lg-9>*{flex:0 0 auto;-ms-flex:0 0 auto;width:11.1111111111%}.sd-row-cols-lg-10>*{flex:0 0 auto;-ms-flex:0 0 auto;width:10%}.sd-row-cols-lg-11>*{flex:0 0 auto;-ms-flex:0 0 auto;width:9.0909090909%}.sd-row-cols-lg-12>*{flex:0 0 auto;-ms-flex:0 0 auto;width:8.3333333333%}}@media(min-width: 1200px){.sd-col-xl{flex:1 0 0%;-ms-flex:1 0 0%}.sd-row-cols-xl-auto{flex:1 0 auto;-ms-flex:1 0 auto;width:100%}.sd-row-cols-xl-1>*{flex:0 0 auto;-ms-flex:0 0 auto;width:100%}.sd-row-cols-xl-2>*{flex:0 0 auto;-ms-flex:0 0 auto;width:50%}.sd-row-cols-xl-3>*{flex:0 0 auto;-ms-flex:0 0 auto;width:33.3333333333%}.sd-row-cols-xl-4>*{flex:0 0 auto;-ms-flex:0 0 auto;width:25%}.sd-row-cols-xl-5>*{flex:0 0 auto;-ms-flex:0 0 auto;width:20%}.sd-row-cols-xl-6>*{flex:0 0 auto;-ms-flex:0 0 auto;width:16.6666666667%}.sd-row-cols-xl-7>*{flex:0 0 auto;-ms-flex:0 0 auto;width:14.2857142857%}.sd-row-cols-xl-8>*{flex:0 0 auto;-ms-flex:0 0 auto;width:12.5%}.sd-row-cols-xl-9>*{flex:0 0 auto;-ms-flex:0 0 auto;width:11.1111111111%}.sd-row-cols-xl-10>*{flex:0 0 auto;-ms-flex:0 0 auto;width:10%}.sd-row-cols-xl-11>*{flex:0 0 auto;-ms-flex:0 0 auto;width:9.0909090909%}.sd-row-cols-xl-12>*{flex:0 0 auto;-ms-flex:0 0 auto;width:8.3333333333%}}.sd-col-auto{flex:0 0 auto;-ms-flex:0 0 auto;width:auto}.sd-col-1{flex:0 0 auto;-ms-flex:0 0 auto;width:8.3333333333%}.sd-col-2{flex:0 0 auto;-ms-flex:0 0 auto;width:16.6666666667%}.sd-col-3{flex:0 0 auto;-ms-flex:0 0 auto;width:25%}.sd-col-4{flex:0 0 auto;-ms-flex:0 0 auto;width:33.3333333333%}.sd-col-5{flex:0 0 auto;-ms-flex:0 0 auto;width:41.6666666667%}.sd-col-6{flex:0 0 auto;-ms-flex:0 0 auto;width:50%}.sd-col-7{flex:0 0 auto;-ms-flex:0 0 auto;width:58.3333333333%}.sd-col-8{flex:0 0 auto;-ms-flex:0 0 auto;width:66.6666666667%}.sd-col-9{flex:0 0 auto;-ms-flex:0 0 auto;width:75%}.sd-col-10{flex:0 0 auto;-ms-flex:0 0 auto;width:83.3333333333%}.sd-col-11{flex:0 0 auto;-ms-flex:0 0 auto;width:91.6666666667%}.sd-col-12{flex:0 0 auto;-ms-flex:0 0 auto;width:100%}.sd-g-0,.sd-gy-0{--sd-gutter-y: 0}.sd-g-0,.sd-gx-0{--sd-gutter-x: 0}.sd-g-1,.sd-gy-1{--sd-gutter-y: 0.25rem}.sd-g-1,.sd-gx-1{--sd-gutter-x: 0.25rem}.sd-g-2,.sd-gy-2{--sd-gutter-y: 0.5rem}.sd-g-2,.sd-gx-2{--sd-gutter-x: 0.5rem}.sd-g-3,.sd-gy-3{--sd-gutter-y: 1rem}.sd-g-3,.sd-gx-3{--sd-gutter-x: 1rem}.sd-g-4,.sd-gy-4{--sd-gutter-y: 1.5rem}.sd-g-4,.sd-gx-4{--sd-gutter-x: 1.5rem}.sd-g-5,.sd-gy-5{--sd-gutter-y: 3rem}.sd-g-5,.sd-gx-5{--sd-gutter-x: 3rem}@media(min-width: 576px){.sd-col-sm-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto}.sd-col-sm-1{-ms-flex:0 0 auto;flex:0 0 auto;width:8.3333333333%}.sd-col-sm-2{-ms-flex:0 0 auto;flex:0 0 auto;width:16.6666666667%}.sd-col-sm-3{-ms-flex:0 0 auto;flex:0 0 auto;width:25%}.sd-col-sm-4{-ms-flex:0 0 auto;flex:0 0 auto;width:33.3333333333%}.sd-col-sm-5{-ms-flex:0 0 auto;flex:0 0 auto;width:41.6666666667%}.sd-col-sm-6{-ms-flex:0 0 auto;flex:0 0 auto;width:50%}.sd-col-sm-7{-ms-flex:0 0 auto;flex:0 0 auto;width:58.3333333333%}.sd-col-sm-8{-ms-flex:0 0 auto;flex:0 0 auto;width:66.6666666667%}.sd-col-sm-9{-ms-flex:0 0 auto;flex:0 0 auto;width:75%}.sd-col-sm-10{-ms-flex:0 0 auto;flex:0 0 auto;width:83.3333333333%}.sd-col-sm-11{-ms-flex:0 0 auto;flex:0 0 auto;width:91.6666666667%}.sd-col-sm-12{-ms-flex:0 0 auto;flex:0 0 auto;width:100%}.sd-g-sm-0,.sd-gy-sm-0{--sd-gutter-y: 0}.sd-g-sm-0,.sd-gx-sm-0{--sd-gutter-x: 0}.sd-g-sm-1,.sd-gy-sm-1{--sd-gutter-y: 0.25rem}.sd-g-sm-1,.sd-gx-sm-1{--sd-gutter-x: 0.25rem}.sd-g-sm-2,.sd-gy-sm-2{--sd-gutter-y: 0.5rem}.sd-g-sm-2,.sd-gx-sm-2{--sd-gutter-x: 0.5rem}.sd-g-sm-3,.sd-gy-sm-3{--sd-gutter-y: 1rem}.sd-g-sm-3,.sd-gx-sm-3{--sd-gutter-x: 1rem}.sd-g-sm-4,.sd-gy-sm-4{--sd-gutter-y: 1.5rem}.sd-g-sm-4,.sd-gx-sm-4{--sd-gutter-x: 1.5rem}.sd-g-sm-5,.sd-gy-sm-5{--sd-gutter-y: 3rem}.sd-g-sm-5,.sd-gx-sm-5{--sd-gutter-x: 3rem}}@media(min-width: 768px){.sd-col-md-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto}.sd-col-md-1{-ms-flex:0 0 auto;flex:0 0 auto;width:8.3333333333%}.sd-col-md-2{-ms-flex:0 0 auto;flex:0 0 auto;width:16.6666666667%}.sd-col-md-3{-ms-flex:0 0 auto;flex:0 0 auto;width:25%}.sd-col-md-4{-ms-flex:0 0 auto;flex:0 0 auto;width:33.3333333333%}.sd-col-md-5{-ms-flex:0 0 auto;flex:0 0 auto;width:41.6666666667%}.sd-col-md-6{-ms-flex:0 0 auto;flex:0 0 auto;width:50%}.sd-col-md-7{-ms-flex:0 0 auto;flex:0 0 auto;width:58.3333333333%}.sd-col-md-8{-ms-flex:0 0 auto;flex:0 0 auto;width:66.6666666667%}.sd-col-md-9{-ms-flex:0 0 auto;flex:0 0 auto;width:75%}.sd-col-md-10{-ms-flex:0 0 auto;flex:0 0 auto;width:83.3333333333%}.sd-col-md-11{-ms-flex:0 0 auto;flex:0 0 auto;width:91.6666666667%}.sd-col-md-12{-ms-flex:0 0 auto;flex:0 0 auto;width:100%}.sd-g-md-0,.sd-gy-md-0{--sd-gutter-y: 0}.sd-g-md-0,.sd-gx-md-0{--sd-gutter-x: 0}.sd-g-md-1,.sd-gy-md-1{--sd-gutter-y: 0.25rem}.sd-g-md-1,.sd-gx-md-1{--sd-gutter-x: 0.25rem}.sd-g-md-2,.sd-gy-md-2{--sd-gutter-y: 0.5rem}.sd-g-md-2,.sd-gx-md-2{--sd-gutter-x: 0.5rem}.sd-g-md-3,.sd-gy-md-3{--sd-gutter-y: 1rem}.sd-g-md-3,.sd-gx-md-3{--sd-gutter-x: 1rem}.sd-g-md-4,.sd-gy-md-4{--sd-gutter-y: 1.5rem}.sd-g-md-4,.sd-gx-md-4{--sd-gutter-x: 1.5rem}.sd-g-md-5,.sd-gy-md-5{--sd-gutter-y: 3rem}.sd-g-md-5,.sd-gx-md-5{--sd-gutter-x: 3rem}}@media(min-width: 992px){.sd-col-lg-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto}.sd-col-lg-1{-ms-flex:0 0 auto;flex:0 0 auto;width:8.3333333333%}.sd-col-lg-2{-ms-flex:0 0 auto;flex:0 0 auto;width:16.6666666667%}.sd-col-lg-3{-ms-flex:0 0 auto;flex:0 0 auto;width:25%}.sd-col-lg-4{-ms-flex:0 0 auto;flex:0 0 auto;width:33.3333333333%}.sd-col-lg-5{-ms-flex:0 0 auto;flex:0 0 auto;width:41.6666666667%}.sd-col-lg-6{-ms-flex:0 0 auto;flex:0 0 auto;width:50%}.sd-col-lg-7{-ms-flex:0 0 auto;flex:0 0 auto;width:58.3333333333%}.sd-col-lg-8{-ms-flex:0 0 auto;flex:0 0 auto;width:66.6666666667%}.sd-col-lg-9{-ms-flex:0 0 auto;flex:0 0 auto;width:75%}.sd-col-lg-10{-ms-flex:0 0 auto;flex:0 0 auto;width:83.3333333333%}.sd-col-lg-11{-ms-flex:0 0 auto;flex:0 0 auto;width:91.6666666667%}.sd-col-lg-12{-ms-flex:0 0 auto;flex:0 0 auto;width:100%}.sd-g-lg-0,.sd-gy-lg-0{--sd-gutter-y: 0}.sd-g-lg-0,.sd-gx-lg-0{--sd-gutter-x: 0}.sd-g-lg-1,.sd-gy-lg-1{--sd-gutter-y: 0.25rem}.sd-g-lg-1,.sd-gx-lg-1{--sd-gutter-x: 0.25rem}.sd-g-lg-2,.sd-gy-lg-2{--sd-gutter-y: 0.5rem}.sd-g-lg-2,.sd-gx-lg-2{--sd-gutter-x: 0.5rem}.sd-g-lg-3,.sd-gy-lg-3{--sd-gutter-y: 1rem}.sd-g-lg-3,.sd-gx-lg-3{--sd-gutter-x: 1rem}.sd-g-lg-4,.sd-gy-lg-4{--sd-gutter-y: 1.5rem}.sd-g-lg-4,.sd-gx-lg-4{--sd-gutter-x: 1.5rem}.sd-g-lg-5,.sd-gy-lg-5{--sd-gutter-y: 3rem}.sd-g-lg-5,.sd-gx-lg-5{--sd-gutter-x: 3rem}}@media(min-width: 1200px){.sd-col-xl-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto}.sd-col-xl-1{-ms-flex:0 0 auto;flex:0 0 auto;width:8.3333333333%}.sd-col-xl-2{-ms-flex:0 0 auto;flex:0 0 auto;width:16.6666666667%}.sd-col-xl-3{-ms-flex:0 0 auto;flex:0 0 auto;width:25%}.sd-col-xl-4{-ms-flex:0 0 auto;flex:0 0 auto;width:33.3333333333%}.sd-col-xl-5{-ms-flex:0 0 auto;flex:0 0 auto;width:41.6666666667%}.sd-col-xl-6{-ms-flex:0 0 auto;flex:0 0 auto;width:50%}.sd-col-xl-7{-ms-flex:0 0 auto;flex:0 0 auto;width:58.3333333333%}.sd-col-xl-8{-ms-flex:0 0 auto;flex:0 0 auto;width:66.6666666667%}.sd-col-xl-9{-ms-flex:0 0 auto;flex:0 0 auto;width:75%}.sd-col-xl-10{-ms-flex:0 0 auto;flex:0 0 auto;width:83.3333333333%}.sd-col-xl-11{-ms-flex:0 0 auto;flex:0 0 auto;width:91.6666666667%}.sd-col-xl-12{-ms-flex:0 0 auto;flex:0 0 auto;width:100%}.sd-g-xl-0,.sd-gy-xl-0{--sd-gutter-y: 0}.sd-g-xl-0,.sd-gx-xl-0{--sd-gutter-x: 0}.sd-g-xl-1,.sd-gy-xl-1{--sd-gutter-y: 0.25rem}.sd-g-xl-1,.sd-gx-xl-1{--sd-gutter-x: 0.25rem}.sd-g-xl-2,.sd-gy-xl-2{--sd-gutter-y: 0.5rem}.sd-g-xl-2,.sd-gx-xl-2{--sd-gutter-x: 0.5rem}.sd-g-xl-3,.sd-gy-xl-3{--sd-gutter-y: 1rem}.sd-g-xl-3,.sd-gx-xl-3{--sd-gutter-x: 1rem}.sd-g-xl-4,.sd-gy-xl-4{--sd-gutter-y: 1.5rem}.sd-g-xl-4,.sd-gx-xl-4{--sd-gutter-x: 1.5rem}.sd-g-xl-5,.sd-gy-xl-5{--sd-gutter-y: 3rem}.sd-g-xl-5,.sd-gx-xl-5{--sd-gutter-x: 3rem}}.sd-flex-row-reverse{flex-direction:row-reverse !important}details.sd-dropdown{position:relative}details.sd-dropdown .sd-summary-title{font-weight:700;padding-right:3em !important;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none}details.sd-dropdown:hover{cursor:pointer}details.sd-dropdown .sd-summary-content{cursor:default}details.sd-dropdown summary{list-style:none;padding:1em}details.sd-dropdown summary .sd-octicon.no-title{vertical-align:middle}details.sd-dropdown[open] summary .sd-octicon.no-title{visibility:hidden}details.sd-dropdown summary::-webkit-details-marker{display:none}details.sd-dropdown summary:focus{outline:none}details.sd-dropdown .sd-summary-icon{margin-right:.5em}details.sd-dropdown .sd-summary-icon svg{opacity:.8}details.sd-dropdown summary:hover .sd-summary-up svg,details.sd-dropdown summary:hover .sd-summary-down svg{opacity:1;transform:scale(1.1)}details.sd-dropdown .sd-summary-up svg,details.sd-dropdown .sd-summary-down svg{display:block;opacity:.6}details.sd-dropdown .sd-summary-up,details.sd-dropdown .sd-summary-down{pointer-events:none;position:absolute;right:1em;top:1em}details.sd-dropdown[open]>.sd-summary-title .sd-summary-down{visibility:hidden}details.sd-dropdown:not([open])>.sd-summary-title .sd-summary-up{visibility:hidden}details.sd-dropdown:not([open]).sd-card{border:none}details.sd-dropdown:not([open])>.sd-card-header{border:1px solid var(--sd-color-card-border);border-radius:.25rem}details.sd-dropdown.sd-fade-in[open] summary~*{-moz-animation:sd-fade-in .5s ease-in-out;-webkit-animation:sd-fade-in .5s ease-in-out;animation:sd-fade-in .5s ease-in-out}details.sd-dropdown.sd-fade-in-slide-down[open] summary~*{-moz-animation:sd-fade-in .5s ease-in-out,sd-slide-down .5s ease-in-out;-webkit-animation:sd-fade-in .5s ease-in-out,sd-slide-down .5s ease-in-out;animation:sd-fade-in .5s ease-in-out,sd-slide-down .5s ease-in-out}.sd-col>.sd-dropdown{width:100%}.sd-summary-content>.sd-tab-set:first-child{margin-top:0}@keyframes sd-fade-in{0%{opacity:0}100%{opacity:1}}@keyframes sd-slide-down{0%{transform:translate(0, -10px)}100%{transform:translate(0, 0)}}.sd-tab-set{border-radius:.125rem;display:flex;flex-wrap:wrap;margin:1em 0;position:relative}.sd-tab-set>input{opacity:0;position:absolute}.sd-tab-set>input:checked+label{border-color:var(--sd-color-tabs-underline-active);color:var(--sd-color-tabs-label-active)}.sd-tab-set>input:checked+label+.sd-tab-content{display:block}.sd-tab-set>input:not(:checked)+label:hover{color:var(--sd-color-tabs-label-hover);border-color:var(--sd-color-tabs-underline-hover)}.sd-tab-set>input:focus+label{outline-style:auto}.sd-tab-set>input:not(.focus-visible)+label{outline:none;-webkit-tap-highlight-color:transparent}.sd-tab-set>label{border-bottom:.125rem solid transparent;margin-bottom:0;color:var(--sd-color-tabs-label-inactive);border-color:var(--sd-color-tabs-underline-inactive);cursor:pointer;font-size:var(--sd-fontsize-tabs-label);font-weight:700;padding:1em 1.25em .5em;transition:color 250ms;width:auto;z-index:1}html .sd-tab-set>label:hover{color:var(--sd-color-tabs-label-active)}.sd-col>.sd-tab-set{width:100%}.sd-tab-content{box-shadow:0 -0.0625rem var(--sd-color-tabs-overline),0 .0625rem var(--sd-color-tabs-underline);display:none;order:99;padding-bottom:.75rem;padding-top:.75rem;width:100%}.sd-tab-content>:first-child{margin-top:0 !important}.sd-tab-content>:last-child{margin-bottom:0 !important}.sd-tab-content>.sd-tab-set{margin:0}.sd-sphinx-override,.sd-sphinx-override *{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.sd-sphinx-override p{margin-top:0}:root{--sd-color-primary: #0071bc;--sd-color-secondary: #6c757d;--sd-color-success: #28a745;--sd-color-info: #17a2b8;--sd-color-warning: #f0b37e;--sd-color-danger: #dc3545;--sd-color-light: #f8f9fa;--sd-color-muted: #6c757d;--sd-color-dark: #212529;--sd-color-black: black;--sd-color-white: white;--sd-color-primary-highlight: #0060a0;--sd-color-secondary-highlight: #5c636a;--sd-color-success-highlight: #228e3b;--sd-color-info-highlight: #148a9c;--sd-color-warning-highlight: #cc986b;--sd-color-danger-highlight: #bb2d3b;--sd-color-light-highlight: #d3d4d5;--sd-color-muted-highlight: #5c636a;--sd-color-dark-highlight: #1c1f23;--sd-color-black-highlight: black;--sd-color-white-highlight: #d9d9d9;--sd-color-primary-text: #fff;--sd-color-secondary-text: #fff;--sd-color-success-text: #fff;--sd-color-info-text: #fff;--sd-color-warning-text: #212529;--sd-color-danger-text: #fff;--sd-color-light-text: #212529;--sd-color-muted-text: #fff;--sd-color-dark-text: #fff;--sd-color-black-text: #fff;--sd-color-white-text: #212529;--sd-color-shadow: rgba(0, 0, 0, 0.15);--sd-color-card-border: rgba(0, 0, 0, 0.125);--sd-color-card-border-hover: hsla(231, 99%, 66%, 1);--sd-color-card-background: transparent;--sd-color-card-text: inherit;--sd-color-card-header: transparent;--sd-color-card-footer: transparent;--sd-color-tabs-label-active: hsla(231, 99%, 66%, 1);--sd-color-tabs-label-hover: hsla(231, 99%, 66%, 1);--sd-color-tabs-label-inactive: hsl(0, 0%, 66%);--sd-color-tabs-underline-active: hsla(231, 99%, 66%, 1);--sd-color-tabs-underline-hover: rgba(178, 206, 245, 0.62);--sd-color-tabs-underline-inactive: transparent;--sd-color-tabs-overline: rgb(222, 222, 222);--sd-color-tabs-underline: rgb(222, 222, 222);--sd-fontsize-tabs-label: 1rem} diff --git a/_static/design-tabs.js b/_static/design-tabs.js new file mode 100644 index 0000000..36b38cf --- /dev/null +++ b/_static/design-tabs.js @@ -0,0 +1,27 @@ +var sd_labels_by_text = {}; + +function ready() { + const li = document.getElementsByClassName("sd-tab-label"); + for (const label of li) { + syncId = label.getAttribute("data-sync-id"); + if (syncId) { + label.onclick = onLabelClick; + if (!sd_labels_by_text[syncId]) { + sd_labels_by_text[syncId] = []; + } + sd_labels_by_text[syncId].push(label); + } + } +} + +function onLabelClick() { + // Activate other inputs with the same sync id. + syncId = this.getAttribute("data-sync-id"); + for (label of sd_labels_by_text[syncId]) { + if (label === this) continue; + label.previousElementSibling.checked = true; + } + window.localStorage.setItem("sphinx-design-last-tab", syncId); +} + +document.addEventListener("DOMContentLoaded", ready, false); diff --git a/_static/doctools.js b/_static/doctools.js new file mode 100644 index 0000000..d06a71d --- /dev/null +++ b/_static/doctools.js @@ -0,0 +1,156 @@ +/* + * doctools.js + * ~~~~~~~~~~~ + * + * Base JavaScript utilities for all Sphinx HTML documentation. + * + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ +"use strict"; + +const BLACKLISTED_KEY_CONTROL_ELEMENTS = new Set([ + "TEXTAREA", + "INPUT", + "SELECT", + "BUTTON", +]); + +const _ready = (callback) => { + if (document.readyState !== "loading") { + callback(); + } else { + document.addEventListener("DOMContentLoaded", callback); + } +}; + +/** + * Small JavaScript module for the documentation. + */ +const Documentation = { + init: () => { + Documentation.initDomainIndexTable(); + Documentation.initOnKeyListeners(); + }, + + /** + * i18n support + */ + TRANSLATIONS: {}, + PLURAL_EXPR: (n) => (n === 1 ? 0 : 1), + LOCALE: "unknown", + + // gettext and ngettext don't access this so that the functions + // can safely bound to a different name (_ = Documentation.gettext) + gettext: (string) => { + const translated = Documentation.TRANSLATIONS[string]; + switch (typeof translated) { + case "undefined": + return string; // no translation + case "string": + return translated; // translation exists + default: + return translated[0]; // (singular, plural) translation tuple exists + } + }, + + ngettext: (singular, plural, n) => { + const translated = Documentation.TRANSLATIONS[singular]; + if (typeof translated !== "undefined") + return translated[Documentation.PLURAL_EXPR(n)]; + return n === 1 ? singular : plural; + }, + + addTranslations: (catalog) => { + Object.assign(Documentation.TRANSLATIONS, catalog.messages); + Documentation.PLURAL_EXPR = new Function( + "n", + `return (${catalog.plural_expr})` + ); + Documentation.LOCALE = catalog.locale; + }, + + /** + * helper function to focus on search bar + */ + focusSearchBar: () => { + document.querySelectorAll("input[name=q]")[0]?.focus(); + }, + + /** + * Initialise the domain index toggle buttons + */ + initDomainIndexTable: () => { + const toggler = (el) => { + const idNumber = el.id.substr(7); + const toggledRows = document.querySelectorAll(`tr.cg-${idNumber}`); + if (el.src.substr(-9) === "minus.png") { + el.src = `${el.src.substr(0, el.src.length - 9)}plus.png`; + toggledRows.forEach((el) => (el.style.display = "none")); + } else { + el.src = `${el.src.substr(0, el.src.length - 8)}minus.png`; + toggledRows.forEach((el) => (el.style.display = "")); + } + }; + + const togglerElements = document.querySelectorAll("img.toggler"); + togglerElements.forEach((el) => + el.addEventListener("click", (event) => toggler(event.currentTarget)) + ); + togglerElements.forEach((el) => (el.style.display = "")); + if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) togglerElements.forEach(toggler); + }, + + initOnKeyListeners: () => { + // only install a listener if it is really needed + if ( + !DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS && + !DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS + ) + return; + + document.addEventListener("keydown", (event) => { + // bail for input elements + if (BLACKLISTED_KEY_CONTROL_ELEMENTS.has(document.activeElement.tagName)) return; + // bail with special keys + if (event.altKey || event.ctrlKey || event.metaKey) return; + + if (!event.shiftKey) { + switch (event.key) { + case "ArrowLeft": + if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break; + + const prevLink = document.querySelector('link[rel="prev"]'); + if (prevLink && prevLink.href) { + window.location.href = prevLink.href; + event.preventDefault(); + } + break; + case "ArrowRight": + if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break; + + const nextLink = document.querySelector('link[rel="next"]'); + if (nextLink && nextLink.href) { + window.location.href = nextLink.href; + event.preventDefault(); + } + break; + } + } + + // some keyboard layouts may need Shift to get / + switch (event.key) { + case "/": + if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) break; + Documentation.focusSearchBar(); + event.preventDefault(); + } + }); + }, +}; + +// quick alias for translations +const _ = Documentation.gettext; + +_ready(Documentation.init); diff --git a/_static/documentation_options.js b/_static/documentation_options.js new file mode 100644 index 0000000..7e4c114 --- /dev/null +++ b/_static/documentation_options.js @@ -0,0 +1,13 @@ +const DOCUMENTATION_OPTIONS = { + VERSION: '', + LANGUAGE: 'en', + COLLAPSE_INDEX: false, + BUILDER: 'html', + FILE_SUFFIX: '.html', + LINK_SUFFIX: '.html', + HAS_SOURCE: true, + SOURCELINK_SUFFIX: '.txt', + NAVIGATION_WITH_KEYS: false, + SHOW_SEARCH_SUMMARY: true, + ENABLE_SEARCH_SHORTCUTS: true, +}; \ No newline at end of file diff --git a/_static/file.png b/_static/file.png new file mode 100644 index 0000000..a858a41 Binary files /dev/null and b/_static/file.png differ diff --git a/_static/jquery.js b/_static/jquery.js new file mode 100644 index 0000000..c4c6022 --- /dev/null +++ b/_static/jquery.js @@ -0,0 +1,2 @@ +/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",y.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var _t,zt=[],Ut=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||S.expando+"_"+wt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Ut.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ut,"$1"+r):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,zt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((_t=E.implementation.createHTMLDocument("").body).innerHTML="
",2===_t.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=y.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=y.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),y.elements=c+" "+a,j(b)}function f(a){var b=x[a[v]];return b||(b={},w++,a[v]=w,x[w]=b),b}function g(a,c,d){if(c||(c=b),q)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():u.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||t.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),q)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return y.shivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(y,b.frag)}function j(a){a||(a=b);var d=f(a);return!y.shivCSS||p||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),q||i(a,d),a}function k(a){for(var b,c=a.getElementsByTagName("*"),e=c.length,f=RegExp("^(?:"+d().join("|")+")$","i"),g=[];e--;)b=c[e],f.test(b.nodeName)&&g.push(b.applyElement(l(b)));return g}function l(a){for(var b,c=a.attributes,d=c.length,e=a.ownerDocument.createElement(A+":"+a.nodeName);d--;)b=c[d],b.specified&&e.setAttribute(b.nodeName,b.nodeValue);return e.style.cssText=a.style.cssText,e}function m(a){for(var b,c=a.split("{"),e=c.length,f=RegExp("(^|[\\s,>+~])("+d().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),g="$1"+A+"\\:$2";e--;)b=c[e]=c[e].split("}"),b[b.length-1]=b[b.length-1].replace(f,g),c[e]=b.join("}");return c.join("{")}function n(a){for(var b=a.length;b--;)a[b].removeNode()}function o(a){function b(){clearTimeout(g._removeSheetTimer),d&&d.removeNode(!0),d=null}var d,e,g=f(a),h=a.namespaces,i=a.parentWindow;return!B||a.printShived?a:("undefined"==typeof h[A]&&h.add(A),i.attachEvent("onbeforeprint",function(){b();for(var f,g,h,i=a.styleSheets,j=[],l=i.length,n=Array(l);l--;)n[l]=i[l];for(;h=n.pop();)if(!h.disabled&&z.test(h.media)){try{f=h.imports,g=f.length}catch(o){g=0}for(l=0;g>l;l++)n.push(f[l]);try{j.push(h.cssText)}catch(o){}}j=m(j.reverse().join("")),e=k(a),d=c(a,j)}),i.attachEvent("onafterprint",function(){n(e),clearTimeout(g._removeSheetTimer),g._removeSheetTimer=setTimeout(b,500)}),a.printShived=!0,a)}var p,q,r="3.7.3",s=a.html5||{},t=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,u=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,v="_html5shiv",w=0,x={};!function(){try{var a=b.createElement("a");a.innerHTML="",p="hidden"in a,q=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){p=!0,q=!0}}();var y={elements:s.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:r,shivCSS:s.shivCSS!==!1,supportsUnknownElements:q,shivMethods:s.shivMethods!==!1,type:"default",shivDocument:j,createElement:g,createDocumentFragment:h,addElements:e};a.html5=y,j(b);var z=/^$|\b(?:all|print)\b/,A="html5shiv",B=!q&&function(){var c=b.documentElement;return!("undefined"==typeof b.namespaces||"undefined"==typeof b.parentWindow||"undefined"==typeof c.applyElement||"undefined"==typeof c.removeNode||"undefined"==typeof a.attachEvent)}();y.type+=" print",y.shivPrint=o,o(b),"object"==typeof module&&module.exports&&(module.exports=y)}("undefined"!=typeof window?window:this,document); \ No newline at end of file diff --git a/_static/js/html5shiv.min.js b/_static/js/html5shiv.min.js new file mode 100644 index 0000000..cd1c674 --- /dev/null +++ b/_static/js/html5shiv.min.js @@ -0,0 +1,4 @@ +/** +* @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed +*/ +!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),t.elements=c+" "+a,j(b)}function f(a){var b=s[a[q]];return b||(b={},r++,a[q]=r,s[r]=b),b}function g(a,c,d){if(c||(c=b),l)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():p.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||o.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),l)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return t.shivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(t,b.frag)}function j(a){a||(a=b);var d=f(a);return!t.shivCSS||k||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||i(a,d),a}var k,l,m="3.7.3-pre",n=a.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,q="_html5shiv",r=0,s={};!function(){try{var a=b.createElement("a");a.innerHTML="",k="hidden"in a,l=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){k=!0,l=!0}}();var t={elements:n.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:m,shivCSS:n.shivCSS!==!1,supportsUnknownElements:l,shivMethods:n.shivMethods!==!1,type:"default",shivDocument:j,createElement:g,createDocumentFragment:h,addElements:e};a.html5=t,j(b),"object"==typeof module&&module.exports&&(module.exports=t)}("undefined"!=typeof window?window:this,document); \ No newline at end of file diff --git a/_static/js/theme.js b/_static/js/theme.js new file mode 100644 index 0000000..1fddb6e --- /dev/null +++ b/_static/js/theme.js @@ -0,0 +1 @@ +!function(n){var e={};function t(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=n,t.c=e,t.d=function(n,e,i){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:i})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)t.d(i,o,function(e){return n[e]}.bind(null,o));return i},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=0)}([function(n,e,t){t(1),n.exports=t(3)},function(n,e,t){(function(){var e="undefined"!=typeof window?window.jQuery:t(2);n.exports.ThemeNav={navBar:null,win:null,winScroll:!1,winResize:!1,linkScroll:!1,winPosition:0,winHeight:null,docHeight:null,isRunning:!1,enable:function(n){var t=this;void 0===n&&(n=!0),t.isRunning||(t.isRunning=!0,e((function(e){t.init(e),t.reset(),t.win.on("hashchange",t.reset),n&&t.win.on("scroll",(function(){t.linkScroll||t.winScroll||(t.winScroll=!0,requestAnimationFrame((function(){t.onScroll()})))})),t.win.on("resize",(function(){t.winResize||(t.winResize=!0,requestAnimationFrame((function(){t.onResize()})))})),t.onResize()})))},enableSticky:function(){this.enable(!0)},init:function(n){n(document);var e=this;this.navBar=n("div.wy-side-scroll:first"),this.win=n(window),n(document).on("click","[data-toggle='wy-nav-top']",(function(){n("[data-toggle='wy-nav-shift']").toggleClass("shift"),n("[data-toggle='rst-versions']").toggleClass("shift")})).on("click",".wy-menu-vertical .current ul li a",(function(){var t=n(this);n("[data-toggle='wy-nav-shift']").removeClass("shift"),n("[data-toggle='rst-versions']").toggleClass("shift"),e.toggleCurrent(t),e.hashChange()})).on("click","[data-toggle='rst-current-version']",(function(){n("[data-toggle='rst-versions']").toggleClass("shift-up")})),n("table.docutils:not(.field-list,.footnote,.citation)").wrap("
"),n("table.docutils.footnote").wrap("
"),n("table.docutils.citation").wrap("
"),n(".wy-menu-vertical ul").not(".simple").siblings("a").each((function(){var t=n(this);expand=n(''),expand.on("click",(function(n){return e.toggleCurrent(t),n.stopPropagation(),!1})),t.prepend(expand)}))},reset:function(){var n=encodeURI(window.location.hash)||"#";try{var e=$(".wy-menu-vertical"),t=e.find('[href="'+n+'"]');if(0===t.length){var i=$('.document [id="'+n.substring(1)+'"]').closest("div.section");0===(t=e.find('[href="#'+i.attr("id")+'"]')).length&&(t=e.find('[href="#"]'))}if(t.length>0){$(".wy-menu-vertical .current").removeClass("current").attr("aria-expanded","false"),t.addClass("current").attr("aria-expanded","true"),t.closest("li.toctree-l1").parent().addClass("current").attr("aria-expanded","true");for(let n=1;n<=10;n++)t.closest("li.toctree-l"+n).addClass("current").attr("aria-expanded","true");t[0].scrollIntoView()}}catch(n){console.log("Error expanding nav for anchor",n)}},onScroll:function(){this.winScroll=!1;var n=this.win.scrollTop(),e=n+this.winHeight,t=this.navBar.scrollTop()+(n-this.winPosition);n<0||e>this.docHeight||(this.navBar.scrollTop(t),this.winPosition=n)},onResize:function(){this.winResize=!1,this.winHeight=this.win.height(),this.docHeight=$(document).height()},hashChange:function(){this.linkScroll=!0,this.win.one("hashchange",(function(){this.linkScroll=!1}))},toggleCurrent:function(n){var e=n.closest("li");e.siblings("li.current").removeClass("current").attr("aria-expanded","false"),e.siblings().find("li.current").removeClass("current").attr("aria-expanded","false");var t=e.find("> ul li");t.length&&(t.removeClass("current").attr("aria-expanded","false"),e.toggleClass("current").attr("aria-expanded",(function(n,e){return"true"==e?"false":"true"})))}},"undefined"!=typeof window&&(window.SphinxRtdTheme={Navigation:n.exports.ThemeNav,StickyNav:n.exports.ThemeNav}),function(){for(var n=0,e=["ms","moz","webkit","o"],t=0;t0 + var meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$"; // [C]VC[V] is m=1 + var mgr1 = "^(" + C + ")?" + V + C + V + C; // [C]VCVC... is m>1 + var s_v = "^(" + C + ")?" + v; // vowel in stem + + this.stemWord = function (w) { + var stem; + var suffix; + var firstch; + var origword = w; + + if (w.length < 3) + return w; + + var re; + var re2; + var re3; + var re4; + + firstch = w.substr(0,1); + if (firstch == "y") + w = firstch.toUpperCase() + w.substr(1); + + // Step 1a + re = /^(.+?)(ss|i)es$/; + re2 = /^(.+?)([^s])s$/; + + if (re.test(w)) + w = w.replace(re,"$1$2"); + else if (re2.test(w)) + w = w.replace(re2,"$1$2"); + + // Step 1b + re = /^(.+?)eed$/; + re2 = /^(.+?)(ed|ing)$/; + if (re.test(w)) { + var fp = re.exec(w); + re = new RegExp(mgr0); + if (re.test(fp[1])) { + re = /.$/; + w = w.replace(re,""); + } + } + else if (re2.test(w)) { + var fp = re2.exec(w); + stem = fp[1]; + re2 = new RegExp(s_v); + if (re2.test(stem)) { + w = stem; + re2 = /(at|bl|iz)$/; + re3 = new RegExp("([^aeiouylsz])\\1$"); + re4 = new RegExp("^" + C + v + "[^aeiouwxy]$"); + if (re2.test(w)) + w = w + "e"; + else if (re3.test(w)) { + re = /.$/; + w = w.replace(re,""); + } + else if (re4.test(w)) + w = w + "e"; + } + } + + // Step 1c + re = /^(.+?)y$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + re = new RegExp(s_v); + if (re.test(stem)) + w = stem + "i"; + } + + // Step 2 + re = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + suffix = fp[2]; + re = new RegExp(mgr0); + if (re.test(stem)) + w = stem + step2list[suffix]; + } + + // Step 3 + re = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + suffix = fp[2]; + re = new RegExp(mgr0); + if (re.test(stem)) + w = stem + step3list[suffix]; + } + + // Step 4 + re = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/; + re2 = /^(.+?)(s|t)(ion)$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + re = new RegExp(mgr1); + if (re.test(stem)) + w = stem; + } + else if (re2.test(w)) { + var fp = re2.exec(w); + stem = fp[1] + fp[2]; + re2 = new RegExp(mgr1); + if (re2.test(stem)) + w = stem; + } + + // Step 5 + re = /^(.+?)e$/; + if (re.test(w)) { + var fp = re.exec(w); + stem = fp[1]; + re = new RegExp(mgr1); + re2 = new RegExp(meq1); + re3 = new RegExp("^" + C + v + "[^aeiouwxy]$"); + if (re.test(stem) || (re2.test(stem) && !(re3.test(stem)))) + w = stem; + } + re = /ll$/; + re2 = new RegExp(mgr1); + if (re.test(w) && re2.test(w)) { + re = /.$/; + w = w.replace(re,""); + } + + // and turn initial Y back to y + if (firstch == "y") + w = firstch.toLowerCase() + w.substr(1); + return w; + } +} + diff --git a/_static/minus.png b/_static/minus.png new file mode 100644 index 0000000..d96755f Binary files /dev/null and b/_static/minus.png differ diff --git a/_static/panels.css b/_static/panels.css new file mode 100644 index 0000000..d6469ec --- /dev/null +++ b/_static/panels.css @@ -0,0 +1,131 @@ +/* Panels */ +.panel { + border: 1px solid grey; + border-radius: 4px; + margin-bottom: 0.85em; +} + +/* Panel header */ +.panel .panel-header { + display: block; + clear: both; + padding: 10px 15px; + border-bottom: 1px solid; + border-bottom-color: currentcolor; + border-top-left-radius: 3px; + border-top-right-radius: 3px; +} + +.panel .panel-header p { + font-weight: 700; + margin: 0; +} + +.panel .panel-header p:after { + font-size: 0.75em; + font-weight: 200; + text-align: right; + float: right; +} + +.panel .panel-header p:after { + content: "Click to expand"; +} + +.panel .panel-header.open p:after { + content: ""; +} + +/* Panel body */ +.panel .panel-body { + padding: 15px; + display: block; +} + +/* Prereq panel */ +.panel-prereq { + border-color: #faebcc; +} + +.panel-prereq .panel-header { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #faebcc; +} + +/* Callout panel */ +.panel-callout { + border-color: #337ab7; +} + +.panel-callout .panel-header { + color: #fff; + background-color: #337ab7; + border-color: #337ab7; +} + +/* Challenge panel */ +.panel-challenge { + border-color: #d6e9c6; +} + +.panel-challenge .panel-header { + color: #3c763d; + background-color: #dff0d8; + border-color: #d6e9c6; +} + +/* Hiddenchallenge panel */ +.panel-hiddenchallenge { + border-color: #d6e9c6; +} + +.panel-hiddenchallenge .panel-header { + color: #3c763d; + background-color: #dff0d8; + border-color: #d6e9c6; +} + +/* Solution panel */ +.panel-solution { + border-color: #ebccd1; +} + +.panel-solution .panel-header { + color: #a94442; + background-color: #f2dede; + border-color: #ebccd1; +} + +/* Objectives panel */ +.panel-objectives { + border-color: #faebcc; +} + +.panel-objectives .panel-header { + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #faebcc; +} + +/* Keypoints panel */ +.panel-keypoints { + border-color: #d6e9c6; +} + +.panel-keypoints .panel-header { + color: #3c763d; + background-color: #dff0d8; + border-color: #d6e9c6; +} + +/* Discussion panel */ +.panel-discussion { + border-color: #bce8f1; +} + +.panel-discussion .panel-header { + color: #31708f; + background-color: #d9edf7; + border-color: #bce8f1; +} diff --git a/_static/panels.js b/_static/panels.js new file mode 100644 index 0000000..838a42e --- /dev/null +++ b/_static/panels.js @@ -0,0 +1,12 @@ +$(document).ready(function() { + $(".panel").each(function(i, element) { + if (! element.querySelector(".panel-header").classList.contains("open")) { + $(element).children().not(".panel-header").hide(); + } + }); + + $(".panel .panel-header").click(function() { + $(this).parent().children().not(".panel-header").toggle(400); + $(this).parent().children(".panel-header").toggleClass("open"); + }) +}); diff --git a/_static/plus.png b/_static/plus.png new file mode 100644 index 0000000..7107cec Binary files /dev/null and b/_static/plus.png differ diff --git a/_static/pygments.css b/_static/pygments.css new file mode 100644 index 0000000..84ab303 --- /dev/null +++ b/_static/pygments.css @@ -0,0 +1,75 @@ +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #f8f8f8; } +.highlight .c { color: #3D7B7B; font-style: italic } /* Comment */ +.highlight .err { border: 1px solid #FF0000 } /* Error */ +.highlight .k { color: #008000; font-weight: bold } /* Keyword */ +.highlight .o { color: #666666 } /* Operator */ +.highlight .ch { color: #3D7B7B; font-style: italic } /* Comment.Hashbang */ +.highlight .cm { color: #3D7B7B; font-style: italic } /* Comment.Multiline */ +.highlight .cp { color: #9C6500 } /* Comment.Preproc */ +.highlight .cpf { color: #3D7B7B; font-style: italic } /* Comment.PreprocFile */ +.highlight .c1 { color: #3D7B7B; font-style: italic } /* Comment.Single */ +.highlight .cs { color: #3D7B7B; font-style: italic } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ +.highlight .gr { color: #E40000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #008400 } /* Generic.Inserted */ +.highlight .go { color: #717171 } /* Generic.Output */ +.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #008000 } /* Keyword.Pseudo */ +.highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #B00040 } /* Keyword.Type */ +.highlight .m { color: #666666 } /* Literal.Number */ +.highlight .s { color: #BA2121 } /* Literal.String */ +.highlight .na { color: #687822 } /* Name.Attribute */ +.highlight .nb { color: #008000 } /* Name.Builtin */ +.highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */ +.highlight .no { color: #880000 } /* Name.Constant */ +.highlight .nd { color: #AA22FF } /* Name.Decorator */ +.highlight .ni { color: #717171; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #CB3F38; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0000FF } /* Name.Function */ +.highlight .nl { color: #767600 } /* Name.Label */ +.highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */ +.highlight .nv { color: #19177C } /* Name.Variable */ +.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #666666 } /* Literal.Number.Bin */ +.highlight .mf { color: #666666 } /* Literal.Number.Float */ +.highlight .mh { color: #666666 } /* Literal.Number.Hex */ +.highlight .mi { color: #666666 } /* Literal.Number.Integer */ +.highlight .mo { color: #666666 } /* Literal.Number.Oct */ +.highlight .sa { color: #BA2121 } /* Literal.String.Affix */ +.highlight .sb { color: #BA2121 } /* Literal.String.Backtick */ +.highlight .sc { color: #BA2121 } /* Literal.String.Char */ +.highlight .dl { color: #BA2121 } /* Literal.String.Delimiter */ +.highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ +.highlight .s2 { color: #BA2121 } /* Literal.String.Double */ +.highlight .se { color: #AA5D1F; font-weight: bold } /* Literal.String.Escape */ +.highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */ +.highlight .si { color: #A45A77; font-weight: bold } /* Literal.String.Interpol */ +.highlight .sx { color: #008000 } /* Literal.String.Other */ +.highlight .sr { color: #A45A77 } /* Literal.String.Regex */ +.highlight .s1 { color: #BA2121 } /* Literal.String.Single */ +.highlight .ss { color: #19177C } /* Literal.String.Symbol */ +.highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0000FF } /* Name.Function.Magic */ +.highlight .vc { color: #19177C } /* Name.Variable.Class */ +.highlight .vg { color: #19177C } /* Name.Variable.Global */ +.highlight .vi { color: #19177C } /* Name.Variable.Instance */ +.highlight .vm { color: #19177C } /* Name.Variable.Magic */ +.highlight .il { color: #666666 } /* Literal.Number.Integer.Long */ \ No newline at end of file diff --git a/_static/searchtools.js b/_static/searchtools.js new file mode 100644 index 0000000..7918c3f --- /dev/null +++ b/_static/searchtools.js @@ -0,0 +1,574 @@ +/* + * searchtools.js + * ~~~~~~~~~~~~~~~~ + * + * Sphinx JavaScript utilities for the full-text search. + * + * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ +"use strict"; + +/** + * Simple result scoring code. + */ +if (typeof Scorer === "undefined") { + var Scorer = { + // Implement the following function to further tweak the score for each result + // The function takes a result array [docname, title, anchor, descr, score, filename] + // and returns the new score. + /* + score: result => { + const [docname, title, anchor, descr, score, filename] = result + return score + }, + */ + + // query matches the full name of an object + objNameMatch: 11, + // or matches in the last dotted part of the object name + objPartialMatch: 6, + // Additive scores depending on the priority of the object + objPrio: { + 0: 15, // used to be importantResults + 1: 5, // used to be objectResults + 2: -5, // used to be unimportantResults + }, + // Used when the priority is not in the mapping. + objPrioDefault: 0, + + // query found in title + title: 15, + partialTitle: 7, + // query found in terms + term: 5, + partialTerm: 2, + }; +} + +const _removeChildren = (element) => { + while (element && element.lastChild) element.removeChild(element.lastChild); +}; + +/** + * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#escaping + */ +const _escapeRegExp = (string) => + string.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string + +const _displayItem = (item, searchTerms, highlightTerms) => { + const docBuilder = DOCUMENTATION_OPTIONS.BUILDER; + const docFileSuffix = DOCUMENTATION_OPTIONS.FILE_SUFFIX; + const docLinkSuffix = DOCUMENTATION_OPTIONS.LINK_SUFFIX; + const showSearchSummary = DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY; + const contentRoot = document.documentElement.dataset.content_root; + + const [docName, title, anchor, descr, score, _filename] = item; + + let listItem = document.createElement("li"); + let requestUrl; + let linkUrl; + if (docBuilder === "dirhtml") { + // dirhtml builder + let dirname = docName + "/"; + if (dirname.match(/\/index\/$/)) + dirname = dirname.substring(0, dirname.length - 6); + else if (dirname === "index/") dirname = ""; + requestUrl = contentRoot + dirname; + linkUrl = requestUrl; + } else { + // normal html builders + requestUrl = contentRoot + docName + docFileSuffix; + linkUrl = docName + docLinkSuffix; + } + let linkEl = listItem.appendChild(document.createElement("a")); + linkEl.href = linkUrl + anchor; + linkEl.dataset.score = score; + linkEl.innerHTML = title; + if (descr) { + listItem.appendChild(document.createElement("span")).innerHTML = + " (" + descr + ")"; + // highlight search terms in the description + if (SPHINX_HIGHLIGHT_ENABLED) // set in sphinx_highlight.js + highlightTerms.forEach((term) => _highlightText(listItem, term, "highlighted")); + } + else if (showSearchSummary) + fetch(requestUrl) + .then((responseData) => responseData.text()) + .then((data) => { + if (data) + listItem.appendChild( + Search.makeSearchSummary(data, searchTerms) + ); + // highlight search terms in the summary + if (SPHINX_HIGHLIGHT_ENABLED) // set in sphinx_highlight.js + highlightTerms.forEach((term) => _highlightText(listItem, term, "highlighted")); + }); + Search.output.appendChild(listItem); +}; +const _finishSearch = (resultCount) => { + Search.stopPulse(); + Search.title.innerText = _("Search Results"); + if (!resultCount) + Search.status.innerText = Documentation.gettext( + "Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories." + ); + else + Search.status.innerText = _( + `Search finished, found ${resultCount} page(s) matching the search query.` + ); +}; +const _displayNextItem = ( + results, + resultCount, + searchTerms, + highlightTerms, +) => { + // results left, load the summary and display it + // this is intended to be dynamic (don't sub resultsCount) + if (results.length) { + _displayItem(results.pop(), searchTerms, highlightTerms); + setTimeout( + () => _displayNextItem(results, resultCount, searchTerms, highlightTerms), + 5 + ); + } + // search finished, update title and status message + else _finishSearch(resultCount); +}; + +/** + * Default splitQuery function. Can be overridden in ``sphinx.search`` with a + * custom function per language. + * + * The regular expression works by splitting the string on consecutive characters + * that are not Unicode letters, numbers, underscores, or emoji characters. + * This is the same as ``\W+`` in Python, preserving the surrogate pair area. + */ +if (typeof splitQuery === "undefined") { + var splitQuery = (query) => query + .split(/[^\p{Letter}\p{Number}_\p{Emoji_Presentation}]+/gu) + .filter(term => term) // remove remaining empty strings +} + +/** + * Search Module + */ +const Search = { + _index: null, + _queued_query: null, + _pulse_status: -1, + + htmlToText: (htmlString) => { + const htmlElement = new DOMParser().parseFromString(htmlString, 'text/html'); + htmlElement.querySelectorAll(".headerlink").forEach((el) => { el.remove() }); + const docContent = htmlElement.querySelector('[role="main"]'); + if (docContent !== undefined) return docContent.textContent; + console.warn( + "Content block not found. Sphinx search tries to obtain it via '[role=main]'. Could you check your theme or template." + ); + return ""; + }, + + init: () => { + const query = new URLSearchParams(window.location.search).get("q"); + document + .querySelectorAll('input[name="q"]') + .forEach((el) => (el.value = query)); + if (query) Search.performSearch(query); + }, + + loadIndex: (url) => + (document.body.appendChild(document.createElement("script")).src = url), + + setIndex: (index) => { + Search._index = index; + if (Search._queued_query !== null) { + const query = Search._queued_query; + Search._queued_query = null; + Search.query(query); + } + }, + + hasIndex: () => Search._index !== null, + + deferQuery: (query) => (Search._queued_query = query), + + stopPulse: () => (Search._pulse_status = -1), + + startPulse: () => { + if (Search._pulse_status >= 0) return; + + const pulse = () => { + Search._pulse_status = (Search._pulse_status + 1) % 4; + Search.dots.innerText = ".".repeat(Search._pulse_status); + if (Search._pulse_status >= 0) window.setTimeout(pulse, 500); + }; + pulse(); + }, + + /** + * perform a search for something (or wait until index is loaded) + */ + performSearch: (query) => { + // create the required interface elements + const searchText = document.createElement("h2"); + searchText.textContent = _("Searching"); + const searchSummary = document.createElement("p"); + searchSummary.classList.add("search-summary"); + searchSummary.innerText = ""; + const searchList = document.createElement("ul"); + searchList.classList.add("search"); + + const out = document.getElementById("search-results"); + Search.title = out.appendChild(searchText); + Search.dots = Search.title.appendChild(document.createElement("span")); + Search.status = out.appendChild(searchSummary); + Search.output = out.appendChild(searchList); + + const searchProgress = document.getElementById("search-progress"); + // Some themes don't use the search progress node + if (searchProgress) { + searchProgress.innerText = _("Preparing search..."); + } + Search.startPulse(); + + // index already loaded, the browser was quick! + if (Search.hasIndex()) Search.query(query); + else Search.deferQuery(query); + }, + + /** + * execute search (requires search index to be loaded) + */ + query: (query) => { + const filenames = Search._index.filenames; + const docNames = Search._index.docnames; + const titles = Search._index.titles; + const allTitles = Search._index.alltitles; + const indexEntries = Search._index.indexentries; + + // stem the search terms and add them to the correct list + const stemmer = new Stemmer(); + const searchTerms = new Set(); + const excludedTerms = new Set(); + const highlightTerms = new Set(); + const objectTerms = new Set(splitQuery(query.toLowerCase().trim())); + splitQuery(query.trim()).forEach((queryTerm) => { + const queryTermLower = queryTerm.toLowerCase(); + + // maybe skip this "word" + // stopwords array is from language_data.js + if ( + stopwords.indexOf(queryTermLower) !== -1 || + queryTerm.match(/^\d+$/) + ) + return; + + // stem the word + let word = stemmer.stemWord(queryTermLower); + // select the correct list + if (word[0] === "-") excludedTerms.add(word.substr(1)); + else { + searchTerms.add(word); + highlightTerms.add(queryTermLower); + } + }); + + if (SPHINX_HIGHLIGHT_ENABLED) { // set in sphinx_highlight.js + localStorage.setItem("sphinx_highlight_terms", [...highlightTerms].join(" ")) + } + + // console.debug("SEARCH: searching for:"); + // console.info("required: ", [...searchTerms]); + // console.info("excluded: ", [...excludedTerms]); + + // array of [docname, title, anchor, descr, score, filename] + let results = []; + _removeChildren(document.getElementById("search-progress")); + + const queryLower = query.toLowerCase(); + for (const [title, foundTitles] of Object.entries(allTitles)) { + if (title.toLowerCase().includes(queryLower) && (queryLower.length >= title.length/2)) { + for (const [file, id] of foundTitles) { + let score = Math.round(100 * queryLower.length / title.length) + results.push([ + docNames[file], + titles[file] !== title ? `${titles[file]} > ${title}` : title, + id !== null ? "#" + id : "", + null, + score, + filenames[file], + ]); + } + } + } + + // search for explicit entries in index directives + for (const [entry, foundEntries] of Object.entries(indexEntries)) { + if (entry.includes(queryLower) && (queryLower.length >= entry.length/2)) { + for (const [file, id] of foundEntries) { + let score = Math.round(100 * queryLower.length / entry.length) + results.push([ + docNames[file], + titles[file], + id ? "#" + id : "", + null, + score, + filenames[file], + ]); + } + } + } + + // lookup as object + objectTerms.forEach((term) => + results.push(...Search.performObjectSearch(term, objectTerms)) + ); + + // lookup as search terms in fulltext + results.push(...Search.performTermsSearch(searchTerms, excludedTerms)); + + // let the scorer override scores with a custom scoring function + if (Scorer.score) results.forEach((item) => (item[4] = Scorer.score(item))); + + // now sort the results by score (in opposite order of appearance, since the + // display function below uses pop() to retrieve items) and then + // alphabetically + results.sort((a, b) => { + const leftScore = a[4]; + const rightScore = b[4]; + if (leftScore === rightScore) { + // same score: sort alphabetically + const leftTitle = a[1].toLowerCase(); + const rightTitle = b[1].toLowerCase(); + if (leftTitle === rightTitle) return 0; + return leftTitle > rightTitle ? -1 : 1; // inverted is intentional + } + return leftScore > rightScore ? 1 : -1; + }); + + // remove duplicate search results + // note the reversing of results, so that in the case of duplicates, the highest-scoring entry is kept + let seen = new Set(); + results = results.reverse().reduce((acc, result) => { + let resultStr = result.slice(0, 4).concat([result[5]]).map(v => String(v)).join(','); + if (!seen.has(resultStr)) { + acc.push(result); + seen.add(resultStr); + } + return acc; + }, []); + + results = results.reverse(); + + // for debugging + //Search.lastresults = results.slice(); // a copy + // console.info("search results:", Search.lastresults); + + // print the results + _displayNextItem(results, results.length, searchTerms, highlightTerms); + }, + + /** + * search for object names + */ + performObjectSearch: (object, objectTerms) => { + const filenames = Search._index.filenames; + const docNames = Search._index.docnames; + const objects = Search._index.objects; + const objNames = Search._index.objnames; + const titles = Search._index.titles; + + const results = []; + + const objectSearchCallback = (prefix, match) => { + const name = match[4] + const fullname = (prefix ? prefix + "." : "") + name; + const fullnameLower = fullname.toLowerCase(); + if (fullnameLower.indexOf(object) < 0) return; + + let score = 0; + const parts = fullnameLower.split("."); + + // check for different match types: exact matches of full name or + // "last name" (i.e. last dotted part) + if (fullnameLower === object || parts.slice(-1)[0] === object) + score += Scorer.objNameMatch; + else if (parts.slice(-1)[0].indexOf(object) > -1) + score += Scorer.objPartialMatch; // matches in last name + + const objName = objNames[match[1]][2]; + const title = titles[match[0]]; + + // If more than one term searched for, we require other words to be + // found in the name/title/description + const otherTerms = new Set(objectTerms); + otherTerms.delete(object); + if (otherTerms.size > 0) { + const haystack = `${prefix} ${name} ${objName} ${title}`.toLowerCase(); + if ( + [...otherTerms].some((otherTerm) => haystack.indexOf(otherTerm) < 0) + ) + return; + } + + let anchor = match[3]; + if (anchor === "") anchor = fullname; + else if (anchor === "-") anchor = objNames[match[1]][1] + "-" + fullname; + + const descr = objName + _(", in ") + title; + + // add custom score for some objects according to scorer + if (Scorer.objPrio.hasOwnProperty(match[2])) + score += Scorer.objPrio[match[2]]; + else score += Scorer.objPrioDefault; + + results.push([ + docNames[match[0]], + fullname, + "#" + anchor, + descr, + score, + filenames[match[0]], + ]); + }; + Object.keys(objects).forEach((prefix) => + objects[prefix].forEach((array) => + objectSearchCallback(prefix, array) + ) + ); + return results; + }, + + /** + * search for full-text terms in the index + */ + performTermsSearch: (searchTerms, excludedTerms) => { + // prepare search + const terms = Search._index.terms; + const titleTerms = Search._index.titleterms; + const filenames = Search._index.filenames; + const docNames = Search._index.docnames; + const titles = Search._index.titles; + + const scoreMap = new Map(); + const fileMap = new Map(); + + // perform the search on the required terms + searchTerms.forEach((word) => { + const files = []; + const arr = [ + { files: terms[word], score: Scorer.term }, + { files: titleTerms[word], score: Scorer.title }, + ]; + // add support for partial matches + if (word.length > 2) { + const escapedWord = _escapeRegExp(word); + Object.keys(terms).forEach((term) => { + if (term.match(escapedWord) && !terms[word]) + arr.push({ files: terms[term], score: Scorer.partialTerm }); + }); + Object.keys(titleTerms).forEach((term) => { + if (term.match(escapedWord) && !titleTerms[word]) + arr.push({ files: titleTerms[word], score: Scorer.partialTitle }); + }); + } + + // no match but word was a required one + if (arr.every((record) => record.files === undefined)) return; + + // found search word in contents + arr.forEach((record) => { + if (record.files === undefined) return; + + let recordFiles = record.files; + if (recordFiles.length === undefined) recordFiles = [recordFiles]; + files.push(...recordFiles); + + // set score for the word in each file + recordFiles.forEach((file) => { + if (!scoreMap.has(file)) scoreMap.set(file, {}); + scoreMap.get(file)[word] = record.score; + }); + }); + + // create the mapping + files.forEach((file) => { + if (fileMap.has(file) && fileMap.get(file).indexOf(word) === -1) + fileMap.get(file).push(word); + else fileMap.set(file, [word]); + }); + }); + + // now check if the files don't contain excluded terms + const results = []; + for (const [file, wordList] of fileMap) { + // check if all requirements are matched + + // as search terms with length < 3 are discarded + const filteredTermCount = [...searchTerms].filter( + (term) => term.length > 2 + ).length; + if ( + wordList.length !== searchTerms.size && + wordList.length !== filteredTermCount + ) + continue; + + // ensure that none of the excluded terms is in the search result + if ( + [...excludedTerms].some( + (term) => + terms[term] === file || + titleTerms[term] === file || + (terms[term] || []).includes(file) || + (titleTerms[term] || []).includes(file) + ) + ) + break; + + // select one (max) score for the file. + const score = Math.max(...wordList.map((w) => scoreMap.get(file)[w])); + // add result to the result list + results.push([ + docNames[file], + titles[file], + "", + null, + score, + filenames[file], + ]); + } + return results; + }, + + /** + * helper function to return a node containing the + * search summary for a given text. keywords is a list + * of stemmed words. + */ + makeSearchSummary: (htmlText, keywords) => { + const text = Search.htmlToText(htmlText); + if (text === "") return null; + + const textLower = text.toLowerCase(); + const actualStartPosition = [...keywords] + .map((k) => textLower.indexOf(k.toLowerCase())) + .filter((i) => i > -1) + .slice(-1)[0]; + const startWithContext = Math.max(actualStartPosition - 120, 0); + + const top = startWithContext === 0 ? "" : "..."; + const tail = startWithContext + 240 < text.length ? "..." : ""; + + let summary = document.createElement("p"); + summary.classList.add("context"); + summary.textContent = top + text.substr(startWithContext, 240).trim() + tail; + + return summary; + }, +}; + +_ready(Search.init); diff --git a/_static/sphinx_highlight.js b/_static/sphinx_highlight.js new file mode 100644 index 0000000..8a96c69 --- /dev/null +++ b/_static/sphinx_highlight.js @@ -0,0 +1,154 @@ +/* Highlighting utilities for Sphinx HTML documentation. */ +"use strict"; + +const SPHINX_HIGHLIGHT_ENABLED = true + +/** + * highlight a given string on a node by wrapping it in + * span elements with the given class name. + */ +const _highlight = (node, addItems, text, className) => { + if (node.nodeType === Node.TEXT_NODE) { + const val = node.nodeValue; + const parent = node.parentNode; + const pos = val.toLowerCase().indexOf(text); + if ( + pos >= 0 && + !parent.classList.contains(className) && + !parent.classList.contains("nohighlight") + ) { + let span; + + const closestNode = parent.closest("body, svg, foreignObject"); + const isInSVG = closestNode && closestNode.matches("svg"); + if (isInSVG) { + span = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); + } else { + span = document.createElement("span"); + span.classList.add(className); + } + + span.appendChild(document.createTextNode(val.substr(pos, text.length))); + const rest = document.createTextNode(val.substr(pos + text.length)); + parent.insertBefore( + span, + parent.insertBefore( + rest, + node.nextSibling + ) + ); + node.nodeValue = val.substr(0, pos); + /* There may be more occurrences of search term in this node. So call this + * function recursively on the remaining fragment. + */ + _highlight(rest, addItems, text, className); + + if (isInSVG) { + const rect = document.createElementNS( + "http://www.w3.org/2000/svg", + "rect" + ); + const bbox = parent.getBBox(); + rect.x.baseVal.value = bbox.x; + rect.y.baseVal.value = bbox.y; + rect.width.baseVal.value = bbox.width; + rect.height.baseVal.value = bbox.height; + rect.setAttribute("class", className); + addItems.push({ parent: parent, target: rect }); + } + } + } else if (node.matches && !node.matches("button, select, textarea")) { + node.childNodes.forEach((el) => _highlight(el, addItems, text, className)); + } +}; +const _highlightText = (thisNode, text, className) => { + let addItems = []; + _highlight(thisNode, addItems, text, className); + addItems.forEach((obj) => + obj.parent.insertAdjacentElement("beforebegin", obj.target) + ); +}; + +/** + * Small JavaScript module for the documentation. + */ +const SphinxHighlight = { + + /** + * highlight the search words provided in localstorage in the text + */ + highlightSearchWords: () => { + if (!SPHINX_HIGHLIGHT_ENABLED) return; // bail if no highlight + + // get and clear terms from localstorage + const url = new URL(window.location); + const highlight = + localStorage.getItem("sphinx_highlight_terms") + || url.searchParams.get("highlight") + || ""; + localStorage.removeItem("sphinx_highlight_terms") + url.searchParams.delete("highlight"); + window.history.replaceState({}, "", url); + + // get individual terms from highlight string + const terms = highlight.toLowerCase().split(/\s+/).filter(x => x); + if (terms.length === 0) return; // nothing to do + + // There should never be more than one element matching "div.body" + const divBody = document.querySelectorAll("div.body"); + const body = divBody.length ? divBody[0] : document.querySelector("body"); + window.setTimeout(() => { + terms.forEach((term) => _highlightText(body, term, "highlighted")); + }, 10); + + const searchBox = document.getElementById("searchbox"); + if (searchBox === null) return; + searchBox.appendChild( + document + .createRange() + .createContextualFragment( + '" + ) + ); + }, + + /** + * helper function to hide the search marks again + */ + hideSearchWords: () => { + document + .querySelectorAll("#searchbox .highlight-link") + .forEach((el) => el.remove()); + document + .querySelectorAll("span.highlighted") + .forEach((el) => el.classList.remove("highlighted")); + localStorage.removeItem("sphinx_highlight_terms") + }, + + initEscapeListener: () => { + // only install a listener if it is really needed + if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) return; + + document.addEventListener("keydown", (event) => { + // bail for input elements + if (BLACKLISTED_KEY_CONTROL_ELEMENTS.has(document.activeElement.tagName)) return; + // bail with special keys + if (event.shiftKey || event.altKey || event.ctrlKey || event.metaKey) return; + if (DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS && (event.key === "Escape")) { + SphinxHighlight.hideSearchWords(); + event.preventDefault(); + } + }); + }, +}; + +_ready(() => { + /* Do not call highlightSearchWords() when we are on the search page. + * It will highlight words from the *previous* search query. + */ + if (typeof Search === "undefined") SphinxHighlight.highlightSearchWords(); + SphinxHighlight.initEscapeListener(); +}); diff --git a/_static/starterkit.png b/_static/starterkit.png new file mode 100644 index 0000000..97dc642 Binary files /dev/null and b/_static/starterkit.png differ diff --git a/call-for-logos/README.html b/call-for-logos/README.html new file mode 100644 index 0000000..33c9937 --- /dev/null +++ b/call-for-logos/README.html @@ -0,0 +1,381 @@ + + + + + + + Call for logos — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Call for logos

+

Logo 1

+

+

Logo 2

+

+

Logo 3

+

+

Logo 4

+

+

Logo 5

+

+

Logo 6

+

+

+

Logo 7

+

+

+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/contents.html b/contents.html new file mode 100644 index 0000000..6bae2b7 --- /dev/null +++ b/contents.html @@ -0,0 +1,522 @@ + + + + + + + Key4hep — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Key4hep

+
+

Contents:

+ +
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/developing-key4hep-software/CMakeBuild.html b/developing-key4hep-software/CMakeBuild.html new file mode 100644 index 0000000..6908cc7 --- /dev/null +++ b/developing-key4hep-software/CMakeBuild.html @@ -0,0 +1,445 @@ + + + + + + + Building Key4hep using CMake: For Developers — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Building Key4hep using CMake: For Developers

+

A common problem when developing is needing to build multiple packages on top of +the stack to test changes in several repositories. One way of doing this is +using Spack but there is an experimental way using cmake.

+

First, source the releases or the nightlies as usual. Then, run the following +command:

+
/cvmfs/sw-nightlies.hsf.org/key4hep/experimental/setup.py pkg1 pkg2
+
+
+

Where pkg1 and pkg2 are the packages that will be cloned (can be empty). On +top of that, setup.py checks for folders (or symbolic links) in the current +directory that contain CMakeLists.txt. This can be useful if we want to use a +local version and don’t need to clone some repositories. After running the +command, a CMakeLists.txt file will appear. We may have to edit it manually if +we are using packages that are not recognized or are in a different organization +than the predefined ones. The information that we’ll need to edit is most likely +one of the first lines at the top:

+
set(pkgs EDM4hep k4FWCore)
+
+
+

that sets the packages that will be built in their right build order. +and the individual FetchContent_Declare entries for each package.

+

After we are happy with the CMakeLists.txt file, it’s important that we set the +new environment variables:

+
mkdir install
+cd install
+export PATH=$PWD/bin:$PATH
+export LD_LIBRARY_PATH=$PWD/lib:$PWD/lib64:$LD_LIBRARY_PATH
+export ROOT_INCLUDE_PATH=$PWD/include:$ROOT_INCLUDE_PATH
+export PYTHONPATH=$PWD/python:$PYTHONPATH
+export CMAKE_PREFIX_PATH=$PWD:$CMAKE_PREFIX_PATH
+cd ..
+
+
+

Then, we can run the usual commands for building:

+
mkdir build
+cd build
+cmake .. -DCMAKE_INSTALL_PREFIX=../install
+make -j N install
+
+
+

and it will build all the packages at the same time, so it may take some time. Symbolic links are +created in the build directory for each package that allow us to run ctest like:

+
cd k4FWCore
+ctest -j 2
+
+
+

in case we are building k4FWCore.

+

For the cloned directories, in case we want to clone a different commit or +branch from the master/main branch, this can be done by editing the +CMakeLists.txt

+
+

Possible issues

+

Not everything has been tested so it’s likely some things won’t work. For +many packages there are recent changes that enable these builds so using older +versions probably won’t work.

+
+
+

Packages that have been tested

+

The following packages have been built together successfully so it should be +possible to build any combination of them:

+
    +
  • podio

  • +
  • EDM4hep

  • +
  • k4FWCore

  • +
  • LCIO

  • +
  • ILCUTIL

  • +
  • LCCD

  • +
  • GEAR

  • +
  • Marlin

  • +
  • k4EDM4hep2LcioConv

  • +
  • k4MarlinWrapper

  • +
+
+
+

Changing to a different commit or branch

+

If we don’t want to build the master or main branch of the repositories we are +cloning, we have two options:

+
    +
  • Set the commit or branch we want in the CMakeLists.txt in the corresponding +FetchContent_Declare entry by changing GIT_TAG to whatever commit or branch +we want to checkout.

  • +
  • Go to the source directory, which can be found in the build directory under +_deps/<pkg>-src and checkout manually whatever commit or branch you want.

  • +
+
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/developing-key4hep-software/Key4hepCMakeGuide.html b/developing-key4hep-software/Key4hepCMakeGuide.html new file mode 100644 index 0000000..627eb30 --- /dev/null +++ b/developing-key4hep-software/Key4hepCMakeGuide.html @@ -0,0 +1,503 @@ + + + + + + + CMake guide for Key4hep software — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

CMake guide for Key4hep software

+
+

Overview

+

CMake is a tool for building software, which has become the de-facto +standard outside HEP. In HEP, it is for example used by the ILC/CLIC +communities and by the LHCb collaboration. For CMS people, CMake is the +equivalent of scram.

+
+
+

Quick start into building Key4hep Software

+
+

Set up the environment

+

The first step is adding all dependencies to the bash environment. +In case you are unsure, it is best to use the default init script, provided on CVMFS for Centos7:

+
source /cvmfs/sw.hsf.org/key4hep/setup.sh
+
+
+

Note that mixing setup scripts (from another package, for example) may or may not work as intended - more likely not. +For any requests to changes in the environment, feel free to contact the software team on the mailing list or any other channels. +Developers may also look into spack to have more fine-grained control over the build dependencies.

+
+
+

Running CMake

+
    +
  • Create a build directory: mkdir build; cd build

  • +
  • Run CMake in the build directory: cmake ..

  • +
  • Change any cmake options by rerunning cmake.
    +For example: cmake .. -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=Debug.
    +Tools like ccmake may also be useful: ccmake ..

  • +
  • Compile the software, using all the cpus available: make -j `getconf _NPROCESSORS_ONLN`

  • +
  • Install by running make install

  • +
  • In case any dependency is changed, most likely you need to remove all the contents of the build folder and rerun cmake and the compilation.

  • +
+
+
+

Using your local installation

+

In order to run the code you just installed, there are a few environment variables to set up (assuming the installation directory is the working directory):

+
mkdir build; cd build
+cmake .. -DCMAKE_INSTALL_PREFIX=../InstallArea
+make install
+cd ../InstallArea
+
+
+
    +
  • export CMAKE_PREFIX_PATH=$PWD/:$CMAKE_PREFIX_PATH

    +
      +
    • in order to use this installation as a dependency for other packages

    • +
    +
  • +
  • export PATH=$PWD/bin/:$PATH

    +
      +
    • in order to make any executables available on the command line

    • +
    +
  • +
  • export LD_LIBRARY_PATH=$PWD/lib:$PWD/lib64:$LD_LIBRARY_PATH

    +
      +
    • in order to make libraries available for linking and for the plugin systems in Gaudi/DD4hep

    • +
    +
  • +
  • export PYTHONPATH=$PWD/python:$PYTHONPATH

    +
      +
    • in order to make libraries available for linking and for the plugin systems in Gaudi/DD4hep

    • +
    +
  • +
  • export ROOT_INCLUDE_PATH=$PWD/include:$ROOT_INCLUDE_PATH

    +
      +
    • in case the package builds ROOT dictionaries

    • +
    +
  • +
  • export <PACKAGENAME>=$PWD/share/<PackageName>

    +
      +
    • some packages distribute data files that are found with a special environment variable, usually this is the package name in all caps.

    • +
    • e.g. export K4SIMDELPHES=$PWD/share/k4SimDelphes/

    • +
    +
  • +
+
+
+
+

CMake example packages

+

Colin provides a few simple CMake +examples. They are helpful to understand the basics of +CMake.

+

Get these packages:

+
git clone https://github.com/cbernet/cmake-examples.git
+cd cmake-examples
+
+
+

Follow the instructions in +README.md.

+
+
+

Changing the CMake Configuration

+

When adding new source files to a package, the CMake build system needs +to be made aware of them. Usually CMakeLists.txt contains a wildcard +expression that adds all implementation files in a subfolder, e.g. +src/*.cpp , so there is no need to explicitly add the names of the +new files. To update the list of files, it is fastest to run +make configure .

+

Note that when changing the name of a property of an algorithm or a +tool, make (and not only make packagename ) needs to be run for +Gaudi to be aware of the change.

+
+

Runtime Environment

+

Key4hep packages, in particular the gaudi framework components, consist of executables, headers, scripts, dynamic libraries, xmls and special files describing gaudi components. +In order to use these, some environment variables need to be set.

+

Gaudi also offers the possibility to set up the environment via the xenv command. This is done by simply prefixing the command you want to run with the run script in the top level directory of FCCSW, or directly in the build directory.

+
./build/run key4run Examples/options/pythia.py
+
+
+

Sometimes it is convenient to run FCCSW directly from the binaries in the build directory without installing them. +This can be done by using the run script in the build directory, or setting the environment variables as in setup.sh for the build folder. +Note that the directories in the build folder differ a bit. Mostly it is important the the LD_LIBRARY_PATH is pre-fixed with the library directories. The fccrun command should pick up the components from the build folder then.

+
+
+
+

CTest in Key4hep

+

Key4hep also uses CMake for integration tests. +They are added with add_test() and can be run with make test in the build folder. For Gaudi packages, the environment should be set so they can be run also in a build environments, see https://github.com/HEP-FCC/k4Gen/blob/main/k4Gen/CMakeLists.txt

+
+

Customizing how CMake is run

+

An environment variable is used to forward command line arguments to the cmake command, for example to run cmake with the trace option:

+
CMAKEFLAGS='--trace' make
+
+
+
+
+

How do I check compilation flags?

+
+
+

Instead of running   make , run:

+
make VERBOSE=1 
+
+
+
+
+
+
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/developing-key4hep-software/Key4hepSoftwareGit.html b/developing-key4hep-software/Key4hepSoftwareGit.html new file mode 100644 index 0000000..0b4c9b8 --- /dev/null +++ b/developing-key4hep-software/Key4hepSoftwareGit.html @@ -0,0 +1,578 @@ + + + + + + + Github workflow and contribution guide — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Github workflow and contribution guide

+
+

Overview

+

This page should allow users that are new to Git to get started with Key4hep software, and describes the workflow for accessing and contributing code.

+

For a general introduction to git, have a look at these tutorials:

+ +
+
+

First time setup of git

+

Please refer to this tutorial and the GitHub help.

+
+
+

Generate and set up ssh keys for github

+

We recommend to clone github repositories via SSH, especially if you want to +contribute code. For this to work, you need to generate ssh keys for +authentication. See the corresponding github +help-page.

+
+
+

Generate and set up ssh keys for github

+
+
+

If you only want to use the software it may be easier to use https. In that case you don’t need to generate the keys but have to replace git@github: with https://github.com/ in all the instructions. Note that you’ll not be able to push to your repository when you are on lxplus. You can also start using https for now and later re-add your repository with ssh authentication, see the trouble shooting section.

+
+
+
+
+

Improving your git experience

+

It may be useful to install Git integration tools for your shell that allow tab-completion of most git commands and also can show you in your prompt on which branch you currently are, what changes you have pending, etc.

+
+
+

Development workflow

+

For any key4hep repository (taking k4SimDelphes as an example), you will be using (at least) 3 sources:

+
    +
  1. The official Key4hep repository on github

  2. +
  3. Your fork of the repository (see github help on what that means)

  4. +
  5. Your local repository in your work area (e.g. on AFS)

  6. +
+

The repositories 1 and 2 are added as remote to the repository 3:

+
git clone git@github.com:[YOUR_GITHUB_USER]/k4SimDelphes.git # create a local copy (3) of your fork (2)
+cd k4SimDelphes
+git remote add upstream git@github.com:key4hep/k4SimDelphes.git # add official repo (1) as additional remote
+
+
+
+

Keeping your local repository up to date

+
    +
  • fetch all changes from the official repository (1)

    +
    git fetch --all --prune
    +
    +
    +
  • +
  • rebase your development area to the master branch from the official repository (1), please read this to avoid loss of work

    +
    git rebase -i upstream/main
    +
    +
    +

    in this process you can also fix any commits that need touching up, be aware that deleting commits in the list will result also in the deletion of the corresponding changes (more info in the GitHub help and the Atlassian tutorial)

    +
  • +
  • push your local changes to your fork (2), see below how to create a local branch

    +
    git push origin [NAME_OF_LOCAL_BRANCH]
    +
    +
    +
  • +
+
+
+

Contributing code

+
    +
  • if you are fixing a bug, first create an issue in the github issue tracker.

  • +
  • develop your feature in your local copy (3) on a local branch of your choice, to create a branch do:

    +
    git branch -b [NAME_OF_LOCAL_BRANCH]
    +
    +
    +
  • +
  • refer to this tutorial to see how to commit changes

  • +
  • occasionally, get new code from the official repository (1) as explained above and merge it in this branch

  • +
  • test:

    +
      +
    • that the code compiles and all tests succeed (make && make test)

    • +
    • that your code runs (even better: [add an automatic test]

    • +
    • that it produces the expected results

    • +
    +
  • +
  • push your local branch to your fork (2) (see above)

  • +
  • create a pull request from your fork (2) to the offical repository’s (1) master branch (see github help-page)

    + +
  • +
+
+
+
+

Recommendations

+

Please always follow the recommendations below.

+
+

General recommendations

+
    +
  • if you’re working on a given topic, always create a branch for +it, e.g. pythia_interface. You may commit many times to this branch +in your local repository. When you have something solid create a +pull request to the official repository.

  • +
+
+
+

Commit comments

+
    +
  • feel free to commit often to your local repository, make a pull request once the topic you are working on is finished

    +
      +
    • if the feature you are working on is large, consider making a work in progress-pull request (see below)

    • +
    • git commits represent a snapshot of the software as a whole, and not only the difference to a previous commit (although that as well, in practice). It is recommended that each commit compiles and passes the tests. Take a look at the commit history of a key4hep repository and the histories of some individual files to find both good and bad examples.

    • +
    +
  • +
  • always provide a meaningful comment for each commit

    +
      +
    • if you are working on an issue, refer to that issue by adding “refs. #[issue id]”, see also +GitHub help

    • +
    +
  • +
  • commit comments should look like the one below, so that they show up +correctly in git printouts.

    +
    first version of a pythia interface # this line should be a short 1 liner
    +
    +Here, you may write a few more lines if needed
    +
    +
    +
  • +
+
+
+

Cleaning history

+
    +
  • before opening a pull request it may be a good idea to check that your history makes sense (commit messages explain what you did, no unnecessary commits, etc.), check with:

    +
    git log
    +
    +
    +
  • +
  • if you see commits that you’d like to change, there are several ways of doing that, the most commonly used is git rebase:

    +
      +
    • with the interactive version you can rebase your development branch to the official master and fix the history at the same time

    • +
    +
    git fetch upstream # get changes from the official repo
    +git rebase -i upstream/main # do the actual rebase
    +
    +
    +
      +
    • git will guide you through the steps, where you can delete entire commits (and the corresponding changes), merge commits and change commit messages

    • +
    • more information can be found in this tutorial

    • +
    +
  • +
+
+
+

Pull requests

+
    +
  • Give a meaningful title that appropriately describes what you did (e.g. Add new calorimeter clustering)

    +
      +
    • Pull requests of work in progress (to make people aware that you are working on a feature) create a PR starting with “[WIP]”

    • +
    +
  • +
  • In the description, give a short bullet-point list of what was done

  • +
  • If your pull request fixes issues tracked in the issue tracker:

    +
      +
    • Make sure you added a test that shows they are actually fixed

    • +
    • In the description mention that you fixed it by referring to the issue: “fixes #” (this will automatically close the issue, see also GitHub help)

    • +
    +
  • +
+
+
+
+

Trouble-shooting

+
+

When I try to push to the repository, I get an authentication error

+

Check with git remote -v which remote repositories you have added to your local copy. You should see something like:

+
upstream git@github.com:key4hep/k4SimDelphes.git (fetch)
+upstream git@github.com:key4hep/k4SimDelphes.git (push)
+origin	git@github.com:[your git user name]/k4SimDelphes.git (fetch)
+origin	git@github.com:[your git user name]/k4SimDelphes.git (push)
+
+
+

If you see something similar but all the addresses start with https, see below.

+

If you only see origin git@github.com:key4hep/k4SimDelphes.git, you need to add your own repository, push to that one and do a pull request, as described above. To add your own repository do:

+
git remote rename origin hep-fcc
+git remote add myfccsw git@github.com:[your git user name]/FCCSW.git
+
+
+
+
+

I have cloned with https and now I can’t push my changes, what do I do?

+

You only need to change the URL of your remote pointing to your repository to one that uses SSH instead:

+
git remote set-url [the remote name] git@github.com:[your git user name]/k4SimDelphes.git
+
+
+

Now you can push to that remote with:

+
git push [the remote name] [the branch you want to push]
+
+
+
+
+
+
+

Need help?

+

In case you have any questions on this guide, or need help to sort out +an issue with a repository, feel free to drop a mail to +key4hep-sw at CERN, and we’ll be happy to help you. +Alternatively create an issue in the bug tracker +smile.

+
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/developing-key4hep-software/README.html b/developing-key4hep-software/README.html new file mode 100644 index 0000000..f48fb4a --- /dev/null +++ b/developing-key4hep-software/README.html @@ -0,0 +1,448 @@ + + + + + + + Developing Key4hep — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Developing Key4hep

+

Sooner rather than later you will find it necessary write code for Key4hep. These pages cover some software development topics to remove any friction.

+ +

CMakeBuild.md

+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/developing-key4hep-software/SinglePackage.html b/developing-key4hep-software/SinglePackage.html new file mode 100644 index 0000000..35e9e0e --- /dev/null +++ b/developing-key4hep-software/SinglePackage.html @@ -0,0 +1,387 @@ + + + + + + + Developing a single package — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Developing a single package

+

For quick changes of, for example, a single package, it’s possible to compile +the package using cmake (after having sourced the release or nightlies) and then +export some environment variables manually so that our local version will be +picked up instead of the one in cvmfs:

+
export PATH=/path/to/install/bin:$PATH
+export LD_LIBRARY_PATH=/path/to/install/lib:/path/to/install/lib64:$LD_LIBRARY_PATH
+export ROOT_INCLUDE_PATH=/path/to/install/include:$ROOT_INCLUDE_PATH
+export PYTHONPATH=/path/to/install/python:$PYTHONPATH
+
+
+

where the path to the installation is the one we gave cmake with +-DCMAKE_INSTALL_PREFIX when configuring. It’s possible more environment +variables need to be set depending on which package we are installing but the +previous ones are the main ones for many of the packages of the key4hep stack.

+

While this approach works and any number of packages can be built this way, it +is cumbersome to do so for many packages, as one has to repeat the cycle of +configuring, building and installing and then exporting the environment +variables as many times as packages are installed. It is possible to miss +packages and then the cvmfs version will be used instead of the local one +without notice and it’s also cumbersome to reproduce the environment at a later +time.

+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/developing-key4hep-software/SpackForDevelopers.html b/developing-key4hep-software/SpackForDevelopers.html new file mode 100644 index 0000000..87e9f0c --- /dev/null +++ b/developing-key4hep-software/SpackForDevelopers.html @@ -0,0 +1,656 @@ + + + + + + + Building Key4hep using Spack: For Developers — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Building Key4hep using Spack: For Developers

+

Using spack to develop software is somewhat pushing its intended usage to its +limits. However, it is not impossible and this is an area of spack that is +currently under active development. Unfortunately, this also means that the +spack documentation might not be fully up-to-date on these topics. Hence, this +page tries to collect some of the experiences the Key4hep developers have made.

+
+

Tip

+

To obtain and setup spack take a look at Setting up Spack.

+
+
+

Spack set up

+

For a standalone spack installation where we are happy to install all the +dependencies the link above will suffice. However, it is possible to use the +key4hep stack from cvmfs that has all the dependencies installed and only +install the packages that we want to work on. For that, it is important to +reproduce the environment that was used for building whatever release we are +going to use. Otherwise spack will see that we have different versions of +packages and will try to compile and install more than what we need. As +explained here, there are three files that are provided with each release or +nightly, that we need to use. Let’s say we want to use the nigthly for +2023-07-18. Then the first thing we do is source the nightly:

+
source /cvmfs/sw-nightlies.hsf.org/key4hep/releases/2023-07-18/x86_64-almalinux9-gcc11.3.1-opt/key4hep-stack/2023-07-18-kzukii/setup.sh
+
+
+

And then we clone spack and key4hep-spack, set up the environment and the +upstream installation, and the latest build from scratch (that we have to find +manually for now using, for example, find -iname .scratch), in this case it +happens to be 2023-06-24):

+
rel=/cvmfs/sw-nightlies.hsf.org/key4hep/releases/2023-07-18/x86_64-almalinux9-gcc11.3.1-opt
+latest_scratch=/cvmfs/sw-nightlies.hsf.org/key4hep/releases/2023-06-24/x86_64-almalinux9-gcc11.3.1-opt
+git clone https://github.com/key4hep/key4hep-spack --depth 1
+git clone https://github.com/spack/spack
+cd key4hep-spack
+git checkout $(cat $rel/.key4hep-spack-commit)
+cd ..
+cd spack
+git checkout $(cat $rel/.spack-commit)
+source $rel/.cherry-pick
+cd ..
+source spack/share/spack/setup-env.sh
+spack env activate key4hep-spack/environments/key4hep-nightly
+spack config add "upstreams:nightly:install_tree: $rel"
+spack config add "upstreams:nightly-scratch:install_tree: $latest_scratch"
+
+
+

And now we should have exactly the same version of spack and key4hep-spack that +was used to make the build, so the number of dependencies that spack tries to +install should be the minimum: it should find all the dependencies (in practice +this may not be the case but it should find most of them).

+
+
+

Developing a single package

+

When only developing on a single package it is possible to use the dev-build command of spack. +A brief tutorial can be found in the spack documentation. +There is also a dedicated channel on slack spackpm.slack.com (to get an invitation, visit slack.spack.io) where questions regarding the development workflow can be discussed. +It allows to build a given package directly from local sources in the same way as spack does it, and even makes this package available to other packages in the same way it does packages that have been installed by spack directly. +Here we will use LCIO as an example since it can be installed without (or with only one) dependency.

+

As a first step let’s have a look at what installing lcio with spack would entail. +Note that we explicitly disable the ROOT dictionaries in order to limit the number of dependencies

+
spack spec -Il lcio ~rootdict
+
+
+
Input spec
+--------------------------------
+ -   lcio~rootdict
+
+Concretized
+--------------------------------
+
+ -   vdwx2aq  lcio@2.16%gcc@9.3.0~examples~ipo~jar~rootdict build_type=RelWithDebInfo cxxstd=17 arch=linux-ubuntu20.04-skylake
+[+]  utzbuq7      ^cmake@3.16.3%gcc@9.3.0~doc+ncurses+openssl+ownlibs~qt patches=1c540040c7e203dd8e27aa20345ecb07fe06570d56410a24a266ae570b1c4c39,bf695e3febb222da2ed94b3beea600650e4318975da90e4a71d6f31a6d5d8c3d arch=linux-ubuntu20.04-skylake
+[+]  pljbs5a      ^sio@0.0.4%gcc@9.3.0+builtin_zlib~ipo build_type=RelWithDebInfo cxxstd=17 arch=linux-ubuntu20.04-skylake
+
+
+
+

In this configuration lcio has only two dependencies, sio and cmake, which +are both already installed in this case. If these dependencies are not yet +installed, spack will automatically install them for you when using the +dev-build command.

+
+

Installing a local version with dev-build

+

In order to install a local version of LCIO with spack, first we have to clone it into a local directory

+
git clone https://github.com/iLCSoft/LCIO
+
+
+

Now we can install this local version via

+
cd LCIO
+spack dev-build lcio@master ~rootdict
+
+
+

This should install lcio and all dependencies that are not yet fulfilled, giving you the full output of all the build stages ending on something like the following

+
...
+==> lcio: Successfully installed lcio-master-7dovpqn3kscbg672ham5wcqro7lg45gh
+  Fetch: 0.00s.  Build: 1.62s.  Total: 1.62s.
+[+] /home/tmadlener/work/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-9.3.0/lcio-master-7dovpqn3kscbg672ham5wcqro7lg45gh
+
+
+

Note, that it is necessary to specify a single concrete version here for lcio. We use @master. +This version has to be one that is already available for the package (use spack info to find out which ones are available) and cannot be an arbitrary version. +It also does not necessarily have to correspond to the actual version of the source code you are currently installing. +However, it is of course encouraged to use a meaningful version specifier, since this package should also be useable as desired by dependent packages.

+
+
+

Using the local version as dependency

+

Now that the local version has been installed, it would of course be nice to be able to use it in downstream packages as well. +As far as spack is concerned, a package that has been built from local sources is not really different from one that has been built from automatically downloaded sources. +The main difference is that the fact that it has been built from local sources manifests in the spec

+
spack find -lv lcio
+
+
+

will yield something like

+
==> 1 installed package
+-- linux-ubuntu20.04-skylake / gcc@9.3.0 ------------------------
+7dovpqn lcio@master~examples~ipo~jar~rootdict build_type=RelWithDebInfo cxxstd=17 dev_path=/home/tmadlener/work/ILCSoft/LCIO
+
+
+

As you can see the local path from which this version was installed has become part of the spec for the installed package (the dev_path=... part of the spec above). +Hence, also the hash is affected by the fact that it has been built from a local source.

+

To use this specific version as a dependency the usual spack syntax can be used, e.g.

+
spack install marlin ^lcio/7dovpqn
+
+
+

will install marlin but use the version of lcio that we have just built locally.

+
+
+

More advanced usage

+

Note: If you have installed lcio following the description above you might have to uninstall it again first to follow these instructions, because spack will not overwrite an already installed package.

+

The above instructions only dealt with installing a package from a local source, but not how to easily get a development environment allowing for a quick edit, compile cycle. +This can be achieved by using the --drop-in and the --before/--until arguments of the dev-build command:

+
spack dev-build --drop-in bash --until cmake lcio@master ~rootdict
+
+
+

This command will first install all necessary dependencies, then run the install process for lcio until after the cmake stage and then drop you into a new bash shell with the proper build environment setup. +It will also setup a build folder, which follows the naming scheme spack-build-${hash}, in this case: spack-build-7dovpqn. +To compile lcio simply go into this directory and run make in there

+
cd spack-build-7dovpqn
+make -j4
+
+
+

You are now in an environment where you can easily edit the local source code and re-compile afterwards.

+

Once all the development is done, it is still necessary to install everything to the appropriate location. +This installation has to be registered in the spack database as well. Hence, simply calling make install in the build directory will not do the trick. +Another call to dev-build is necessary.

+
cd .. # go back to the source directory where you started
+spack dev-build lcio@master ~rootdict
+
+
+

This will run the whole chain again, but it will not overwrite the build directory. +Hence, it will not recompile everything again, but simply install all the build artifacts to the appropriate location. +spack find -lv lcio can be used to check if the installation was successful.

+

NOTE: You are probably still in the build environment at this stage. To return back to you original shell simply type exit.

+
+
+
+

Developing multiple packages or dependencies of other packages

+

Developing on many packages simultaneously using the dev-build command can become cumbersome and doesn’t really scale.

+
+

Using an environment to setup all dependencies

+

One way to develop on multiple packages simultaneously can be to setup an environment that contains the dependencies of all packages.

+

As an example the following definition of an environment has been used to develop on +podio, EDM4HEP and some other packages.

+
spack:
+  specs:
+    - python
+    - root@6.20.04 +davix+gsl+math~memstat+minuit+mlp~mysql+opengl~postgres~pythia6+pythia8+python~qt4+r+root7+rootfit+rpath~shadow+sqlite+ssl~table+tbb+threads+tmva+unuran+vc+vdt+vmc+x+xml+xrootd build_type=RelWithDebInfo cxxstd=17 patches=22af3471f3fd87c0fe8917bf9c811c6d806de6c8b9867d30a1e3d383a1b929d7
+    - dd4hep +geant4
+    - geant4
+    - heppdt
+    - hepmc@2.06.10
+    - tricktrack
+    - py-pyyaml
+    - py-jinja2
+    - cmake
+    - pythia8
+    - evtgen
+  concretization: together
+  view: true
+  packages:
+    all:
+      compiler: [gcc@9.3.0]
+      variants: cxxstd=17
+
+
+

Assuming this is the content of edm4hep_devel.yaml an environment can be created, activated, concretized and installed with the following commands:

+
spack env create edm4hep-devel edm4hep_devel.yaml
+spack env activate -p edm4hep-devel
+spack concretize
+spack install
+
+
+

After an environment has been installed, it can easily be activated via

+
spack env activate -p edm4hep-devel
+
+
+

which immediately drops you in an environment with all the packages stated in the environment file above available and properly set up. +Developing packages that depend on these should then be straight forward, especially for properly setup CMake based projects that can automatically find and configure their dependencies.

+

The disadvantage of this approach is that the packages you want to develop on have to be on the top of the stack and if they depend on each other, you still have to properly handle these dependencies on your own.

+
+
+

Environments and a development workflow

+

Recently spack gained the ability to setup environments and specify multiple packages that you would like to develop on (See spack/spack#256). +It is not yet really documented and it is not yet fully optimized, but it allows for a decent development experience if your package is not too deep down in the stack. +It is not impossible to develop on packages deep down the software stack, but this can imply frequently recompiling large parts of the software stack, since spack does not yet handle this in the best way, but instead builds all packages that you are not developing on from scratch. Hence, even if a simple relinking would have done the trick, spack will still build a lot of packages again. +Nevertheless, the feature is in a usable state and this section briefly describes how to use it. +Especially if you mainly develop on one package but sometimes want to check whether the rest of the stack, that depends on this package still compiles with the latest version, this can be a very useful workflow.

+

As an example we will be using the k4simdelphes package that depends on edm4hep, which in turn depens again on podio. +Suppose we want to change podio and edm4hep and see if k4simdelphes still compiles and works. +We would then use an environment definition file similar to the usual environments. For this example it has the following content

+
spack:
+  spec: 
+    - k4simdelphes
+  concretization: together
+  view: false
+  packages:
+     all:
+       compiler: [gcc@9.3.0]
+       variants: cxxstd=17
+  develop:
+    podio:
+      spec: podio@master +sio
+      path: ../../../../../podio
+    edm4hep:
+      spec: edm4hep@master
+      path: ../../../../../EDM4hep
+
+
+

The first part is the same as previously, but a new develop section containing information about the packages that should be developed on has been added. +For each package there is a spec and a path field. The spec field tells spack which spec to build, while the path field tells spack where the source files are located. +The path is relative to the $(prefix)/var/spack/environments/${environment-name} directory or an absolute path.

+

Assuming that you are currently in the directory that contains local spack installation, the following steps are necessary to create the development environment

+
git clone https://github.com/AIDASoft/podio
+git clone https://github.com/key4hep/EDM4hep
+spack env create my-development-env development_env_packages.yaml
+
+
+

where development_env_packages.yaml is the yaml file with the contents just described above.

+

It is now possible to activate this environment via

+
spack env activate -p my-development-env
+
+
+

To install all the packages, including the local versions of podio and edm4hep it is now enough to simply do spack installin the activated environment. +This will build your local copies of podio and edm4hep and use these versions as dependencies for the k4simdelphes package. +Changes can also be made to either of the two packages. +To compile only one package without installing it yet, it is easiest to simply go to the directory where the sources are. +There should now be a few spack related files and a spack build folder among the other source files

+
[...]
+spack-configure-args.txt
+spack-build-env.txt
+spack-build-out.txt
+spack-build-${hash}
+
+
+

Here ${hash} is the same that you get from spack find -l package. +After you have done all the necessary changes you can simply change into this build directory and run make to compile the package again. +Once all your development is done and you want to install the package spack install will run the whole build chain again. +This means that all the (local) development packages in your environment will only be recompiled as far as necessary, while all other packages that depend on the development packages will be re-built from scratch.

+

Once you are done developing, this environment can be used like any other environment simply by running spack env activate my-development-env to activate it.

+
+

Adding another package to develop

+

If you now realize that your changes to podio or edm4hep broke k4simdelphes and you need to also implement some changes there, you do not have to define a new environment. +Instead it is possible to add k4simdelphes to the develop section via spack develop (assuming you are still in the activated environment and in the same directory where also the podio and edm4hep sources live)

+
git clone https://github.com/key4hep/k4SimDelphes
+spack develop --no-clone --path ../../../../../k4SimDelphes k4simdelphes@main
+
+
+

Here, the --path is again either relative to the environment directory inside spack. It could also be an absolute path. +You now have to concretize the environment again before you can install the packages.

+
spack concretize -f
+spack install
+
+
+

Now you can work on k4simdelphes in the same way as you can for podio or edm4hep. +You can also check that the environment now indeed uses your local version of k4simdelphes via

+
spack find -lv k4simdelphes
+
+
+

which should now yield something along the lines of

+
==> In environment my-development-env
+==> Root specs
+------- k4simdelphes@main 
+
+==> 1 installed package
+-- linux-ubuntu20.04-broadwell / gcc@9.3.0 ----------------------
+m5khm2w k4simdelphes@main~ipo build_type=RelWithDebInfo dev_path=/home/tmadlener/work/spack/var/spack/environments/test-devel-env/../../../../../k4SimDelphes
+
+
+

where the path to the local source files has now again become part of the spec as can be seen by the dev_path=... part of the spec.

+
+
+
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/developing-key4hep-software/WritingAlgorithms.html b/developing-key4hep-software/WritingAlgorithms.html new file mode 100644 index 0000000..86d53c8 --- /dev/null +++ b/developing-key4hep-software/WritingAlgorithms.html @@ -0,0 +1,643 @@ + + + + + + + Writing Gaudi Algorithms — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Writing Gaudi Algorithms

+
+

Gaudi

+

Gaudi is an event-processing framework. Algorithms can be defined by users and +Gaudi will take care of running them for each event. In addition, Gaudi has a +set of services and tools like logging and support for running in a +multithreaded environment.

+

The relationship between Gaudi with key4hep happens through +k4FWCore. k4FWCore has tools and +utilities needed to be able to use (almost) seamlessly EDM4hep collections in +Gaudi algorithms. We recommend checking out the +tests in this +repository since they contain examples of algorithms (in particular of +algorithms using Gaudi::Functional).

+
+
+
+

Gaudi::Functional

+

Using Gaudi::Functional is the recommended way of creating algorithms. The +design is simple and at the same time enforces several constraints at +compile-time, allowing for a quicker development cycle. In particular, we will +see that our algorithms won’t have an internal state and we obtain the benefit +of being able to run in a multithreaded environment (almost) trivially[1].

+
+

Setup

+

We will need Gaudi, k4FWCore and all their dependencies. Installing these by +ourselves is not easy but there are software stacks on cvmfs, see the +/setup-and-getting-started/README.md to set up the key4hep stack.

+

The easiest way of having a working repository is to copy the template +repository that we provide in key4hep:

+
git clone https://github.com/key4hep/k4-project-template
+
+
+

or ideally with ssh

+
git clone git@github.com:key4hep/k4-project-template
+
+
+

This template repository already has the cmake code that will make our +algorithms know where Gaudi and k4FWCore and to properly link to them. In +addition there are a few examples that combined with the tests in k4FWCore +provide an overview of what’s possible to do. The k4-project-template +repository contains a CMake configuration (as described in more detail in the +previous tutorial) so it can be built with:

+
cd k4-project-template
+mkdir build install
+cd build
+cmake .. -DCMAKE_INSTALL_PREFIX=../install
+make -j 4 install
+
+
+

To run the algorithms contained in this repository you can use k4run, like:

+
k4run ../K4TestFWCore/options/createExampleEventData.py 
+
+
+
+
+

Walkthrough of Functional Algorithms

+

Functional algorithms in Gaudi are relatively straightforward to write. For each +algorithm we want, we have to create a class that will inherit from one of the +Gaudi::Functional classes. The most important function member will be +operator() which is what will run over our events (or over none in case we are +generating). There are several base classes in Gaudi (see a more complete list +in https://lhcb.github.io/DevelopKit/03a-gaudi/):

+
    +
  • Consumer, one or more inputs, no outputs

  • +
  • Producer, one or more outputs, no inputs

  • +
  • Transformer (and MultiTransformer), one or more inputs, one or more outputs

  • +
+

The structure of our class (more precisely structs) will then be, in the general +case of the transformer:

+
#include "GaudiAlg/Transformer.h"
+// Define BaseClass_t
+#include "k4FWCore/BaseClass.h"
+
+struct ExampleTransformer final
+    : Gaudi::Functional::Transformer<colltype_out(const colltype_in&), BaseClass_t> {
+
+  ExampleTransformer(const std::string& name, ISvcLocator* svcLoc);
+  colltype_out operator()(const colltype_in& input) const override;
+};
+
+
+

Some key points:

+
    +
  • The magic to make our algorithm work with EDM4hep collections happens by +including BaseClass.h and passing BaseClass_t it as one of the template +arguments to the Gaudi class we are inheriting from.

  • +
  • operator() is const, which means that it can’t modify class members. This is +intended and helps with multithreading by not having an internal state.

  • +
+

Let’s start with the first template argument. It’s the signature of a function +that returns one or more outputs and takes as input one or more inputs. +One possible example would be to have these two lines before the class definition:

+
using colltype_in  = edm4hep::MCParticleCollection;
+using colltype_out = edm4hep::MCParticleCollection;
+
+
+

and then we have a transformer that will take one MCParticleCollection as +input and return another one. If we have multiple inputs we keep adding +arguments to the function arguments and if we don’t have any we can leave that +empty. For the output this is slightly more complicated because if there are +more than one output we have to return an std::tuple<OutputClass1, OutputClass2>; if there aren’t any outputs we can simply return void.

+

Then we reach the constructor. We’ll always initialize from the constructor of the +class we’re inheriting (in this example a Transformer) and then we’ll +initialize a set of KeyValues. These KeyValues will be how we define the +names of our inputs and outputs so they can be found by other algorithms, read +from a file or saved to a file.

+
  ExampleTransformer(const std::string& name, ISvcLocator* svcLoc)
+      : Transformer(name, svcLoc,
+                    KeyValue("InputCollection", "MCParticles"),
+                    KeyValue("OutputCollection", "NewMCParticles")) {
+                    // possibly do something
+                    }
+
+
+

Here we are defining how we will name our input collection in the steering value +(InputCollection) and giving it a default value. We’re doing the same with the +output collection. The order is important here: first inputs and then outputs +and they are ordered. When we have more inputs we just add another line, like +the one above for the input collection. For outputs, since they are bundled +together in a std::tuple when there are several, we have to enclose the list +of KeyValue with brackets, like

+
  ExampleMultiTransformer(const std::string& name, ISvcLocator* svcLoc)
+      : MultiTransformer(name, svcLoc,
+                    KeyValue("InputCollection", "MCParticles"),
+                    {
+                    KeyValue("OutputCollection1", "NewMCParticles"),
+                    KeyValue("OutputCollection2", "SimTrackerHits"),
+                    KeyValue("OutputCollection3", "UsefulCollection"),
+                    }
+                    ) {
+                    // possibly do something
+                    }
+
+
+

Then in the operator() we can do whatever we want to do with our collections

+
  colltype_out operator()(const colltype_in& input) const override {
+    auto coll_out = edm4hep::MCParticleCollection();
+    for (const auto& particle : input) {
+      auto new_particle = edm4hep::MutableMCParticle();
+      new_particle.setPDG(particle.getPDG() + 10);
+      new_particle.setGeneratorStatus(particle.getGeneratorStatus() + 10);
+      new_particle.setSimulatorStatus(particle.getSimulatorStatus() + 10);
+      new_particle.setCharge(particle.getCharge() + 10);
+      new_particle.setTime(particle.getTime() + 10);
+      new_particle.setMass(particle.getMass() + 10);
+      coll_out->push_back(new_particle);
+    }
+    return coll_out;
+
+
+

When we return several collections we can bundle them in an std::tuple like this:

+
    return std::make_tuple(std::move(collection1), std::move(collection2));
+
+
+

The complete example for reference can be found in the tests of k4FWCore: +https://github.com/key4hep/k4FWCore/blob/main/test/k4FWCoreTest/src/components/ExampleFunctionalTransformer.cpp

+
+
+

The steering file

+

The steering file is the file where we define which algorithms will run, what +parameters they will use and how they will do it; what level of logging, if +using multithreading, etc.

+

We start with some imports

+
from Gaudi.Configuration import INFO
+from Configurables import ExampleFunctionalTransformer
+from Configurables import ApplicationMgr
+from Configurables import k4DataSvc
+from Configurables import PodioOutput
+from Configurables import PodioInput
+
+
+

it’s also possible to import everything from Configurables but it’s better not +to so that if we are using IDE or an editor with some kind of analysis it can +tell us if we are using an undefined variable, for example.

+

Then, the input:

+
podioevent = k4DataSvc("EventDataSvc")
+podioevent.input = "output_k4test_exampledata_producer.root"
+
+inp = PodioInput()
+inp.collections = [
+    "MCParticles",
+]
+
+
+

We select the name of the input file and which collections we’ll make available +for the rest of the algorithms.

+

For the output:

+
out = PodioOutput("out")
+out.filename = "output_k4test_exampledata_transformer.root"
+# The collections that we don't drop will also be present in the output file
+out.outputCommands = ["drop MCParticles"]
+
+
+

we can select which collections we keep in the output file. By default the +collections in the output file will be the same as in the input file. Check the +relevant +documentation +to learn more about PodioInput and PodioOutput.

+

Our algorithm will look like this:

+
transformer = ExampleFunctionalTransformer("ExampleFunctionalTransformer",
+                                           InputCollection="MCParticles",
+                                           OutputCollection="NewMCParticles")
+
+
+

If we have defined Gaudi::Propertys for our algorithm it is also possible to +change them by doing transformer.property = value; however with the names of +the collections, if they are provided, they are set when creating the python +object with our algorithm.

+

Finally we define what to run:

+
ApplicationMgr(TopAlg=[inp, transformer, out],
+               EvtSel="NONE",
+               EvtMax=10,
+               ExtSvc=[k4DataSvc("EventDataSvc")],
+               OutputLevel=INFO,
+               )
+
+
+

We pass a list of the algorithms in TopAlg. PodioInput will be the first one +and PodioOutput will be the last one when used. In EvtMax we set what is the +maximum number of event that we are processing. Use -1 not to limit it. That +means if we are processing a file, then read all the events in the file. We pass +extra services to ExtSvc and set an OutputLevel that could be DEBUG, +WARNING or INFO most of the time.

+
+
+

Initialize and finalize

+

There are some occasions where we may want to run some code between the +constructor and the operator(); that is the place for initialize(). There is +also a way of doing something similar after processing with finalize(). For that, we +can add to our classes those functions (we can also add only one of these):

+
  StatusCode initialize() override;
+  StatusCode finalize() override;
+
+
+

and then we can implement them.

+

Make sure to remember to return the corresponding status code, otherwise +Gaudi will crash. For example:

+
StatusCode MyAlgorithm::initialize() {
+  // do something
+  return StatusCode::SUCCESS;
+}
+
+
+
+
+

Debugging: How to use GDB

+

The GNU Project Debugger is supported by +Gaudi and can be invoked by passing additional --gdb parameter to the k4run. +For example:

+
k4run ../K4TestFWCore/options/createExampleEventData.py --gdb
+
+
+

This will start the GDB and attaches it to the Gaudi steering. After initial +loading, user can start running of the steering by typing continue into the +GDB console. To interrupt running of the Gaudi steering use CTRL+C.

+

More details how to run GDB with Gaudi can be found in +LHCb Code Analysis Tools.

+
+
+

Avoiding const in operator()

+

There is a way of working around operator() being const and that is by adding +the keyword mutable to our data member. This will allow us to change our data +member inside operator() and will cause code that wasn’t compiling because of +this to compile. Of course, this is not a good idea because unless the member of +our class is thread-safe, that means that our algorithm is no longer thread-safe +and running with multiple threads can cause different results. Even worse than +that, it’s very possible that there are not any errors or crashes but the +results are simply wrong from having several threads changing a member at the +same time, for example.

+
+ +
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/genindex.html b/genindex.html new file mode 100644 index 0000000..af476da --- /dev/null +++ b/genindex.html @@ -0,0 +1,362 @@ + + + + + + Index — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ + +

Index

+ +
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/how-tos/README.html b/how-tos/README.html new file mode 100644 index 0000000..364ff20 --- /dev/null +++ b/how-tos/README.html @@ -0,0 +1,391 @@ + + + + + + + Key4hep How-Tos and Instructions — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Key4hep How-Tos and Instructions

+

This page contains a few brief How-Tos and Instructions on how to achieve +certain things within the Key4hep software stack. They are mainly aimed at +Key4hep users and are mostly designed to be reference material, rather than +tutorials.

+ + +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/how-tos/k4edm4hep2lcioconv/doc/LCIO2EDM4hep.html b/how-tos/k4edm4hep2lcioconv/doc/LCIO2EDM4hep.html new file mode 100644 index 0000000..d0a2c52 --- /dev/null +++ b/how-tos/k4edm4hep2lcioconv/doc/LCIO2EDM4hep.html @@ -0,0 +1,510 @@ + + + + + + + Standalone conversion from LCIO to EDM4hep — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Standalone conversion from LCIO to EDM4hep

+

The lcio2edm4hep executable reads LCIO (.slcio) files and converts its +contents into EDM4hep. Each LCEvent of the input file will be put into a +podio::Frame in the output file (under the events category). The most basic +usage is simply

+
lcio2edm4hep <input.slcio> <output.edm4hep.root>
+
+
+
+

Patching missing collections on the fly

+

A major difference between LCIO and EDM4hep is that in LCIO an LCEvent can +effectively have arbitrary contents, whereas in EDM4hep the assumption is that +each event consists of the same collections (even if some of them are empty). +Hence, it is necessary to either ensure that all events in the LCIO file have +the same contents or or to give lcio2edm4hep some additional information such +that it can patch in potentially missing collections on the fly. This additional +information comes in the form of a third argument to lcio2edm4hep and is +effectively a list of collection names and their types that comprise the +superset of all collections appearing in at least one event in the input LCIO +file. The format looks like this, where each collection is a single line +containing the name first and than its type, e.g.

+
SETSpacePoints             TrackerHit
+RecoMCTruthLink            LCRelation[ReconstructedParticle,MCParticle]
+
+
+

The easiest way to obtain such a file is to use the check_missing_cols +executable that comes with LCIO using the --minimal flag. The output of this +can be directly consumed by lcio2edm4hep

+
+

Example:

+
    +
  1. Get the patch file

  2. +
+
check_missing_cols --minimal \
+  /pnfs/desy.de/ilc/prod/ilc/mc-2020/ild/rec/250-SetA/higgs/ILD_l5_o2_v02/v02-02-01/00015671/000/rv02-02-01.sv02-02-01.mILD_l5_o2_v02.E250-SetA.I402005.Pe3e3h.eL.pR.n000_002.d_rec_00015671_493.slcio \
+  > patch.txt
+
+
+
    +
  1. Pass it to lcio2edm4hep

  2. +
+
lcio2edm4hep \
+  /pnfs/desy.de/ilc/prod/ilc/mc-2020/ild/rec/250-SetA/higgs/ILD_l5_o2_v02/v02-02-01/00015671/000/rv02-02-01.sv02-02-01.mILD_l5_o2_v02.E250-SetA.I402005.Pe3e3h.eL.pR.n000_002.d_rec_00015671_493.slcio \
+  Output.root \
+  patch.txt
+
+
+
+
+

Converting LCRelation collections

+

For collections of LCRelation type it is necessary to define the FromType and +ToType as well, as otherwise the converter will not be able to create the +correct edm4hep file. The check_missing_cols executable will try to determine +these types from the collection parameters and will warn if it cannot do it for +certain collections. In this case it is the users responsibility to provide +the missing types as otherwise the conversion will simply skip these +collections, or potentially even crash.

+
+
+
+

Converting only a subset of collections

+

Using the same mechanism as for patching collections it is also possible to only +convert a subset of all available collections. lcio2edm4hep uses the contents +of the colltypefile to determine the contents of the output. If that contains +only a subset of all collections, only that subset will be converted. Missing +collections will still be patched in, in this case.

+
+
+
+

Library usage of the conversion functions

+

The conversion functions are designed to also be usable as a library. The overall design is to make the conversion a two step process. Step one is converting the data and step two being the resolving of the relations and filling of subset collection.

+
+

Converting collection (data)

+

The main entry point is convertCollection which will automatically dispatch to +the correct conversion function depending on the type information that is stored +in the input LCCollection. It is also possible to access the individual +conversion functions for each type. All of the conversion functions take a map +of LCIO to EDM4hep objects of their specific type that will be filled during the +conversion. for convenience all necessary maps are bundled in the +LcioEdmTypeMapping struct.

+
+
+

Handling relations

+

Once all necessary collections have been converted, it is necessary to resolve +the relations between the objects. This is done using the resolveRelations +function. This will again dispatch to the correct relation resolving function +for the corresponding types, which can obviously also be invoked directly.

+
+
+

Handling of subset collections

+

Subset collections are handled similar to relations using the function +fillSubset. Internally this simply forwards to handleSubsetColl which +handles all the type details and can obviously also be used directly.

+
+
+

Handling of LCRelations

+

LCRelation only exist in LCIO and their conversion is limited to what is +available in EDM4hep. They use the "FromType" and "ToType" collection +parameters to get the necessary type information.

+

The AssociationCollections in EDM4hep are then created using createAssociations.

+
+
+

Converting entire events

+

Converting an entire event can be done calling the convertEvent. This can also +be used as an example to guide the implementation of custom conversions using +the available functionality.

+
+
+

Converting Event parameters

+

This can be done by calling convertObjectParameters that will put all the event parameters into the passed podio::Frame.

+
+
+

Subtle differences between LCIO and EDM4hep

+

There are a few small differences between LCIO and EDM4hep that shine through in the conversion, these are:

+
    +
  • CaloHitContributions are part of the SimCalorimeterHits in LCIO while being their own data type in EDM4hep. They are created by createCaloHitContributions.

  • +
  • The event information like an event number is part of the LCEvent in LCIO. In EDM4hep there is a separate EventHeader Collection. It can be created using EventHeaderCollection which is stored under the name "EventHeader".

  • +
  • Particle IDs are converted during the conversion of the the reconstructed Particle collection.

  • +
+
+
+

Example for a ReconstructedParticle Collection

+
#include "k4EDM4hep2LcioConv/k4Lcio2EDM4hepConv.h"
+
+// the struct defined in the header file is used for the maps linking Lcio particles
+// to their EDM counterparts.
+
+auto typeMapping = LcioEdmTypeMapping{};
+
+// We assume that this is a collection of ReconstructedParticles!
+LCEVENT::LCCollection* lcCollection;
+
+// Convert the data
+auto edmCollections = convertReconstructedParticle("name",
+                                                   lcCollection,
+                                                   typeMapping.recoParticles,
+                                                   typeMapping.particleIDs);
+
+// Resolve relations (only converted objects will be available)
+// This has to be called at the very end, after all collection data has been
+// converted
+resolveRelations(typeMapping);
+
+
+
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/how-tos/k4fwcore/doc/PodioInputOutput.html b/how-tos/k4fwcore/doc/PodioInputOutput.html new file mode 100644 index 0000000..92aa692 --- /dev/null +++ b/how-tos/k4fwcore/doc/PodioInputOutput.html @@ -0,0 +1,482 @@ + + + + + + + Reading and writing EDM4hep files in Gaudi — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ + +
+

Reading and writing EDM4hep files in Gaudi

+

The facilities to read and write EDM4hep (or in general event data models based +on podio) are provided by k4FWCore. +This page will describe their usage, but not go into too much details of their +internals. This page also assumes a certain familiarity with Gaudi, i.e. most of +the snippets just show a minimal configuration part, and not a complete runnable +example.

+
+

The k4DataSvc

+

Whenever you want to work with EDM4hep in the Gaudi based framework of Key4hep, +you will need to use the k4DataSvc as EventDataSvc. You can instantiate and +configure this service like the following

+
from Gaudi.Configuration import *
+from Configurables import k4DataSvc
+
+evtSvc = k4DataSvc("EventDataSvc")
+
+
+

It is important that the name is EventDataSvc in this case, as otherwise +this is an assumption from Gaudi. Once you have the k4DataSvc instantiated, +you still have to make the ApplicationMgr aware of it, by making sure that the +evtSvc is in the list of the external services (ExtSvc):

+
from Configurables import ApplicationMgr
+ApplicationMgr(
+    # other args
+    ExtSvc = [evtSvc]
+)
+
+
+
+
+

Reading events

+

To read events you will need to use the PodioInput algorithm in addition to +the k4DataSvc. Currently, you will need to pass the input +file to the k4DataSvc via the input option but pass the collections that you +want to read to the PodioInput. We are working on making this (discussion +happens in this issue). The +parts of your options file related to reading EDM4hep files will look something +like this

+
from Configurables import PodioInput, k4DataSvc
+
+evtSvc = k4DataSvc("EventDataSvc")
+evtSvc.input = "/path/to/your/input-file.root"
+
+podioInput = PodioInput()
+
+
+

It is possible to change the input file from the command line via

+
k4run <your-options-file> --EventDataSvc.input=<input-file>
+
+
+

By default the PodioInput will read all collections that are available from +the input file. It is possible to limit the collections that should become +available via the collections option

+
podioInput.collections = [
+  # List of collection names that should be made available
+]
+
+
+
+
+

Writing events

+

To write events you will need to use the PodioOutput algorithm in addition to +the k4DataSvc:

+
from Configurables import PodioOutput
+
+podioOutput = PodioOutput("PodioOutput", filename="my_output.root")
+
+
+

By default this will write the complete event contents to the output file.

+
+

Writing only a subset of collections

+

Sometimes it is desirable to limit the collections to a subset of all available +collections from the EventStore. The PodioOutput allows to do this via the +outputCommands option that takes a list of keep or drop commands. Each +command must consist of the keep/drop command and a target. The target is a +collection name that may include the ? or * wildcard patterns. This might +look like the following

+
podioOutput.outputCommands = ["keep *"]
+
+
+

which will keep everything (the default), while

+
podioOutput.outputCommands = ["drop *"]
+
+
+

will simply drop all collections and effectively write an empty file (apart from +some metadata). A common pattern is to "drop *" and then selectively adding +keep collections to keep, e.g. to only keep the highest level MC and reco +information:

+
podioOutput.outputCommands = [
+    "drop *",
+    "keep MCParticlesSkimmed",
+    "keep PandoraPFOs",
+    "keep RecoMCTruthLink",
+]
+
+
+
+
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/how-tos/k4fwcore/doc/k4run-args.html b/how-tos/k4fwcore/doc/k4run-args.html new file mode 100644 index 0000000..0f26183 --- /dev/null +++ b/how-tos/k4fwcore/doc/k4run-args.html @@ -0,0 +1,396 @@ + + + + + + + Adding custom arguments to k4run — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ + +
+

Adding custom arguments to k4run

+

It is possible to extend k4run with custom arguments from a steering file using k4FWCore.parseArgs.

+

Example:

+
from k4FWCore.parseArgs import parser
+parser.add_argument("--trackingOnly", action="store_true", help="Run only track reconstruction", default=False)
+my_opts = parser.parse_known_args()[0]
+
+# later
+if my_opts.trackingOnly:
+    # only run track reconstruction
+
+
+

Behind the scenes parser is just a normal instance of pythons argparse.ArgumentParser, please refer to its documentation for usage details. The only important thing to keep in mind is to always use parse_known_args() instead of parse_args() so that the normal k4run arguments keep working.

+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/how-tos/k4marlinwrapper/doc/MarlinWrapperIntroduction.html b/how-tos/k4marlinwrapper/doc/MarlinWrapperIntroduction.html new file mode 100644 index 0000000..9f50c41 --- /dev/null +++ b/how-tos/k4marlinwrapper/doc/MarlinWrapperIntroduction.html @@ -0,0 +1,576 @@ + + + + + + + Wrapping Marlin processors in Gaudi — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ + +
+

Wrapping Marlin processors in Gaudi

+

This page describes how to run existing Marlin processors within the Gaudi +framework. Marlin and Gaudi are two event processing frameworks available in +the Key4hep software stack. The former was originally developed by the linear +collider communities in iLCSoft, while the latter originally comes from LHCb. It +is also the event processing framework for future developments within Key4hep. +To enable using the existing functionality that has been developed for the +linear collider studies and also to allow for a gradual migration the +MarlinProcessorWrapper has been developed. It allows to run Marlin processors +within the Gaudi framework and it’s usage is described +below

+

One of the major differences between Marlin processors and (Key4hep) Gaudi +algorithms is the event data model (EDM) that they use. While Marlin uses LCIO, +Gaudi in Key4hep uses EDM4hep. Since EDM4hep is +based on LCIO the differences are limited and it is possible to convert between +the two EDMs as necessary. We will also show how to do this +below.

+

The following descriptions assume that you are somewhat familiar with how to +configure and run Gaudi via k4run, i.e. most of the snippets will just show +the bare minimum of configuration, but will usually not work without +modifications (e.g. in most cases the ApplicationMgr as well as putting all +the configured algorithms into the list of algorithms to run is missing +entirely).

+
+

The MarlinProcessorWrapper Gaudi algorithm

+

The MarlinProcessorWrapper is a standard Gaudi algorithm and can be used just +like all others, i.e. in a Gaudi options file we simply have to import it via

+
from Gaudi.Configuration import *
+from Configurables import MarlinProcessorWrapper
+
+
+

It can then be configured just like any other algorithm by instantiating it and +passing the necessary parameters to it. Each Marlin processor that you want to +wrap needs its own instance. The main configuration parameters for the +MarlinProcessorWrapper are

+
    +
  • ProcessorType - a string with the Marlin processor type. The type is +usually the class name of the Marlin processor, and corresponds to the type +attribute in a Marlin XML configuration for a processor.

  • +
  • Parameters - a dictionary of string keys and list of string values. Each +parameter of the Marlin processor needs its own entry in this dictionary and +all parameter values have to be strings as the parsing is done internally.

  • +
+

As a very brief example; The following snippet of a Marlin XML steering file

+
  <processor name="StatMonitorAlg" type="StatusMonitor">
+    <parameter name="HowOften" type="int">1</parameter>
+  </processor>
+
+
+

could be converted to the following snippet of a Gaudi options file

+
StatMonitorAlg = MarlinProcessorWrapper("StatMonitorAlg")
+StatMonitorAlg.ProcessorType = "StatusMonitor"
+StatMonitorAlg.Parameters = {"HowOften": ["1"]}
+
+
+

Note that wrapped Marlin processors still expect their inputs in LCIO +format! You can either read in the data in that format directly, or use +converters to convert from EDM4hep to LCIO first.

+
+
+

Reading and writing LCIO events with Gaudi

+

In order to read in event data in LCIO format into the Gaudi world it is +necessary to use the LcioEvent Gaudi algorithm. It is configured in the same +way as normal Gaudi algorithms, i.e. in a minimal standalone form

+
from Gaudi.Configurables import *
+from Configurables import LcioEvent
+
+read = LcioEvent()
+read.Files = ["inputfile1.slcio", "inputfile2.slcio"]
+
+
+

For writing LCIO events from Gaudi, simply use a MarlinProcessorWrapper to +wrap a LCIOOutputProcessor, e.g.

+
from Configurables import MarlinProcessorWrapper
+
+Output_DST = MarlinProcessorWrapper("Output_DST")
+Output_DST.ProcessorType = "LCIOOutputProcessor"
+Output_DST.Parameters = {
+                         "DropCollectionNames": [],
+                         "DropCollectionTypes": ["MCParticle", "LCRelation", "SimCalorimeterHit"],
+                         }
+
+
+
+
+

Automatic conversion of Marlin XML steering files

+

We provide the convertMarlinSteeringToGaudi.py converter script to +automatically convert Marlin steering files in XML format to Gaudi options +python files. Usage is as simple as

+
convertMarlinSteeringToGaudi.py <input-steering.xml> <output-gaudi-options.py>
+
+
+
+

Limitations

+

This converter script handles almost everything, but there are a few +short-comings which it cannot yet handle:

+
    +
  • Marlin XML steering files can have include statements, e.g. <include ref="Tracking/TrackingDigi.xml"/>. These cannot be resolved by the converter +script, and it will issue a warning. The easiest way to fix this is to simply +run Marlin -n to resolve all these statements and then run the converter +script again on the output file which will be named +<inputfile-base>Parsed.xml.

  • +
  • Marlin has a mechanism to resolve constants that are defined in the +constants section and used like ${someFancyConstant} in the following. The +converter script and the converted Gaudi options file handle these in general. +However, it might be necessary to change the values of the constants inside +the CONSTANTS dictionary that can be found at the beginning of the created +options file. Alternatively one can use Marlin -n with e.g. +--constant.someFancyConstant=<value> to set the values in the Marlin +steering file first and again parse the converted output.

  • +
  • Marlin supports conditional execution of processors via the condition tag. +These conditions can be configured via constant values from the constants +section in the steering file, but in principle these can also be runtime +values that are set, e.g. by a previously run processor. At the moment dynamic +conditions (where the value might change on an event by event basis) are not +supported by Gaudi. Additionally static conditions are only partially handled +by the converter script. While it converts the necessary configuration, it +will by default not put the converted algorithm into the algList list of +algorithms to run and you might have to comment / uncomment the algorithms you +actually want to run.

  • +
  • If the value of the LCIOInputFiles is empty in the input XML file, the +converter script will put a value of "None" into the read.Files parameter. +You will have to change this either in the steering file or them in via +--LcioEvent.Files.

  • +
  • Marlin is in some cases able to replace constants with the values stored in +environment variables of the same name. In Gaudi these have to be retrieved +from the environment explicitly via os.environ.

  • +
+
+
+
+

Using the EDM converters

+

The converters between EDM4hep and LCIO are implemented as so called +GaudiTools. They can be attached to any MarlinProcessorWrapper algorithm +that is configured in the Gaudi options file. The tools are called +Lcio2EDM4hepTool and EDM4hep2LcioTool respectively. Each wrapped processor +can be equipped with both tools, so that it is possible to e.g. convert input +from EDM4hep to LCIO and output from LCIO to EDM4hep again:

+

+

The (very) basic usage of the converter tools looks like the following

+
    +
  • Instantiate the necessary tools (and configure them as desired)

  • +
  • Attach the tools to a wrapped marlin processor via the Lcio2EDM4hepTool +and/or EDM4hep2LcioTool options

  • +
+
from Configurables import EDM4hep2LcioTool, Lcio2EDM4hepTool
+
+edm4hep2LcioConv = EDM4hep2LcioTool("EDM4hep2Lcio")
+lcio2edm4hepConv = Lcio2EDM4hepTool("Lcio2EDM4hep")
+
+wrappedProcAlg = MarlinProcessorWrapper("ProcessorToWrap")
+wrappedProcAlg.Lcio2EDM4hepTool = lcio2edm4hepConv
+wrappedProcAlg.EDM4hep2LcioTool = edm4hep2LcioConv
+
+
+

An arbitrary number of converter tools can be instantiated and attached to Gaudi +algorithms (taking into account that each algorithm can at most have one +converter for each direction attached). If you have multiple tools make sure to +give them meaningful names in order to avoid any confusion.

+
+

Configuration options

+

By default each converter tool will try to convert the complete event content +that is currently available in the transient event store for the corresponding +source format. It will skip the conversion of a collection if the same +collection already exists in the other format. This check is done by collection +name. However, it is possible to control the conversion process with a +slightly higher granularity with two options that can be configured

+
    +
  • collNameMapping - this is a dictionary of collection names, where a source +collection name is mapped to a target collection name during the conversion. +This makes it possible to rename collections on the fly. In combination with +the convertAll option this also allows to select the collections that should +be converted. In that case if you want to keep the original collection name +you can simply repeat it.

  • +
  • convertAll - set this to False if you do not want to convert all +collections, but rather would like to select a subset to convert.

  • +
+

As an example, if you only want to convert the MCParticles collection, you +would configure the tool like this

+
edm4hep2LcioConv = EDM4hep2LcioTool("EDM4hep2Lcio")
+edm4hep2LcioConv.convertAll = False
+edm4hep2LcioConv.collNameMapping = {"MCParticles": "MCParticles"}
+
+
+

On the other hand if you want to convert all collections, but rename the +MCParticle (LCIO) input collection to the MCParticles (EDM4hep) output +collection in the process, you would configure the tool like so

+
lcio2edm4hepConv = Lcio2EDM4hepTool("Lcio2EDM4hep")
+lcio2edm4hepConv.collNameMapping = {"MCParticle": "MCParticles"}
+
+
+
+
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/how-tos/key4hep-tutorials/edm4hep_analysis/edm4hep_api_intro.html b/how-tos/key4hep-tutorials/edm4hep_analysis/edm4hep_api_intro.html new file mode 100644 index 0000000..ee8f75e --- /dev/null +++ b/how-tos/key4hep-tutorials/edm4hep_analysis/edm4hep_api_intro.html @@ -0,0 +1,863 @@ + + + + + + + EDM4hep - The common event data model — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

EDM4hep - The common event data model

+

EDM4hep is the common and shared Event Data Model (EDM) of the Key4hep project. +Here we will give a brief introduction to EDM4hep as well as some of the +technicalities behind it. We will also guide you towards documentation and try +to give you the knowledge to make sense of it.

+
+

Important resources

+ +
+
+

Doxygen API documentation

+

We start with having a look at the EDM4hep doxygen API reference +page:

+
+

The overview diagram

+

+

You see a diagrammatic overview of EDM4hep with all the available data types, +broadly organized into different categories. The arrows depict two ways data +types can be related / associated with each other

+ +
+

Relations

+

These are relations defined within the data types, and which are directly +accessible from the data types. They come in two flavors, depending on the +multiplicity of the relation

+
    +
  • OneToOneRelations

  • +
  • OneToManyRelations

  • +
+

Data types can relate to other instances of the same type (e.g. MCParticles +usually form a hierarchy of mothers/daughters). Relations are directed, i.e. it +is possible to go from one object to a related object, but vice versa this does +usually not hold. For example, a ReconstructedParticle can point to multiple +Tracks or Clusters, but those do not point to a ReconstructedParticle.

+
+
+

Associations

+

These are relations that are in a sense “external” to the data model definition. +They are currently mainly used to connect MC and RECO information, as a direct +link via a relation is not desirable as it would mix the two worlds. In contrast +to relations, associations are not directed, i.e. it is possible to access both +involved objects from the association.

+
+
+
+

The table of available types

+

Just below the diagram is an overview table of all the types that are defined in +EDM4hep. Here they are organized into

+
    +
  • Components - very simple types, that are used throughout the

  • +
  • Datatypes - The data types that are defined in EDM4hep

  • +
  • Association - The available associations between different data types

  • +
+

+

Clicking on any of these links will take you to the +edm4hep.yaml +definition file of EDM4hep, jumping directly to the definition of the respective +datatype or component. For more information on this file check out the section +about podio. In +principle it is possible to have very educated guesses on how the interface of +the classes will look like from this.

+
+ +
+

Some utility functionality

+

EDM4hep also brings a bit of utility functionality. You can find it in the +edm4hep::utils +namespace (click on +Namespaces -> Namespace List, then expand the edm4hep namespace and then +click on utils to arrive at this link).

+
+
+
+
+

podio - The technical infrastructure on which things run

+

podio is an EDM toolkit that is used by and developed further in the Key4hep +context. The main purpose is to have an efficiently implemented, thread safe EDM +starting from a high level description. For more (gory) details have a look at +the github repository.

+

Here we will describe the code generation, and its implications for EDM4hep. A +bit further down we will describe how to read and +write podio (root) files and the podio-dump tool to inspect +files without having to open them.

+
+

podio code generation

+

The podio code generator is a python script that reads in the EDM definition in +yaml format, does a few basic validation checks on the definition, and then +generates all the necessary code via the Jinja2 template engine.

+

+

The generated code should (among other things)

+
    +
  • be efficient,

  • +
  • offer an easy to use interface,

  • +
  • offer performant I/O.

  • +
+

Having automated code generation has a few advantages:

+
    +
  • Freeing the user from the repetitive task of implementing all the types +themselves

  • +
  • Freeing the user from having to deal with all the details of how to do things +efficiently

  • +
  • Making it very easy to roll out improved implementations (or bug fixes) via +simply regenerating the code

  • +
+
+

The three layers of podio

+

To achieve the goals stated above podio favors composition over inheritance and +uses plain-old-data (POD) types wherever possible. To achieve this podio +employs a layered design, which makes it possible to have an efficient memory +layout and performant I/O implementation, while still offering an easy to use +interface

+

+
    +
  • The User Layer is the top most layer and it offers the full +functionality and is the only layer with which users interact directly. +It consists mainly of the collections and lightweight handle classes, i.e.

    +
      +
    • XYZCollection

    • +
    • XYZ

    • +
    • MutableXYZ

    • +
    +
  • +
  • The Object Layer consists of the XYZObj classes, that take care of all +resource management and which also enable the relations between different +objects.

  • +
  • The POD Layer at the very bottom is where all the actual data lives in +simple XYZData POD structs. These are the things that are actually stored +in, e.g. root files that are written by podio.

  • +
+
+
+

Basics of generated code - value semantics

+

The generated c++ code offers so called value semantics. The exact details of +what this actually means are not very important, the main point is that you +can treat all objects as values and you don’t have to worry about inefficient +copies or managing resources:

+
auto recos = edm4hep::ReconstructedParticleCollection();
+
+// ... fill, e.g. via
+auto p = recos.create();
+// or via
+auto p2 = edm4hep::ReconstructedParticle();
+recos.push_back(p2); 
+
+// Loop over a collection
+for (auto reco : recos) {
+  auto vtx = reco.getStartVertex();
+  // do something with the vertex
+  
+  // loop over related tracks
+  for (auto track : reco.getTracks()) {
+    // do something with this track
+  }
+}
+
+
+

This looks very similar to the equivalent python code (if you squint a bit, and ignore the autos, ; and {} ;) )

+
recos = edm4hep.ReconstructedParticleCollection()
+
+# ... fill, e.g. via
+p = recos.create()
+# or via
+p2 = edm4hep.ReconstructedParticle()
+recos.push_back(p2)
+
+# Loop over a collection
+for reco in recos:
+  vtx = reco.getStartVertex()
+  # do something with the vertex
+  
+  # loop over related tracks
+  for track in reco.getTracks():
+    # do something with the tracks
+
+
+

The python interface is functionally equivalent to the one c++ interface, since +that is implemented via PyROOT. There are some additions that make the python +interface more pythonic, e.g. len(recos) is equivalent to recos.size(). +Nevertheless, the doxygen reference is valid for both interfaces.

+
+
+

Guessing the interface from the yaml definition

+

Since all code is generated, it is usually pretty straight forward to guess how +the interface will look like just from looking at the definition in the yaml +file. For EDM4hep the general rule is to get a Member variable, a +OneToOneRelation, a OneToManyRelation or a VectorMember is to simply +stick a get in front of the name in the yaml file and to capitalize the first +letter., e.g.

+
Members:
+  - edm4hep::Vector3f momentum // the momentum in [GeV]
+
+
+

will turn into something like

+
const edm4hep::Vector3f& getMomentum() const;
+
+
+

Similar, but in slightly more nuanced rules apply for the methods that are +generated for setting a value. For Member variables and OneToOneRelations +the general rule is to stick a set in front of the name in the yaml file and +to capitalize the first letter, e.g. (continuing from above)

+
void setMomentum(edm4hep::Vector3f value);
+
+
+

For the OneToManyRelations and VectorMembers the rule is to stick a +addTo in front of the name in the yaml file and to capitalize the first +letter, e.g.

+
OneToManyRelation:
+  - MCParticle daughters // the daughters of this particle
+
+
+

will be generated to

+
void addToDaughters(MCParticle daughter);
+
+
+
+
+

Why is there a XYZ and a MutableXYX?

+

The underlying technical reasons are rather complex, dive quite deepish into c++ +nuances, and definitely far beyond the scope of this tutorial. In short: We need +two different handle classes in order to control whether users are allowed to +modify things or not. As one of the main goals of podio generated EDMs is to be +thread safe the default generated class for each data type allows only for +immutable read access, i.e. it provides only the get methods. Only the +Mutable classes actually have the set methods, and can hence be used to +actually modify objects. The most important implication of this is the +following: Everything that you read from file, or that you get from the Gaudi +TES (in gaudi, or that +you get from a Frame) is immutable. I.e. there +is no way for you to change or update the values that you read. The only way to +“update” values (or collections) is to actually copy the contents and then store +the updated values back. Independent copies of objects can be obtained with the +clone method.

+
+
+

Writing function interfaces

+

The Mutable objects implicitly convert to an instance of a default class. +Hence, always use the default classes when specifying function interfaces +(obviously this only works if you only need read access in the function. There +is no implicit conversion from the default, immutable objects to the Mutable +objects!

+

As an example

+
void printE(edm4hep::MCParticle particle) {
+  std::cout << particle.getEnergy() << '\n';
+}
+
+void printEMutable(edm4hep::MutableMCParticle particle) {
+  std::cout << particle.getEnergy() << '\n';
+}
+
+int main() {
+  auto mutP = edm4hep::MutableMCParticle();
+  p.setEnergy(3.14);
+  
+  printE(mutP);  // Works due to implicit conversion
+  printEMutable(mutP);  // Obviously also works
+  
+  // Now we create an immutable object
+  auto P = edm4hep::MCParticle();
+  
+  printE(P);  // Obviously works
+  printEMutable(P);  // BREAKS: No conversion from default to Mutable
+
+  return 0;
+}
+
+
+
+
+

Subset collections

+

Similar to LCIO, podio generated EDMs offer a subset collection functionality. +This allows to create collections of objects, that are actually part of another +collection, e.g. to simply collect all the muons that are present in a larger +collection of reconstructed particles:

+

+

To create a subset collection, simply do

+
auto muons = edm4hep::ReconstructedParticleCollection();
+muons.setSubsetCollection();
+
+// You can now add objects that are part 
+// of another collection to this one via push_back
+muons.push_back(recos[0]);
+
+
+

Reading a subset collection works exactly the same as reading a normal +collection. This is handled in a transparent way, such that you usually don’t +even realize that you are operating on a subset collection.

+
+
+
+

The podio::Frame container

+

The podio::Frame is a generalized event. It is a container that aggregates +all relevant data (and some meta data). It also defines an implicit interval of +validity (but that is less relevant for this tutorial). It provides a thread +safe interface for data access

+
    +
  • Immutable read access only for collections that are stored inside the a +Frame

  • +
  • All data that is inside a Frame is owned by it, and this is also reflected +in its interface.

  • +
+

+

Here we will just briefly introduce the main functionality, for more details see +the documentation in +podio.

+
+

Getting collections from a Frame

+

Assuming that event is a podio::Frame in the following code examples, +getting a collection can be done via (c++)

+
auto& mcParticles = event.get<edm4hep::MCParticleCollection>("MCParticles"); 
+
+
+

or (python)

+
mcParticles = event.get("MCParticles")
+
+
+

This retrieves the collection that is stored under the name MCParticles with +type edm4hep::MCParticleCollection. If no such collection exists, it will +simply return an empty collection of the desired type. As you can see, the type +is automatically inferred in python. Note that get returns a const&, so it +is required to actually put the & behind auto in c++, otherwise there will +be a compilation error complaining about a copy-constructor being marked +delete.

+
+
+

Putting a collection into a Frame

+

When putting a collection into a Frame you give up ownership of this +collection. To signal this to the users, it is necessary to move the +collection into a Frame. Again assuming event is a podio::Frame in the +following examples, this looks like this

+
auto recos = edm4hep::ReconstructedParticleCollection();
+event.put(std::move(recos), "ReconstructedParticles");
+
+
+

Note the requirement to explicitly use std::move in this case. At this point +recos is moved into the event, and you are left with an object in a +valid but unspecified state that you +should under normal circumstances no longer use after this point. (Technically +we do enough that you still can use this, but don’t expect the results to match +your expectations).

+
+
+
+

Reading EDM4hep files

+

EDM4hep files are read with tools provided by podio:

+
    +
  • ROOTFrameReader - The default reader for files produced recently

  • +
  • ROOTLegacyReader - The legacy reader for files produced in the past

  • +
+

(There is also a ROOTReader that is obsolete and will be deprecated soon, so +please don’t use that). The main reason for two different readers is the +introduction of the Frame concept which is not yet fully complete so currently +things are in a sort of “hybrid state”. See +here for more information on how to +figure out whether the file you are interested in is a legacy file or not.

+

As podio is a rather low level tool, also the interface of these readers feel +somewhat low level. This is mostly visible in the fact, that you have to provide +a category (name) when getting the number of entries, or when reading the next +entry. This is because in principle podio can handle multiple different +categories of Frames in one file. For the purpose of this tutorial and also +for the majority of use cases, simply use "events" as category name. Readers +in podio do not return a podio::Frame directly, rather they just return some +frame data from which a podio::Frame can be constructed. Putting all of +these things together, a simple event loop looks like this in c++:

+
#include "podio/ROOTFrameReader.h"
+#include "podio/ROOTLegacyReader.h" // For reading legacy files
+#include "podio/Frame.h"
+
+#include "edm4hep/MCParticleCollection.h"
+
+int main() {
+  auto reader = podio::ROOTFrameReader();
+  // auto reader = podio::ROOTLegacyReader(); // For reading legacy files
+  reader.openFile("some_file_containing_edm4hep_data.root");
+  
+  // Loop over all events
+  for (size_t i = 0; i < reader.getEntries("events"); ++i) {
+    auto event = podio::Frame(reader.readNextEntry("events"));
+    auto& mcParticles = event.get<edm4hep::MCParticleCollection>("MCParticles");
+    
+    // do more stuff with this event
+  }
+
+  return 0;
+}
+
+
+

The equivalent python code looks like this

+
from podio import root_io
+
+reader = root_io.Reader("some_file_containing_edm4hep_data.root")
+# if you want to read legacy files use root_io.LegacyReader
+
+for event in reader.get("events"):
+  mcParticles = event.get("MCParticles")
+  # do more stuff with this event
+
+
+
+
+

ROOT file layout of podio generated EDMs

+

podio generated EDMs, i.e. also EDM4hep, use ROOT as their default I/O backend. +Since everything is based on PODs, the produced root files are pretty straight +forward to read and interpret (with some caveats). They are already almost flat +ntuples.

+

+

+
+

How do I figure out if a file is legacy?

+
    +
  1. Use podio-dump and it will tell you

  2. +
+
$podio-dump /home/workarea/data/rv02-02.sv02-02.mILD_l5_o1_v02.E250-SetA.I402003.Pe2e2h.eL.pR.n000.d_dstm_15089_0_edm4hep.root
+input file: /home/workarea/data/rv02-02.sv02-02.mILD_l5_o1_v02.E250-SetA.I402003.Pe2e2h.eL.pR.n000.d_dstm_15089_0_edm4hep.root
+
+Frame categories in this file (this is a legacy file!):
+[...]
+
+
+
    +
  1. Peek inside the root file and look at the contents

  2. +
+

+
+
+
+

podio-dump

+

The podio-dump utility allows to inspect EDM4hep files from the command line. +The synopsis looks like this

+
$podio-dump --help
+usage: podio-dump [-h] [-c CATEGORY] [-e ENTRIES] [-d] inputfile
+
+Dump contents of a podio file to stdout
+
+positional arguments:
+  inputfile             Name of the file to dump content from
+
+optional arguments:
+  -h, --help            show this help message and exit
+  -c CATEGORY, --category CATEGORY
+                        Which Frame category to dump
+  -e ENTRIES, --entries ENTRIES
+                        Which entries to print. A single number, comma separated list of numbers or "first:last" for an inclusive range of entries. Defaults to the first entry.
+  -d, --detailed        Dump the full contents not just the collection info
+
+
+

By default it prints how many events are present in the file and also a summary +of the contents of the first event. This overview consists of the names, data +types and number of elements of the collections that are stored in this event. +Using the --detailed flag, podio-dump will print the complete contents of +all collections in ASCII format. This can be quite a bit of information. Using +the --entries flag it is possible to choose which events to look at. The +--categories flag is an advanced feature and not necessary for this tutorial.

+

podio-dump will also tell you whether the file that is passed to it is a +legacy file in which case you will need the ROOTLegacyReader or the +SIOLegacyReader to read it.

+
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..b899187 --- /dev/null +++ b/index.html @@ -0,0 +1,525 @@ + + + + + + + Key4hep — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Key4hep

+
+

Contents:

+ +
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/objects.inv b/objects.inv new file mode 100644 index 0000000..4e67a83 Binary files /dev/null and b/objects.inv differ diff --git a/search.html b/search.html new file mode 100644 index 0000000..deaf136 --- /dev/null +++ b/search.html @@ -0,0 +1,376 @@ + + + + + + Search — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+
    +
  • + +
  • +
  • +
+
+
+
+
+ + + + +
+ +
+ +
+
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/searchindex.js b/searchindex.js new file mode 100644 index 0000000..6bf0113 --- /dev/null +++ b/searchindex.js @@ -0,0 +1 @@ +Search.setIndex({"docnames": [".github/scripts/yamlheader", "CONDUCT", "CONTRIBUTING", "LICENSE", "call-for-logos/README", "contents", "developing-key4hep-software/CMakeBuild", "developing-key4hep-software/Key4hepCMakeGuide", "developing-key4hep-software/Key4hepSoftwareGit", "developing-key4hep-software/README", "developing-key4hep-software/SinglePackage", "developing-key4hep-software/SpackForDevelopers", "developing-key4hep-software/WritingAlgorithms", "how-tos/README", "how-tos/k4edm4hep2lcioconv/doc/LCIO2EDM4hep", "how-tos/k4fwcore/doc/PodioInputOutput", "how-tos/k4fwcore/doc/k4run-args", "how-tos/k4marlinwrapper/doc/MarlinWrapperIntroduction", "how-tos/key4hep-tutorials/edm4hep_analysis/edm4hep_api_intro", "index", "setup-and-getting-started/README", "spack-build-instructions-for-librarians/README", "spack-build-instructions-for-librarians/spack-advanced", "spack-build-instructions-for-librarians/spack-buildcache", "spack-build-instructions-for-librarians/spack-nightlies", "spack-build-instructions-for-librarians/spack-setup", "talks-and-presentations/README", "tutorials/README", "tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/CEDViaWrapper", "tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/Readme", "tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/howtoMultithread", "tutorials/k4simdelphes/doc/starterkit/k4SimDelphes/Readme", "tutorials/key4hep-tutorials/gaudi_ild_reco/README"], "filenames": [".github/scripts/yamlheader.md", "CONDUCT.md", "CONTRIBUTING.md", "LICENSE.md", "call-for-logos/README.md", "contents.md", "developing-key4hep-software/CMakeBuild.md", "developing-key4hep-software/Key4hepCMakeGuide.md", "developing-key4hep-software/Key4hepSoftwareGit.md", "developing-key4hep-software/README.md", "developing-key4hep-software/SinglePackage.md", "developing-key4hep-software/SpackForDevelopers.md", "developing-key4hep-software/WritingAlgorithms.md", "how-tos/README.md", "how-tos/k4edm4hep2lcioconv/doc/LCIO2EDM4hep.md", "how-tos/k4fwcore/doc/PodioInputOutput.md", "how-tos/k4fwcore/doc/k4run-args.md", "how-tos/k4marlinwrapper/doc/MarlinWrapperIntroduction.md", "how-tos/key4hep-tutorials/edm4hep_analysis/edm4hep_api_intro.md", "index.md", "setup-and-getting-started/README.md", "spack-build-instructions-for-librarians/README.md", "spack-build-instructions-for-librarians/spack-advanced.md", "spack-build-instructions-for-librarians/spack-buildcache.md", "spack-build-instructions-for-librarians/spack-nightlies.md", "spack-build-instructions-for-librarians/spack-setup.md", "talks-and-presentations/README.md", "tutorials/README.md", "tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/CEDViaWrapper.md", "tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/Readme.md", "tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/howtoMultithread.md", "tutorials/k4simdelphes/doc/starterkit/k4SimDelphes/Readme.md", "tutorials/key4hep-tutorials/gaudi_ild_reco/README.md"], "titles": ["<no title>", "Contributor Code of Conduct", "Contributing", "Software", "Call for logos", "Key4hep", "Building Key4hep using CMake: For Developers", "CMake guide for Key4hep software", "Github workflow and contribution guide", "Developing Key4hep", "Developing a single package", "Building Key4hep using Spack: For Developers", "Writing Gaudi Algorithms", "Key4hep How-Tos and Instructions", "Standalone conversion from LCIO to EDM4hep", "Reading and writing EDM4hep files in Gaudi", "Adding custom arguments to k4run", "Wrapping Marlin processors in Gaudi", "EDM4hep - The common event data model", "Key4hep", "Getting started with Key4hep software", "Building Key4hep: For Librarians", "Spack Usage and Further Technical Topics", "Spack Buildcaches", "Nightly Builds with Spack", "Setting up Spack", "Talks and Presentations", "Key4hep Tutorials", "Running an Event Display with EDM4hep input", "Using the Key4hep-Stack for CLIC Simulation and Reconstruction", "How to run multithreading with k4MarlinWrapper (Gaudi)", "Running Delphes fast simulation with EDM4hep output", "Runing ILD simulation and reconstruction"], "terms": {"As": [1, 11, 17, 18], "maintain": 1, "thi": [1, 2, 6, 7, 8, 10, 11, 12, 13, 14, 15, 17, 18, 21, 22, 23, 25, 27, 28, 29, 30, 31, 32], "project": [1, 2, 11, 12, 18, 23], "we": [1, 2, 6, 8, 10, 11, 12, 14, 15, 17, 18, 22, 26, 27, 28, 29, 31, 32], "pledg": 1, "respect": [1, 17, 18, 32], "all": [1, 2, 6, 7, 8, 9, 12, 14, 15, 17, 22, 23, 27, 28, 29, 30, 31, 32], "peopl": [1, 7, 8], "who": 1, "contribut": [1, 5, 9, 19, 26], "through": [1, 8, 12, 14, 27], "report": [1, 2], "issu": [1, 2, 8, 15, 17, 22, 27, 28, 32], "post": [1, 18], "featur": [1, 8, 11, 18, 20], "request": [1, 2, 7, 9], "updat": [1, 7, 18, 26, 29], "document": [1, 5, 11, 12, 16, 19, 21, 23], "submit": [1, 2], "pull": [1, 2, 9, 32], "patch": [1, 5, 11, 19, 22], "other": [1, 3, 5, 7, 9, 12, 15, 17, 18, 19, 22, 23, 25, 27, 28, 29, 32], "activ": [1, 11, 25], "ar": [1, 2, 3, 6, 7, 8, 10, 11, 12, 13, 14, 15, 17, 20, 22, 23, 25, 26, 27, 28, 29, 30, 31, 32], "commit": [1, 9, 11, 23, 24], "make": [1, 2, 6, 7, 8, 11, 12, 14, 15, 17, 18, 25, 28, 30, 32], "particip": 1, "harass": 1, "free": [1, 2, 7, 8, 18], "experi": [1, 5, 9, 11, 19, 26], "everyon": 1, "regardless": [1, 22], "level": [1, 7, 12, 15, 18, 30, 32], "gender": 1, "ident": 1, "express": [1, 7], "sexual": 1, "orient": 1, "disabl": [1, 11], "person": 1, "appear": [1, 6, 14], "bodi": 1, "size": [1, 18], "race": 1, "ethnic": 1, "ag": 1, "religion": 1, "exampl": [1, 3, 5, 8, 9, 10, 11, 12, 15, 16, 17, 18, 19, 20, 22, 25, 27, 28, 29, 31], "unaccept": 1, "behaviour": 1, "includ": [1, 6, 7, 10, 11, 12, 14, 15, 17, 18, 22, 24, 29, 32], "us": [1, 2, 5, 8, 9, 10, 14, 15, 16, 18, 19, 21, 23, 24, 27, 28, 30, 31, 32], "languag": 1, "imageri": 1, "derogatori": 1, "comment": [1, 2, 9, 17, 29, 32], "attack": 1, "troll": 1, "public": 1, "privat": 1, "insult": 1, "unprofession": 1, "have": [1, 2, 7, 9, 10, 11, 12, 14, 15, 17, 18, 22, 27, 28, 29, 30, 31, 32], "right": [1, 6, 22, 25], "respons": [1, 14], "remov": [1, 7, 9, 12], "edit": [1, 6, 11, 32], "reject": 1, "wiki": 1, "align": 1, "do": [1, 6, 7, 9, 10, 11, 12, 14, 15, 17, 22, 28, 29, 30, 31, 32], "follow": [1, 6, 7, 8, 11, 15, 17, 18, 20, 21, 22, 23, 25, 27, 28, 29, 30, 31, 32], "mai": [1, 2, 6, 7, 8, 11, 12, 15, 29, 30], "from": [1, 2, 5, 6, 7, 8, 11, 12, 13, 15, 16, 17, 19, 20, 22, 23, 25, 28, 29, 30, 31, 32], "team": [1, 2, 7], "instanc": [1, 5, 16, 17, 18, 19, 21], "abus": 1, "otherwis": [1, 3, 11, 12, 14, 15, 18, 22], "open": [1, 2, 8, 18, 27], "an": [1, 2, 5, 6, 7, 9, 12, 14, 15, 17, 18, 19, 22, 23, 24, 25, 27, 29, 30, 31, 32], "contact": [1, 7], "one": [1, 6, 8, 10, 11, 12, 14, 17, 18, 22, 25, 28, 29, 31, 32], "more": [1, 2, 7, 8, 9, 10, 12, 18, 21, 22, 23, 32], "i": [1, 2, 6, 9, 10, 11, 12, 14, 15, 16, 17, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32], "adapt": [1, 27, 29, 30], "coven": 1, "version": [1, 6, 8, 9, 10, 12, 20, 22, 23, 24, 25], "1": [1, 4, 7, 8, 11, 12, 17, 22, 25, 29, 30, 32], "0": [1, 3, 11, 16, 18, 22, 25], "avail": [1, 3, 7, 11, 12, 14, 15, 17, 20, 22, 25, 27, 30, 31], "http": [1, 7, 9, 11, 12, 22, 23, 25, 26, 28, 29, 31, 32], "org": [1, 6, 7, 11, 20, 21, 22, 24, 25, 26, 28, 29, 31, 32], "key4hep": [2, 8, 10, 12, 15, 17, 18, 22, 23, 24, 26, 28, 32], "sourc": [2, 6, 7, 8, 10, 11, 17, 20, 21, 24, 25, 28, 29, 31, 32], "welcom": 2, "kind": [2, 12], "new": [2, 6, 7, 8, 11, 20, 25, 27, 29], "lesson": 2, "fix": [2, 7, 8, 17, 18], "exist": [2, 14, 17, 18, 23, 25, 31, 32], "materi": [2, 13], "bug": [2, 8, 18], "review": 2, "propos": 2, "chang": [2, 5, 9, 10, 11, 12, 15, 17, 18, 19, 20, 22, 24, 25, 29, 32], "By": [2, 12, 15, 17, 18, 25], "you": [2, 6, 7, 8, 9, 11, 12, 15, 17, 18, 22, 27, 28, 29, 30, 31, 32], "agre": 2, "redistribut": 2, "your": [2, 5, 9, 11, 15, 18, 19, 29, 30, 31, 32], "work": [2, 6, 7, 8, 10, 11, 12, 15, 16, 17, 18, 22, 26, 27, 28, 32], "under": [2, 3, 6, 11, 14, 18, 22, 23, 25, 30], "licens": 2, "also": [2, 7, 8, 10, 11, 12, 14, 15, 17, 18, 22, 23, 24, 25, 27, 28, 29, 31, 32], "abid": 2, "our": [2, 10, 12], "contributor": [2, 5, 19, 22], "code": [2, 5, 7, 9, 11, 12, 19, 24, 28], "conduct": [2, 5, 19], "fork": [2, 8, 25], "model": [2, 5, 13, 15, 17, 19, 28], "manag": [2, 18, 21, 30], "inform": [2, 6, 8, 11, 14, 15, 18, 20, 22, 23, 27], "about": [2, 11, 12, 18, 22], "repositori": [2, 6, 9, 12, 18, 24, 25, 27, 28, 29], "should": [2, 6, 7, 8, 11, 15, 17, 18, 25, 28, 29, 31, 32], "branch": [2, 8, 24], "against": [2, 23], "main": [2, 6, 7, 8, 10, 11, 12, 14, 17, 18, 24, 28, 30, 32], "some": [2, 6, 7, 8, 9, 10, 11, 12, 14, 15, 17, 20, 21, 22, 23, 24, 25, 29, 30, 31, 32], "still": [2, 11, 14, 15, 17, 18, 22, 25, 32], "master": [2, 6, 8, 11, 23, 25], "futur": [2, 12, 17, 26], "If": [2, 6, 8, 11, 12, 14, 17, 18, 27, 30, 32], "re": [2, 8, 11, 12, 22, 23, 25], "look": [2, 7, 8, 11, 12, 14, 15, 17, 18, 28, 32], "thing": [2, 5, 6, 11, 13, 16, 19, 22, 28, 32], "feel": [2, 7, 8, 18, 27], "touch": [2, 8], "dash": 2, "sw": [2, 6, 7, 8, 11, 20, 21, 22, 24, 25, 28, 29, 31, 32], "cern": [2, 8, 18, 22, 23, 25, 26], "dot": 2, "ch": [2, 18, 22, 23, 25, 26], "can": [2, 6, 7, 9, 10, 11, 12, 14, 15, 17, 18, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32], "list": [2, 7, 8, 12, 14, 15, 17, 18, 25, 26, 27, 30, 32], "equal": 2, "except": 3, "where": [3, 6, 8, 10, 11, 12, 14, 17, 18, 25, 26, 29, 32], "note": [3, 7, 8, 11, 17, 18, 22, 25, 28, 29, 32], "program": [3, 21, 26, 28], "provid": [3, 7, 8, 11, 12, 14, 15, 17, 18, 22, 25, 28, 31, 32], "carpentri": 3, "made": [3, 7, 11, 15, 22], "osi": 3, "approv": 3, "apach": 3, "2": [3, 4, 6, 8, 11, 22, 25], "3": [4, 8, 11, 18, 22, 26, 29, 30, 32], "4": [4, 11, 12, 22, 30], "5": [4, 22, 26], "6": [4, 11, 22], "7": [4, 20, 22], "get": [5, 7, 9, 11, 12, 14, 19, 28, 29, 31, 32], "start": [5, 8, 9, 11, 12, 18, 19, 28, 31, 32], "softwar": [5, 8, 9, 11, 12, 13, 17, 19, 21, 22, 23, 25, 26, 27, 31, 32], "set": [5, 6, 9, 10, 12, 17, 18, 19, 21, 24, 27, 30], "up": [5, 9, 10, 12, 18, 19, 21, 23, 24, 27, 32], "stack": [5, 6, 10, 11, 12, 13, 17, 19, 21, 22, 23, 24, 25, 26, 27, 31], "central": [5, 19, 22, 23, 25], "instal": [5, 6, 8, 9, 10, 12, 19, 21, 23, 24, 28, 29, 31], "cvmf": [5, 6, 7, 10, 11, 12, 19, 21, 25, 28, 29, 31, 32], "how": [5, 8, 9, 11, 17, 19, 20, 22, 27, 29, 31, 32], "Tos": [5, 19], "instruct": [5, 7, 8, 11, 19, 20, 25, 31], "edm4hep": [5, 6, 11, 12, 13, 17, 19, 25, 27, 30], "The": [5, 6, 7, 8, 9, 11, 13, 14, 16, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 32], "common": [5, 6, 13, 15, 19, 25, 26], "event": [5, 12, 13, 19, 26, 27, 29, 31, 32], "data": [5, 7, 12, 13, 15, 17, 19, 30, 32], "import": [5, 6, 7, 11, 12, 15, 16, 17, 19, 20, 22, 28, 29, 30, 32], "resourc": [5, 19, 31], "doxygen": [5, 19], "api": [5, 19], "podio": [5, 6, 11, 13, 14, 15, 19, 28], "technic": [5, 13, 19], "infrastructur": [5, 13, 19], "which": [5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 17, 19, 24, 25, 27, 28, 29, 30, 31, 32], "run": [5, 6, 8, 9, 11, 12, 13, 16, 17, 19, 20, 24, 25, 27, 29], "gener": [5, 9, 12, 15, 17, 19, 22, 31, 32], "frame": [5, 14, 19], "contain": [5, 6, 7, 11, 12, 13, 14, 19, 22, 27, 28, 29, 31, 32], "read": [5, 8, 12, 13, 14, 19, 22, 23, 25, 28, 29, 30, 31, 32], "file": [5, 6, 7, 8, 9, 11, 13, 14, 16, 19, 22, 23, 25, 27, 29, 30, 31], "root": [5, 7, 11, 12, 14, 15, 19, 22, 28, 29, 31, 32], "layout": [5, 19], "edm": [5, 14, 19, 29, 30], "dump": [5, 19, 22], "write": [5, 8, 9, 13, 19, 23, 30, 32], "gaudi": [5, 7, 9, 13, 18, 19, 27], "k4datasvc": [5, 12, 19, 28, 30, 32], "ad": [5, 7, 8, 9, 12, 13, 15, 19, 23, 25, 32], "custom": [5, 9, 13, 14, 19, 25], "argument": [5, 7, 11, 12, 13, 14, 18, 19, 22, 28, 31], "k4run": [5, 12, 13, 15, 17, 19, 27, 28, 29], "wrap": [5, 13, 19, 28, 30, 32], "marlin": [5, 6, 11, 13, 19, 27, 28, 30, 32], "processor": [5, 13, 19, 28, 29, 30, 32], "marlinprocessorwrapp": [5, 19, 28, 29, 30, 32], "algorithm": [5, 7, 9, 15, 19, 28, 29, 30, 32], "lcio": [5, 6, 11, 13, 18, 19, 22, 27, 28, 30, 32], "automat": [5, 8, 11, 14, 18, 19, 22, 23, 24, 25, 32], "convers": [5, 13, 18, 19, 28, 29, 32], "xml": [5, 7, 11, 19, 28, 29, 32], "steer": [5, 9, 16, 19, 28, 29, 31, 32], "convert": [5, 18, 19, 28, 29, 30, 31, 32], "standalon": [5, 11, 13, 17, 19, 27], "miss": [5, 10, 17, 19, 27], "collect": [5, 11, 12, 17, 19, 22, 28, 29, 32], "fly": [5, 17, 19, 28, 32], "onli": [5, 7, 8, 11, 12, 16, 17, 18, 19, 20, 22, 23, 25, 28, 30, 32], "subset": [5, 17, 19], "librari": [5, 7, 13, 19, 22], "usag": [5, 9, 13, 15, 16, 17, 18, 19, 27], "function": [5, 9, 13, 17, 19, 31], "handl": [5, 11, 17, 18, 19, 22, 32], "relat": [5, 11, 15, 19], "lcrelat": [5, 17, 19], "": [5, 6, 8, 10, 11, 12, 14, 17, 18, 19, 22, 29, 30, 31, 32], "entir": [5, 8, 17, 19], "paramet": [5, 12, 17, 19, 28, 29], "subtl": [5, 19], "differ": [5, 7, 8, 11, 12, 17, 18, 19, 22, 23, 28, 31], "between": [5, 12, 17, 18, 19, 28, 30, 32], "reconstructedparticl": [5, 18, 19], "tutori": [5, 8, 11, 12, 13, 18, 19, 32], "clic": [5, 7, 19, 27, 28, 30], "simul": [5, 19, 27, 28], "reconstruct": [5, 14, 16, 18, 19, 27, 30], "rune": [5, 19, 27], "ild": [5, 14, 19, 27], "setup": [5, 6, 7, 9, 19, 20, 21, 22, 24, 25, 27, 28, 29, 30], "multithread": [5, 12, 19, 27], "k4marlinwrapp": [5, 6, 19, 27, 28, 32], "support": [5, 12, 17, 19, 20, 22, 23, 27], "displai": [5, 19, 20, 27], "input": [5, 11, 12, 14, 15, 17, 18, 19, 22, 27, 30, 31, 32], "environ": [5, 6, 9, 10, 12, 17, 19, 20, 21, 27, 29, 30, 32], "creat": [5, 6, 7, 8, 11, 12, 14, 17, 18, 19, 21, 22, 23, 25, 27, 30, 31], "option": [5, 6, 7, 12, 15, 18, 19, 22, 25, 27, 30], "delph": [5, 19, 27], "fast": [5, 19, 27], "output": [5, 11, 12, 14, 15, 17, 19, 27, 28, 29, 30, 32], "prerequisit": [5, 19, 27], "execut": [5, 7, 14, 17, 19, 27, 28], "framework": [5, 7, 12, 15, 17, 19, 27, 32], "develop": [5, 7, 12, 17, 18, 19, 20, 22, 24, 25, 26, 32], "github": [5, 7, 9, 11, 12, 18, 19, 22, 25, 28, 29, 32], "workflow": [5, 9, 19, 21, 32], "guid": [5, 9, 14, 18, 19], "overview": [5, 9, 12, 19], "first": [5, 6, 7, 9, 11, 12, 14, 17, 18, 19, 28, 29, 30, 32], "time": [5, 6, 9, 10, 12, 19, 20, 27], "git": [5, 7, 9, 11, 12, 19, 22, 25, 28, 29, 32], "ssh": [5, 9, 12, 19, 22], "kei": [5, 9, 12, 17, 19], "improv": [5, 9, 18, 19], "recommend": [5, 9, 12, 19, 25, 32], "troubl": [5, 9, 19], "shoot": [5, 9, 19, 28], "need": [5, 6, 7, 9, 10, 11, 12, 15, 17, 19, 21, 22, 23, 25, 29, 30, 31, 32], "help": [5, 7, 9, 12, 16, 18, 19, 22, 31], "cmake": [5, 9, 10, 11, 12, 19, 22], "quick": [5, 9, 10, 11, 19], "build": [5, 9, 10, 12, 19, 20, 22, 23, 25, 28, 30, 31], "packag": [5, 9, 19, 20, 21, 23, 24, 26, 31], "configur": [5, 9, 10, 11, 12, 15, 19, 21, 22, 24, 28, 29, 30, 31, 32], "ctest": [5, 6, 9, 19, 30], "singl": [5, 9, 14, 18, 19], "spack": [5, 6, 7, 9, 19, 21, 26, 29, 31], "For": [5, 7, 8, 9, 10, 12, 14, 17, 18, 19, 22, 23, 24, 25, 29, 31, 32], "multipl": [5, 6, 9, 12, 17, 18, 19, 30], "depend": [5, 7, 9, 10, 12, 14, 18, 19, 21, 25, 29, 32], "walkthrough": [5, 9, 19], "initi": [5, 9, 19], "final": [5, 9, 19, 28, 32], "debug": [5, 7, 9, 19, 22, 25, 28, 30], "gdb": [5, 9, 19], "avoid": [5, 8, 9, 17, 19, 22], "const": [5, 9, 18, 19], "oper": [5, 9, 18, 19], "librarian": [5, 19], "download": [5, 11, 19, 21, 31], "releas": [5, 6, 10, 11, 19, 20, 21, 23, 24, 28, 29, 31], "user": [5, 8, 12, 13, 14, 18, 19, 21, 22, 28], "yaml": [5, 11, 19, 21, 22], "talk": [5, 19], "present": [5, 12, 18, 19, 27, 28], "call": [5, 11, 14, 17, 18, 19, 23, 32], "logo": [5, 19], "fcc": [5, 7, 8, 19, 26, 31], "ilc": [5, 7, 14, 19], "cepc": [5, 19], "A": [6, 11, 14, 15, 18, 21, 22, 23, 26, 30], "problem": [6, 22], "when": [6, 7, 9, 10, 11, 12, 18, 22, 29, 31], "top": [6, 7, 11, 18, 32], "sever": [6, 8, 12, 22, 27, 32], "One": [6, 11, 12, 17, 28], "wai": [6, 8, 10, 11, 12, 14, 17, 18, 22, 25, 27, 29, 30, 31, 32], "experiment": 6, "nightli": [6, 10, 11, 20, 28, 32], "usual": [6, 7, 11, 17, 18, 22], "Then": [6, 11, 12, 29], "command": [6, 7, 8, 11, 15, 18, 22, 23, 25, 28, 29, 32], "hsf": [6, 7, 11, 20, 21, 22, 24, 25, 26, 28, 29, 31, 32], "py": [6, 7, 11, 12, 17, 28, 29, 32], "pkg1": 6, "pkg2": 6, "clone": [6, 7, 9, 11, 12, 18, 25, 28, 29, 32], "empti": [6, 12, 14, 15, 17, 18], "On": [6, 17], "check": [6, 7, 8, 11, 12, 17, 18, 30], "folder": [6, 7, 11, 29, 32], "symbol": 6, "link": [6, 7, 11, 12, 14, 18, 25], "current": [6, 8, 11, 15, 17, 18, 20, 22, 25], "directori": [6, 7, 11, 22, 23, 25, 28, 32], "cmakelist": [6, 7], "txt": [6, 7, 11, 14], "want": [6, 7, 8, 11, 12, 15, 17, 18, 26, 28, 30, 32], "local": [6, 9, 10, 22, 25], "don": [6, 8, 12, 18, 32], "t": [6, 9, 11, 12, 18, 22, 32], "after": [6, 10, 11, 12, 14, 18, 20, 30, 32], "manual": [6, 10, 11], "recogn": 6, "organ": [6, 18], "than": [6, 9, 11, 12, 13, 14], "predefin": 6, "ones": [6, 10, 11, 18, 22, 25, 29, 31], "ll": [6, 8, 12], "most": [6, 7, 8, 11, 12, 14, 15, 17, 18, 20, 28], "like": [6, 7, 8, 11, 12, 14, 15, 17, 18, 22, 27, 28, 32], "line": [6, 7, 8, 11, 12, 14, 15, 18, 22, 29, 32], "pkg": 6, "k4fwcore": [6, 12, 15, 16], "built": [6, 10, 11, 12, 23], "order": [6, 7, 11, 12, 17, 18, 22, 23, 24, 25, 28, 31, 32], "individu": [6, 8, 14, 22, 24], "fetchcontent_declar": 6, "entri": [6, 14, 17, 18, 32], "each": [6, 8, 11, 12, 14, 15, 17, 18, 30], "happi": [6, 8, 11, 27], "variabl": [6, 7, 10, 12, 17, 18, 32], "mkdir": [6, 7, 12, 32], "cd": [6, 7, 8, 11, 12, 29, 32], "export": [6, 7, 10], "path": [6, 7, 10, 11, 15, 22, 25], "pwd": [6, 7, 25], "bin": [6, 7, 10], "ld_library_path": [6, 7, 10], "lib": [6, 7, 10, 22], "lib64": [6, 7, 10], "root_include_path": [6, 7, 10], "pythonpath": [6, 7, 10], "python": [6, 7, 10, 11, 12, 16, 17, 18, 22, 29], "cmake_prefix_path": [6, 7], "dcmake_install_prefix": [6, 7, 10, 12], "j": [6, 7, 12], "n": [6, 17, 18, 29, 30, 32], "same": [6, 8, 11, 12, 14, 17, 18, 22, 23, 25, 31, 32], "so": [6, 7, 8, 10, 11, 12, 16, 17, 21, 22, 23, 25, 26, 32], "take": [6, 8, 11, 12, 14, 15, 17, 18, 22, 23, 28, 30, 32], "allow": [6, 8, 11, 12, 15, 17, 18, 22, 28, 32], "u": [6, 12, 23, 27], "case": [6, 7, 8, 11, 12, 14, 15, 17, 18, 22, 28, 29, 31, 32], "done": [6, 7, 8, 11, 14, 17, 18, 22, 27, 28, 32], "Not": [6, 30], "everyth": [6, 11, 12, 15, 17, 18, 28], "ha": [6, 7, 10, 11, 12, 14, 17, 18, 22, 25, 28], "won": [6, 12], "mani": [6, 8, 10, 11, 22, 30], "recent": [6, 11, 18], "enabl": [6, 17, 18, 29], "older": 6, "probabl": [6, 11, 28], "togeth": [6, 11, 12, 18, 25, 28], "successfulli": [6, 11], "ani": [6, 7, 8, 9, 10, 11, 12, 17, 18, 22, 27], "combin": [6, 12, 17, 30], "them": [6, 7, 11, 12, 14, 17, 22, 25, 27], "ilcutil": 6, "lccd": 6, "gear": 6, "k4edm4hep2lcioconv": [6, 14], "two": [6, 11, 12, 14, 17, 18, 20, 29, 30], "correspond": [6, 8, 11, 12, 14, 17, 32], "git_tag": 6, "whatev": [6, 11, 12, 32], "checkout": [6, 11], "go": [6, 11, 12, 15, 18, 26, 28, 31], "found": [6, 7, 8, 11, 12, 17, 26, 28, 29], "_dep": 6, "src": [6, 7, 12], "tool": [7, 8, 12, 17, 18, 21, 23, 24, 26, 32], "becom": [7, 11, 15], "de": [7, 14], "facto": 7, "standard": [7, 17, 31, 32], "outsid": 7, "hep": [7, 8, 22, 26, 31], "In": [7, 8, 11, 12, 14, 17, 18, 20, 21, 22, 23, 24, 25, 28, 29, 30, 31, 32], "commun": [7, 17], "lhcb": [7, 12, 17], "collabor": [7, 26], "cm": 7, "equival": [7, 18], "scram": 7, "step": [7, 8, 11, 14, 25, 28, 29, 32], "bash": [7, 11, 22], "unsur": 7, "best": [7, 11, 22, 28], "default": [7, 12, 15, 16, 17, 18, 22, 25, 30, 31], "init": [7, 30], "script": [7, 17, 18, 20, 21, 22, 24, 25, 28, 32], "centos7": [7, 21, 24, 25], "sh": [7, 11, 20, 21, 24, 25, 28, 29, 31, 32], "mix": [7, 18], "anoth": [7, 9, 12, 18, 22], "intend": [7, 11, 12, 18, 20, 23], "mail": [7, 8], "channel": [7, 11], "fine": 7, "grain": 7, "control": [7, 17, 18], "over": [7, 12, 18, 22, 23, 28, 30], "rerun": 7, "dcmake_build_typ": 7, "ccmake": 7, "compil": [7, 8, 10, 11, 12, 18, 21, 23, 30], "cpu": 7, "getconf": 7, "_nprocessors_onln": 7, "content": [7, 11, 14, 15, 17, 18, 31], "just": [7, 11, 12, 15, 16, 17, 18, 21, 22, 25, 32], "few": [7, 8, 11, 12, 13, 14, 17, 18, 20, 22, 25, 28, 29, 32], "assum": [7, 11, 14, 15, 17, 18, 25, 28, 29, 31, 32], "installarea": 7, "plugin": 7, "system": [7, 25], "dd4hep": [7, 11, 27, 28], "dictionari": [7, 11, 17], "packagenam": 7, "share": [7, 11, 18, 22, 25], "distribut": [7, 20, 22, 28], "special": 7, "name": [7, 8, 11, 12, 14, 15, 17, 18, 28, 29, 31, 32], "cap": 7, "e": [7, 8, 11, 14, 15, 17, 18, 22, 31, 32], "g": [7, 8, 11, 14, 15, 17, 18, 22, 31], "k4simdelph": [7, 8, 11, 31], "colin": 7, "simpl": [7, 11, 12, 17, 18, 28], "thei": [7, 8, 11, 12, 13, 14, 17, 18, 20, 23, 25, 27, 31], "understand": [7, 18], "basic": [7, 14, 17, 25, 28], "com": [7, 8, 11, 12, 18, 22, 25, 28, 29, 31, 32], "cbernet": 7, "readm": [7, 12], "md": [7, 9, 12], "awar": [7, 8, 15], "wildcard": [7, 15], "add": [7, 8, 11, 12, 18, 22, 23, 25, 27, 32], "implement": [7, 11, 12, 14, 17, 18], "subfold": 7, "cpp": [7, 12], "explicitli": [7, 11, 17, 18, 29, 32], "To": [7, 8, 11, 12, 15, 17, 18, 22, 28, 29, 30, 31, 32], "fastest": 7, "properti": [7, 12, 30], "particular": [7, 12, 31, 32], "compon": [7, 12, 18, 30], "consist": [7, 14, 15, 18, 22], "header": [7, 14], "dynam": [7, 17], "describ": [7, 8, 11, 12, 15, 17, 18, 31], "offer": [7, 18, 31], "possibl": [7, 10, 11, 12, 14, 15, 16, 17, 18, 22, 23, 28, 31, 32], "via": [7, 8, 11, 15, 17, 18, 22, 28, 29, 31, 32], "xenv": 7, "simpli": [7, 11, 12, 14, 15, 17, 18, 25, 28, 32], "prefix": [7, 11, 22], "fccsw": [7, 8], "directli": [7, 11, 14, 17, 18, 28, 32], "key4run": 7, "pythia": [7, 8, 31], "sometim": [7, 11, 15, 25], "conveni": [7, 14, 32], "binari": [7, 23], "without": [7, 10, 11, 17, 18, 20, 22, 23], "bit": [7, 18, 32], "mostli": [7, 13, 18, 25], "pre": [7, 25], "fccrun": 7, "pick": [7, 10, 11, 22], "integr": [7, 8, 31], "test": [7, 8, 11, 12, 20, 24, 28, 29, 30], "add_test": 7, "see": [7, 8, 11, 12, 18, 22, 25, 28, 31, 32], "k4gen": 7, "blob": [7, 12, 25], "forward": [7, 11, 14, 18, 32], "trace": 7, "cmakeflag": 7, "flag": [7, 14, 18, 22], "instead": [7, 8, 10, 11, 16, 22, 29], "verbos": [7, 22, 30], "page": [8, 9, 11, 13, 15, 17, 21, 22, 27], "access": [8, 14, 18, 23, 29, 31], "introduct": [8, 18, 28], "atlassian": 8, "interact": [8, 18], "book": 8, "pleas": [8, 16, 18, 27], "refer": [8, 12, 13, 16, 23, 29], "especi": [8, 11, 18], "easier": [8, 18], "replac": [8, 17, 29, 32], "abl": [8, 11, 12, 14, 17, 32], "lxplu": [8, 21], "later": [8, 9, 10, 16, 29], "section": [8, 11, 17, 18], "It": [8, 10, 11, 12, 14, 15, 16, 17, 18, 22, 23, 24, 25, 28, 31, 32], "shell": [8, 11], "tab": 8, "complet": [8, 12, 15, 17, 18, 24, 28, 31, 32], "show": [8, 15, 17, 18, 22, 28, 32], "prompt": 8, "pend": 8, "etc": [8, 12, 25], "least": [8, 14, 31], "offici": 8, "mean": [8, 11, 12, 18, 28], "area": [8, 11, 22, 25], "af": 8, "remot": 8, "your_github_us": 8, "copi": [8, 11, 12, 18, 22, 23, 25, 32], "upstream": [8, 11, 21, 22, 24], "repo": [8, 22, 25], "addit": [8, 12, 14, 15, 18, 20, 21, 29], "fetch": [8, 11], "prune": 8, "rebas": 8, "loss": 8, "process": [8, 11, 12, 14, 17, 22, 31], "delet": [8, 18, 20, 22], "result": [8, 12, 18, 22, 32], "info": [8, 11, 12, 18, 28, 29, 32], "below": [8, 17, 18, 25, 26, 31, 32], "origin": [8, 11, 17, 18, 29, 32], "name_of_local_branch": 8, "tracker": 8, "choic": [8, 22], "b": 8, "occasion": 8, "explain": [8, 11, 29], "abov": [8, 11, 12, 18, 22, 28, 31], "merg": 8, "succe": 8, "even": [8, 11, 12, 14, 18, 21, 23, 28], "better": [8, 12], "produc": [8, 12, 18, 28, 29, 31, 32], "expect": [8, 17, 18], "offic": 8, "alwai": [8, 12, 16, 18, 20, 22, 25], "given": [8, 11, 22, 30], "topic": [8, 9, 11], "pythia_interfac": 8, "someth": [8, 11, 12, 15, 18, 27, 32], "solid": 8, "often": [8, 25], "onc": [8, 11, 14, 15], "finish": 8, "larg": [8, 11, 21], "consid": [8, 22, 32], "progress": [8, 22], "repres": 8, "snapshot": 8, "whole": [8, 11, 21], "previou": [8, 10, 12], "although": [8, 12, 22, 25], "well": [8, 11, 14, 17, 18, 23, 27, 29, 31, 32], "practic": [8, 11, 25, 32], "pass": [8, 12, 14, 15, 17, 18, 22, 28, 30, 31, 32], "find": [8, 9, 11, 12, 18, 22, 25, 27], "both": [8, 11, 17, 18, 24, 29, 32], "good": [8, 12, 25], "bad": [8, 22], "meaning": [8, 11, 17, 32], "ref": [8, 17], "id": [8, 12, 14], "correctli": 8, "printout": 8, "interfac": [8, 22], "short": [8, 17, 18], "liner": 8, "here": [8, 11, 12, 18, 26, 27, 28, 31, 32], "befor": [8, 11, 12, 32], "idea": [8, 12], "sens": [8, 18], "messag": [8, 18], "did": 8, "unnecessari": 8, "log": [8, 12], "d": [8, 18, 21, 26], "commonli": 8, "actual": [8, 11, 17, 18, 22], "give": [8, 11, 12, 14, 17, 18, 25, 32], "titl": 8, "appropri": [8, 11], "calorimet": 8, "cluster": [8, 18], "pr": [8, 14, 18], "wip": 8, "descript": [8, 11, 17, 18, 28], "bullet": 8, "point": [8, 12, 14, 18, 20, 23, 29], "wa": [8, 11, 12, 17, 23], "track": [8, 16, 17, 18], "sure": [8, 12, 15, 17, 32], "mention": 8, "close": 8, "v": [8, 22], "similar": [8, 11, 12, 14, 18, 22, 28, 31, 32], "address": [8, 28], "own": [8, 11, 14, 17, 18, 30], "renam": [8, 17], "myfccsw": 8, "url": 8, "question": [8, 11], "sort": [8, 18], "out": [8, 11, 12, 22, 25, 32], "drop": [8, 11, 12, 15, 32], "altern": [8, 17, 22, 25, 31], "sooner": 9, "rather": [9, 13, 17, 18, 22], "necessari": [9, 11, 14, 17, 18, 22, 29, 31, 32], "These": [9, 12, 17, 18, 25, 29, 30], "cover": [9, 31], "friction": 9, "keep": [9, 12, 15, 16, 17, 32], "date": [9, 11, 22, 23], "clean": [9, 32], "histori": 9, "try": [9, 11, 14, 17, 18, 27], "push": [9, 11], "authent": 9, "error": [9, 12, 18, 22], "now": [9, 11, 18, 22, 25, 28, 32], "my": [9, 11], "what": [9, 11, 12, 14, 18, 22, 25, 30], "runtim": [9, 17], "dev": 9, "advanc": [9, 18, 22], "cmakebuild": 9, "gave": 10, "while": [10, 11, 14, 15, 17, 18, 25, 32], "approach": [10, 11], "number": [10, 11, 12, 14, 17, 18, 21, 22, 29, 30, 32], "cumbersom": [10, 11], "repeat": [10, 17], "cycl": [10, 11, 12], "notic": 10, "reproduc": [10, 11, 20, 32], "somewhat": [11, 17, 18], "its": [11, 14, 16, 17, 18, 22, 25, 30], "limit": [11, 12, 14, 15], "howev": [11, 12, 17, 20, 25, 31, 32], "imposs": 11, "unfortun": [11, 22], "might": [11, 15, 17, 22, 23], "fulli": [11, 18, 28], "henc": [11, 14, 18, 32], "tri": [11, 22], "obtain": [11, 12, 14, 18, 29], "suffic": 11, "three": 11, "let": [11, 12, 22, 27], "sai": 11, "nigthli": 11, "2023": [11, 26], "07": 11, "18": [11, 22], "x86_64": [11, 22, 25], "almalinux9": 11, "gcc11": 11, "opt": 11, "kzukii": 11, "And": 11, "latest": [11, 20, 24, 25], "scratch": [11, 23], "inam": 11, "happen": [11, 12, 15, 20], "06": [11, 22], "24": [11, 26], "rel": [11, 12, 25], "latest_scratch": 11, "depth": 11, "cat": [11, 25], "cherri": 11, "env": [11, 25], "config": [11, 25, 29, 30, 31, 32], "install_tre": [11, 25], "exactli": [11, 18], "minimum": [11, 17], "brief": [11, 13, 17, 18], "There": [11, 12, 14, 18, 30], "dedic": 11, "slack": 11, "spackpm": 11, "invit": 11, "visit": 11, "io": [11, 12], "regard": 11, "discuss": [11, 15], "doe": [11, 18, 22], "been": [11, 14, 17, 28], "sinc": [11, 12, 17, 18, 22, 23, 25, 32], "would": [11, 12, 17, 18, 22, 27, 29, 32], "entail": 11, "spec": [11, 22, 25], "il": 11, "rootdict": 11, "concret": [11, 22, 25], "vdwx2aq": 11, "16": [11, 22], "gcc": [11, 25], "9": [11, 20, 22], "ipo": [11, 22], "jar": 11, "build_typ": [11, 22], "relwithdebinfo": [11, 22], "cxxstd": [11, 22], "17": [11, 22, 25, 26], "arch": [11, 22], "linux": [11, 22], "ubuntu20": [11, 22], "04": [11, 20, 22], "skylak": 11, "utzbuq7": 11, "doc": [11, 22, 27], "ncurs": [11, 22], "openssl": [11, 22], "ownlib": [11, 22], "qt": [11, 22], "1c540040c7e203dd8e27aa20345ecb07fe06570d56410a24a266ae570b1c4c39": 11, "bf695e3febb222da2ed94b3beea600650e4318975da90e4a71d6f31a6d5d8c3d": 11, "pljbs5a": 11, "sio": 11, "builtin_zlib": 11, "alreadi": [11, 12, 17, 18, 22, 23, 25, 28], "yet": [11, 17, 18, 22, 32], "ilcsoft": [11, 17, 28, 29, 32], "fulfil": 11, "full": [11, 18, 32], "stage": 11, "end": [11, 14, 29, 32], "7dovpqn3kscbg672ham5wcqro7lg45gh": 11, "00": 11, "62": 11, "total": [11, 30], "home": [11, 18, 22], "tmadlen": 11, "specifi": [11, 18, 32], "cannot": [11, 14, 17, 22, 25], "arbitrari": [11, 14, 17], "necessarili": 11, "cours": [11, 12, 32], "encourag": 11, "useabl": 11, "desir": [11, 15, 17, 18, 28], "nice": 11, "downstream": 11, "far": [11, 18], "concern": 11, "realli": 11, "fact": [11, 18], "manifest": 11, "lv": 11, "yield": 11, "7dovpqn": 11, "dev_path": 11, "part": [11, 14, 15, 18, 21, 29, 31, 32], "hash": [11, 24], "affect": 11, "specif": [11, 14, 22], "syntax": 11, "uninstal": 11, "again": [11, 14, 17, 18, 28, 32], "becaus": [11, 12, 18], "overwrit": 11, "dealt": 11, "easili": [11, 25], "achiev": [11, 13, 18, 30, 31], "until": 11, "proper": 11, "scheme": 11, "j4": 11, "afterward": 11, "locat": [11, 29, 30], "regist": [11, 22], "databas": 11, "trick": 11, "back": [11, 18], "chain": [11, 32], "recompil": 11, "artifact": 11, "success": [11, 12, 30], "return": [11, 12, 18], "type": [11, 12, 14, 17, 30], "exit": [11, 18], "simultan": 11, "doesn": 11, "scale": [11, 21], "definit": [11, 12], "20": [11, 26, 32], "davix": 11, "gsl": 11, "math": 11, "memstat": 11, "minuit": 11, "mlp": 11, "mysql": 11, "opengl": 11, "postgr": 11, "pythia6": 11, "pythia8": [11, 22, 31], "qt4": 11, "r": [11, 21, 26, 30], "root7": 11, "rootfit": 11, "rpath": 11, "shadow": 11, "sqlite": 11, "ssl": 11, "tabl": 11, "tbb": [11, 30], "thread": [11, 12, 18, 22, 30], "tmva": 11, "unuran": 11, "vc": 11, "vdt": 11, "vmc": 11, "x": [11, 31], "xrootd": 11, "22af3471f3fd87c0fe8917bf9c811c6d806de6c8b9867d30a1e3d383a1b929d7": 11, "geant4": [11, 22], "heppdt": 11, "hepmc": [11, 22], "10": [11, 12, 22, 26, 28, 29, 30], "tricktrack": 11, "pyyaml": 11, "jinja2": [11, 18], "evtgen": [11, 22], "view": [11, 22, 25], "true": [11, 28, 30], "variant": 11, "edm4hep_devel": 11, "devel": 11, "p": [11, 18, 25], "immedi": 11, "state": [11, 12, 18, 22, 32], "properli": [11, 12], "straight": [11, 18, 32], "base": [11, 12, 15, 17, 18, 32], "disadvantag": 11, "gain": 11, "abil": 11, "256": 11, "optim": [11, 22, 30], "decent": 11, "too": [11, 15], "deep": 11, "down": [11, 18], "impli": 11, "frequent": 11, "relink": 11, "lot": [11, 28], "nevertheless": [11, 18], "usabl": [11, 14, 30], "briefli": [11, 18], "mainli": [11, 13, 18], "whether": [11, 18, 25], "rest": [11, 12, 32], "veri": [11, 12, 14, 17, 18, 24, 25, 27, 32], "turn": [11, 18], "depen": 11, "suppos": 11, "fals": [11, 16, 17, 29], "previous": [11, 17, 32], "field": 11, "tell": [11, 12, 18], "var": 11, "absolut": 11, "aidasoft": [11, 18], "development_env_packag": 11, "enough": [11, 18, 22], "either": [11, 14, 17, 22, 29], "easiest": [11, 12, 14, 17, 31, 32], "among": [11, 18], "arg": [11, 15], "l": [11, 32], "realiz": [11, 18, 25], "broke": 11, "defin": [11, 12, 14, 17, 18, 29], "live": [11, 18], "insid": [11, 12, 17, 18], "could": [11, 12, 17, 32], "f": [11, 23, 25], "inde": 11, "along": 11, "broadwel": [11, 22], "m5khm2w": 11, "seen": 11, "care": [12, 18], "servic": [12, 15, 30], "relationship": 12, "util": [12, 31], "almost": [12, 17, 18, 32], "seamlessli": 12, "design": [12, 13, 14, 18, 27], "enforc": [12, 22], "constraint": 12, "quicker": 12, "intern": [12, 14, 15, 17, 18, 26], "benefit": 12, "being": [12, 14, 18, 22, 32], "trivial": 12, "ourselv": 12, "easi": [12, 18, 25], "templat": [12, 18], "k4": 12, "ideal": [12, 23], "know": [12, 27], "detail": [12, 14, 15, 16, 18, 28, 32], "k4testfwcor": 12, "createexampleeventdata": 12, "straightforward": 12, "class": [12, 17], "inherit": [12, 18], "member": [12, 18, 30], "none": [12, 17, 22, 28, 30], "developkit": 12, "03a": 12, "consum": [12, 14], "transform": 12, "multitransform": 12, "structur": [12, 22], "precis": 12, "struct": [12, 14, 18], "gaudialg": 12, "h": [12, 14, 18, 31], "baseclass_t": 12, "baseclass": 12, "exampletransform": 12, "colltype_out": 12, "colltype_in": 12, "std": [12, 18], "string": [12, 17, 22], "isvcloc": 12, "svcloc": 12, "overrid": [12, 22], "magic": 12, "modifi": [12, 18, 25, 29], "signatur": 12, "mcparticlecollect": [12, 18], "leav": 12, "slightli": [12, 17, 18, 28], "complic": 12, "tupl": 12, "outputclass1": 12, "outputclass2": 12, "aren": 12, "void": [12, 18], "reach": 12, "constructor": [12, 18], "keyvalu": 12, "save": 12, "inputcollect": 12, "mcparticl": [12, 14, 17, 18, 28, 32], "outputcollect": 12, "newmcparticl": 12, "possibli": 12, "valu": [12, 17, 22, 30, 32], "bundl": [12, 14, 25], "enclos": 12, "bracket": 12, "examplemultitransform": 12, "outputcollection1": 12, "outputcollection2": 12, "simtrackerhit": 12, "outputcollection3": 12, "usefulcollect": 12, "auto": [12, 14, 18], "coll_out": 12, "particl": [12, 14, 18, 26, 28], "new_particl": 12, "mutablemcparticl": [12, 18], "setpdg": 12, "getpdg": 12, "setgeneratorstatu": 12, "getgeneratorstatu": 12, "setsimulatorstatu": 12, "getsimulatorstatu": 12, "setcharg": 12, "getcharg": 12, "settim": 12, "gettim": 12, "setmass": 12, "getmass": 12, "push_back": [12, 18], "make_tupl": 12, "move": [12, 18, 23, 30], "collection1": 12, "collection2": 12, "k4fwcoretest": 12, "examplefunctionaltransform": 12, "applicationmgr": [12, 15, 17, 28, 29, 30, 32], "podiooutput": [12, 15, 30, 32], "podioinput": [12, 15, 28, 30, 32], "editor": 12, "analysi": 12, "undefin": 12, "podioev": 12, "eventdatasvc": [12, 15, 28, 29, 30, 32], "output_k4test_exampledata_produc": 12, "inp": [12, 28], "select": [12, 15, 17, 25], "filenam": [12, 15, 32], "output_k4test_exampledata_transform": 12, "outputcommand": [12, 15, 32], "relev": [12, 18, 22], "learn": [12, 32], "object": [12, 14, 18], "topalg": [12, 28, 30], "evtsel": [12, 28, 30], "evtmax": [12, 28, 29, 30], "extsvc": [12, 15, 28, 30], "outputlevel": [12, 28, 29, 30, 32], "last": [12, 18, 32], "maximum": 12, "That": 12, "extra": 12, "warn": [12, 14, 17, 20, 30], "occas": 12, "place": 12, "those": [12, 18], "statuscod": 12, "rememb": [12, 32], "statu": [12, 26], "crash": [12, 14], "myalgorithm": 12, "gnu": 12, "debugg": 12, "invok": [12, 14, 22], "attach": [12, 17, 26, 28, 32], "load": [12, 22, 25], "continu": [12, 18], "consol": 12, "interrupt": 12, "ctrl": 12, "c": [12, 18, 28], "around": 12, "keyword": 12, "mutabl": [12, 18], "caus": 12, "wasn": 12, "Of": 12, "unless": [12, 29], "safe": [12, 18, 22, 30], "longer": [12, 18, 23], "wors": 12, "wrong": 12, "written": [12, 18], "substitut": 12, "certain": [13, 14, 15], "within": [13, 17, 18, 30, 31, 32], "aim": [13, 32], "lcio2edm4hep": [14, 17], "slcio": [14, 17, 28, 29, 32], "lcevent": 14, "put": [14, 17, 22, 23, 25, 28], "categori": [14, 18], "major": [14, 17, 18, 31], "effect": [14, 15], "wherea": 14, "assumpt": [14, 15], "ensur": [14, 22], "potenti": [14, 28], "come": [14, 17, 18, 20], "form": [14, 17, 18], "third": 14, "compris": [14, 21], "superset": 14, "format": [14, 17, 18, 29, 31, 32], "setspacepoint": 14, "trackerhit": 14, "recomctruthlink": [14, 15, 32], "check_missing_col": 14, "minim": [14, 15, 17], "pnf": 14, "desi": 14, "prod": 14, "mc": [14, 15, 18], "2020": [14, 26], "rec": [14, 32], "250": 14, "seta": [14, 18], "higg": 14, "ild_l5_o2_v02": 14, "v02": 14, "02": [14, 18], "01": 14, "00015671": 14, "000": 14, "rv02": [14, 18], "sv02": [14, 18], "mild_l5_o2_v02": 14, "e250": [14, 18], "i402005": 14, "pe3e3h": 14, "el": [14, 18], "n000_002": 14, "d_rec_00015671_493": 14, "fromtyp": 14, "totyp": 14, "correct": [14, 24], "determin": [14, 30], "skip": [14, 17], "mechan": [14, 17, 22], "colltypefil": 14, "overal": 14, "resolv": [14, 17, 32], "fill": [14, 18], "convertcollect": 14, "dispatch": 14, "store": [14, 17, 18, 28], "lccollect": 14, "map": [14, 17, 28], "dure": [14, 17, 22, 29], "lcioedmtypemap": 14, "resolverel": 14, "obvious": [14, 18], "fillsubset": 14, "handlesubsetcol": 14, "associationcollect": 14, "createassoci": 14, "convertev": 14, "convertobjectparamet": 14, "small": 14, "shine": 14, "calohitcontribut": [14, 18], "simcalorimeterhit": [14, 17], "createcalohitcontribut": 14, "separ": [14, 18, 23], "eventhead": [14, 32], "eventheadercollect": 14, "k4lcio2edm4hepconv": 14, "counterpart": 14, "typemap": 14, "edmcollect": 14, "convertreconstructedparticl": 14, "recoparticl": 14, "particleid": 14, "facil": 15, "much": 15, "familiar": [15, 17], "snippet": [15, 17], "runnabl": 15, "whenev": 15, "instanti": [15, 17, 32], "evtsvc": [15, 28, 29, 32], "extern": [15, 18, 21, 22], "my_output": 15, "eventstor": [15, 30], "must": [15, 23, 30], "target": [15, 17, 23], "pattern": 15, "apart": 15, "metadata": 15, "highest": 15, "reco": [15, 18], "mcparticlesskim": [15, 32], "pandorapfo": [15, 32], "extend": 16, "parsearg": 16, "parser": 16, "add_argu": 16, "trackingonli": 16, "action": 16, "store_tru": 16, "my_opt": 16, "parse_known_arg": 16, "behind": [16, 18], "scene": 16, "normal": [16, 17, 18], "argpars": 16, "argumentpars": 16, "mind": 16, "parse_arg": 16, "former": 17, "linear": 17, "collid": [17, 26], "latter": [17, 18, 29], "studi": [17, 26], "gradual": 17, "migrat": 17, "bare": 17, "modif": 17, "processortyp": [17, 28], "attribut": 17, "pars": [17, 22], "statmonitoralg": 17, "statusmonitor": 17, "howoften": 17, "int": [17, 18], "world": [17, 18], "lcioevent": [17, 30, 32], "inputfile1": 17, "inputfile2": 17, "lciooutputprocessor": [17, 30], "output_dst": 17, "dropcollectionnam": 17, "dropcollectiontyp": 17, "convertmarlinsteeringtogaudi": [17, 28, 29, 32], "statement": [17, 32], "trackingdigi": 17, "inputfil": [17, 18, 29, 32], "constant": [17, 32], "somefancyconst": 17, "begin": 17, "condit": 17, "tag": 17, "principl": [17, 18], "At": [17, 18, 29], "moment": [17, 20], "basi": 17, "addition": [17, 22], "static": [17, 22], "partial": 17, "alglist": [17, 28, 29, 30, 32], "uncom": [17, 29], "lcioinputfil": [17, 29], "retriev": [17, 18], "o": [17, 18, 22, 29, 32], "gauditool": 17, "lcio2edm4heptool": [17, 30, 32], "edm4hep2lciotool": [17, 28, 30, 32], "equip": 17, "edm4hep2lcioconv": [17, 32], "edm4hep2lcio": [17, 28], "lcio2edm4hepconv": [17, 32], "wrappedprocalg": 17, "processortowrap": 17, "account": 17, "direct": [17, 18], "confus": 17, "transient": 17, "higher": 17, "granular": 17, "collnamemap": [17, 28, 32], "convertal": [17, 28], "hand": [17, 27], "toward": [18, 26], "knowledg": 18, "web": [18, 23], "diagrammat": 18, "broadli": 18, "arrow": 18, "depict": 18, "black": 18, "purpl": 18, "ish": 18, "flavor": 18, "onetoonerel": 18, "onetomanyrel": 18, "hierarchi": 18, "mother": 18, "daughter": 18, "vice": [18, 32], "versa": [18, 32], "hold": 18, "connect": [18, 28], "contrast": [18, 24], "involv": 18, "throughout": 18, "datatyp": 18, "click": 18, "jump": [18, 28], "educ": 18, "index": 18, "expand": 18, "namespac": [18, 22], "calohitcontributioncollect": 18, "calohitcontributioncollectiondata": 18, "calohitcontributioncollectioniter": 18, "calohitcontributiondata": 18, "calohitcontributionmutablecollectioniter": 18, "calohitcontributionobj": 18, "calohitcontributionsioblock": 18, "mutablecalohitcontribut": 18, "mark": 18, "bold": 18, "truli": 18, "visibl": 18, "helper": 18, "ever": 18, "style": 18, "herb": 18, "sutter": 18, "blog": 18, "digest": 18, "summari": 18, "purpos": [18, 28], "slight": 18, "detour": 18, "bring": 18, "arriv": [18, 28], "toolkit": 18, "further": [18, 25, 32], "context": 18, "effici": [18, 21, 24], "high": [18, 26], "gori": 18, "implic": 18, "inspect": 18, "valid": 18, "engin": 18, "perform": [18, 29], "autom": 18, "advantag": 18, "repetit": 18, "task": 18, "themselv": 18, "deal": 18, "roll": [18, 23], "regener": 18, "goal": 18, "favor": 18, "composit": 18, "plain": 18, "old": 18, "pod": 18, "wherev": 18, "emploi": 18, "memori": [18, 32], "lightweight": 18, "xyzcollect": 18, "mutablexyz": 18, "xyzobj": 18, "bottom": [18, 29], "xyzdata": 18, "exact": [18, 22], "treat": [18, 22, 23], "worri": 18, "ineffici": 18, "reconstructedparticlecollect": 18, "p2": 18, "loop": [18, 30], "vtx": 18, "getstartvertex": 18, "vertex": 18, "gettrack": 18, "squint": 18, "ignor": 18, "pyroot": 18, "len": 18, "pretti": 18, "rule": 18, "vectormemb": 18, "stick": 18, "front": 18, "capit": 18, "letter": 18, "vector3f": 18, "momentum": [18, 22], "gev": [18, 22, 28], "getmomentum": 18, "nuanc": 18, "appli": 18, "method": [18, 30], "setmomentum": 18, "addto": 18, "addtodaught": 18, "underli": 18, "reason": 18, "complex": 18, "dive": 18, "quit": 18, "deepish": 18, "beyond": 18, "scope": [18, 25], "immut": 18, "te": 18, "independ": 18, "implicitli": 18, "implicit": 18, "print": [18, 31], "cout": 18, "getenergi": 18, "printemut": 18, "mutp": 18, "setenergi": 18, "14": [18, 22], "due": [18, 23], "break": [18, 20], "No": 18, "muon": [18, 31], "larger": 18, "setsubsetcollect": 18, "transpar": 18, "aggreg": 18, "meta": 18, "interv": 18, "less": 18, "reflect": 18, "introduc": 18, "infer": 18, "requir": [18, 28], "complain": 18, "ownership": 18, "signal": 18, "left": [18, 28], "unspecifi": 18, "circumst": 18, "match": 18, "rootframeread": 18, "reader": [18, 32], "rootlegacyread": 18, "past": 18, "rootread": 18, "obsolet": [18, 25], "deprec": [18, 22], "soon": [18, 20], "concept": [18, 28, 32], "hybrid": 18, "interest": [18, 22, 32], "low": 18, "next": [18, 32], "construct": 18, "openfil": 18, "some_file_containing_edm4hep_data": 18, "size_t": 18, "getentri": 18, "readnextentri": 18, "stuff": 18, "root_io": 18, "legacyread": 18, "backend": 18, "interpret": 18, "caveat": 18, "flat": 18, "ntupl": 18, "workarea": 18, "mild_l5_o1_v02": 18, "i402003": 18, "pe2e2h": 18, "n000": 18, "d_dstm_15089_0_edm4hep": 18, "peek": 18, "synopsi": 18, "stdout": 18, "posit": 18, "comma": 18, "inclus": 18, "rang": 18, "element": 18, "ascii": 18, "choos": [18, 25, 32], "siolegacyread": 18, "everi": [20, 24], "month": 20, "demand": 20, "cento": 20, "almalinux": 20, "ubuntu": 20, "22": 20, "fairli": [21, 24], "scientif": 21, "regularli": 21, "deploi": [21, 22, 24], "recip": 21, "known": 22, "workaround": [22, 32], "invoc": 22, "degre": 22, "decis": 22, "estim": 22, "long": 22, "proxi": 22, "solv": 22, "spit": 22, "solut": 22, "were": [22, 23, 32], "12": 22, "criteria": 22, "prioriti": 22, "criterion": 22, "tobuild": 22, "reus": 22, "weight": 22, "non": [22, 30], "prefer": 22, "8": 22, "11": [22, 25, 26], "mismatch": 22, "13": 22, "156": 22, "15": 22, "165": 22, "44": 22, "whizard": [22, 32], "fastjet": 22, "latex": 22, "lhapdf": 22, "openloop": 22, "openmp": 22, "hepmc3": 22, "rootio": 22, "1c54004": 22, "bf695e3": 22, "libtirpc": 22, "krb5": 22, "19": 22, "bison": 22, "diffutil": 22, "libiconv": 22, "m4": 22, "sigsegv": 22, "3877ab5": 22, "fc9b616": 22, "perl": 22, "30": 22, "cpanm": 22, "gettext": 22, "21": [22, 26], "bzip2": 22, "curs": 22, "libunistr": 22, "libxml2": 22, "tar": 22, "xz": 22, "pic": 22, "pkgconf": 22, "zlib": 22, "0d38234": 22, "symlink": 22, "termlib": 22, "abi": 22, "zip": 22, "pigz": 22, "1f": 22, "cert": 22, "mozilla": 22, "ocaml": 22, "forc": 22, "306": 22, "hdf5": 22, "madgraph5amc": 22, "mpich": 22, "openmpi": 22, "rivet": 22, "length": 22, "mm": 22, "rsync": 22, "alradi": 22, "hard": 22, "preced": 22, "detect": 22, "perfectli": 22, "varieti": 22, "machin": [22, 23, 25, 30, 32], "bundlepackag": 22, "investig": [22, 23], "simplest": 22, "filesystem": 22, "usr": 22, "simplifi": 22, "thu": [22, 23], "platform": [22, 23, 25], "gracefulli": 22, "ongo": 22, "discourag": 22, "strenght": 22, "smoothli": 22, "publish": 22, "axv": 22, "inplac": 22, "compress": 22, "stricthostkeycheck": 22, "gssapiauthent": 22, "ye": 22, "gssapitrustdn": 22, "spackag": [22, 23, 24], "omit": [22, 28], "preserv": 22, "expos": [22, 30], "gitlab": 22, "sft": [22, 25], "cc": 22, "cling": 22, "17488": 22, "difficulti": 23, "reloc": 23, "eo": 23, "space": 23, "k": 23, "www": 23, "spack_build": 23, "mirror": 23, "lcg": [23, 25], "branchnam": 23, "indic": [23, 29, 30], "contrib": [23, 25], "subdirectori": 23, "permiss": 23, "subscrib": 23, "egroup": 23, "cernbox": 23, "writer": 23, "m": 23, "hour": 23, "search": [23, 25], "serv": 23, "quickli": 24, "stabl": 24, "typic": 24, "head": 24, "rebuild": 24, "dai": 24, "infrequ": 24, "setup_clingo_centos7": 25, "client": 25, "oss": 25, "bootstrap": 25, "clingo": 25, "suitabl": 25, "kept": 25, "therefor": 25, "variat": 25, "clang": 25, "compat": 25, "essenti": [25, 31], "ci_setup_spack": 25, "global": [25, 29], "itself": 25, "hint": 25, "nudg": 25, "With": [25, 28, 32], "ship": [25, 31], "box": 25, "cp": [25, 29], "eot": 25, "spackages6": 25, "site": 25, "zotero": 26, "group": 26, "item": 26, "carcel": 26, "juan": 26, "miguel": 26, "juli": 26, "indico": 26, "1301872": 26, "5474076": 26, "2682457": 26, "4653446": 26, "carceller_key4hep_spack_2023": 26, "pdf": 26, "ep": 26, "meet": 26, "june": 26, "1253565": 26, "5265910": 26, "2591081": 26, "4628747": 26, "carceller_key4hep_20230621": 26, "volkl": 26, "valentin": 26, "ia": 26, "energi": [26, 28], "physic": [26, 31], "2021": 26, "januari": 26, "971970": 26, "timet": 26, "153": 26, "madlen": 26, "thoma": 26, "turnkei": 26, "xxvii": 26, "cracow": 26, "epiphani": 26, "confer": 26, "934666": 26, "4154229": 26, "2168411": 26, "3660367": 26, "key4hep_epiphany2021_cracow": 26, "helsen": 26, "clement": 26, "detector": [26, 28, 29, 31, 32], "4154228": 26, "gani": 26, "gerardo": 26, "ust": 26, "hk": 26, "shared_doc": 26, "202001hep": 26, "workshop": 26, "exp": 26, "20200117_1038_am_gerri_gani": 26, "sailer": 26, "andr\u00e9": 26, "joint": 26, "charm": 26, "tau": 26, "factori": 26, "septemb": 26, "2019": 26, "rich2018": 26, "180": 26, "151": 26, "247": 26, "190924_sailer_softwar": 26, "comput": 26, "nuclear": 26, "773049": 26, "3474763": 26, "1938664": 26, "3213633": 26, "191105_sailer_key4hep": 26, "mato": 26, "pere": 26, "clicdp": 26, "august": 26, "28": 26, "792656": 26, "3536473": 26, "1898480": 26, "3132881": 26, "key4hep_clicdp_meet": 26, "session": 27, "incomplet": 27, "accept": 27, "suggest": [27, 32], "geometri": [27, 28], "inter": 27, "parallel": 27, "ced": 28, "cedview": 28, "dispali": 28, "self": 28, "clicperform": [28, 29], "ddsim": [28, 29, 32], "gun": 28, "photon": 28, "illustr": 28, "creation": 28, "minut": [28, 32], "steeringfil": [28, 29, 32], "clicconfig": [28, 29], "clic_steer": [28, 29], "compactfil": [28, 29, 32], "k4geo": [28, 29], "compact": [28, 29, 32], "clic_o3_v14": [28, 29], "enablegun": 28, "uniform": 28, "gamma": 28, "outputfil": [28, 29, 32], "gamma_10gev_edm4hep": 28, "numberofev": [28, 29], "ddcedview": 28, "wrapper": 28, "event_displai": 28, "modul": 28, "inputread": 28, "append": [28, 29, 30, 32], "initializedd4hep": [28, 29], "myinitializedd4hep": 28, "dd4hepxmlfil": [28, 29], "visualis": 28, "clic_o3_v06_c": 28, "mycedview": 28, "edmconvtool": 28, "applicationmanag": 28, "piec": 28, "glced": 28, "server": 28, "ced2go": 28, "tmp": 28, "ced2go_": 28, "_steer": 28, "exchang": 28, "pitfal": 28, "accordingli": 28, "_edm4hep": 29, "ttbar_edm4hep": 29, "yyxyev_000": 29, "stdhep": [29, 31], "ttbar": 29, "clicreconstruct": [29, 30], "initdd4hep": 29, "maxrecordnumb": 29, "overlayfals": 29, "trackingconform": 29, "sed": [29, 32], "myconformaltrack": 29, "clonesandsplittracksfind": 29, "renamecollect": 29, "lcgeo": 29, "wont": 29, "clicrec_e4h_input": 29, "marlindd4hep": 29, "k4simgeant4": 29, "geosvc": 29, "trackingcellidencodingsvc": 29, "svclist": 29, "geoservic": 29, "clic_o3_v15": 29, "enablegeant4geo": 29, "cellidsvc": 29, "encodingstringparameternam": 29, "globaltrackerreadoutid": 29, "geosvcnam": 29, "lcioeventoutput": 30, "whiteboard": 30, "isfirstev": 30, "processev": 30, "multi": 30, "intel": 30, "hood": 30, "intra": 30, "hivewhiteboard": 30, "hiveslimeventloopmgr": 30, "avalancheschedulersvc": 30, "sequenc": 30, "hardwar": 30, "eventslot": 30, "schedul": 30, "flight": 30, "decid": [30, 32], "evtslot": 30, "slimeventloopmgr": 30, "schedulernam": 30, "threadpools": 30, "seq": 30, "eventloop": 30, "messagesvctyp": 30, "inertmessagesvc": 30, "cardin": 30, "gaudisequenc": 30, "sequenti": 30, "applic": 30, "alg1": 30, "alg2": 30, "alg3": 30, "alg4": 30, "algo": 30, "createviewseq": 30, "mode": 30, "clicrec_lcio_mt": 30, "fccee": 31, "zh": 31, "mu": 31, "z": 31, "decai": 31, "pair": 31, "opposit": 31, "charg": 31, "anyth": [31, 32], "card": 31, "wget": [31, 32], "raw": [31, 32], "githubusercont": [31, 32], "spring2021": 31, "p8_nobes_ee_zh_ecm240": 31, "cmd": 31, "delphespythia8_edm4hep": 31, "delphespythia8": 31, "contrari": 31, "delphes_dir": 31, "delphes_card_idea": 31, "tcl": 31, "edm4hep_output_config": 31, "delphes_events_edm4hep": 31, "parameter": 31, "delphesstdhep_edm4hep": 31, "delphesroot_edm4hep": 31, "delpheshepmc": 31, "config_fil": 31, "output_config_fil": 31, "output_fil": 31, "input_fil": [31, 32], "todo": 31, "exercis": 32, "sim": 32, "conceptu": 32, "haven": 32, "remaind": 32, "key4hep_tut_ild_reco": 32, "minor": 32, "though": 32, "ildconfig": 32, "standardconfig": 32, "product": 32, "gaudi_ild_reco": 32, "zh_mumu": 32, "lcgeo_dir": 32, "ild_l5_v02": 32, "ddsim_steer": 32, "zh_mumu_sim": 32, "meantim": 32, "bulk": 32, "marlinstdreco": 32, "adjust": 32, "detectormodel": 32, "ild_l5_o1_v02": 32, "marlinstdrecopars": 32, "dict": 32, "forget": 32, "exclud": 32, "bgoverlayww": 32, "bgoverlaybb": 32, "bgoverlaybw": 32, "bgoverlaywb": 32, "popul": 32, "pairbgoverlai": 32, "somewher": 32, "second": 32, "roughli": 32, "els": 32, "standardreco_": 32, "dst": 32, "pfoanalysi": 32, "aida": 32, "outputbasenam": 32, "resp": 32, "sake": 32, "myaidaprocessor": 32, "mypfoanalysi": 32, "parseconst": 32, "unchang": 32, "beamcalcollect": 32, "beamcalcollectioncontribut": 32, "ecalbarrelschitseven": 32, "ecalbarrelschitsevencontribut": 32, "ecalbarrelschitsodd": 32, "ecalbarrelschitsoddcontribut": 32, "ecalbarrelsihitseven": 32, "ecalbarrelsihitsevencontribut": 32, "ecalbarrelsihitsodd": 32, "ecalbarrelsihitsoddcontribut": 32, "ecalendcapringcollect": 32, "ecalendcapringcollectioncontribut": 32, "ecalendcapschitseven": 32, "ecalendcapschitsevencontribut": 32, "ecalendcapschitsodd": 32, "ecalendcapschitsoddcontribut": 32, "ecalendcapsihitseven": 32, "ecalendcapsihitsevencontribut": 32, "ecalendcapsihitsodd": 32, "ecalendcapsihitsoddcontribut": 32, "ftdcollect": 32, "hcalbarrelregcollect": 32, "hcalbarrelregcollectioncontribut": 32, "hcalbarrelrpchit": 32, "hcalbarrelrpchitscontribut": 32, "hcalecringrpchit": 32, "hcalecringrpchitscontribut": 32, "hcalendcapringcollect": 32, "hcalendcapringcollectioncontribut": 32, "hcalendcaprpchit": 32, "hcalendcaprpchitscontribut": 32, "hcalendcapscollect": 32, "hcalendcapscollectioncontribut": 32, "lhcalcollect": 32, "lhcalcollectioncontribut": 32, "lumicalcollect": 32, "lumicalcollectioncontribut": 32, "setcollect": 32, "sitcollect": 32, "tpccollect": 32, "tpclowptcollect": 32, "tpcspacepointcollect": 32, "vxdcollect": 32, "yokebarrelcollect": 32, "yokebarrelcollectioncontribut": 32, "yokeendcapscollect": 32, "yokeendcapscollectioncontribut": 32, "edm4hepoutput": 32, "zh_mumu_reco": 32, "num": 32, "glori": 32, "tweak": 32, "tier": 32}, "objects": {}, "objtypes": {}, "objnames": {}, "titleterms": {"contributor": 1, "code": [1, 8, 18], "conduct": 1, "contribut": [2, 8], "get": [2, 8, 18, 20], "start": [2, 7, 20], "softwar": [3, 7, 20], "call": 4, "logo": 4, "key4hep": [5, 6, 7, 9, 11, 13, 19, 20, 21, 25, 27, 29, 31], "content": [5, 9, 13, 19, 21], "extern": [5, 19], "link": [5, 19], "build": [6, 7, 11, 21, 24], "us": [6, 7, 11, 12, 17, 20, 22, 25, 29], "cmake": [6, 7], "For": [6, 11, 21], "develop": [6, 8, 9, 10, 11], "possibl": 6, "issu": 6, "packag": [6, 7, 10, 11, 22, 25], "have": [6, 8], "been": 6, "test": 6, "chang": [6, 7, 8], "differ": [6, 14], "commit": [6, 8], "branch": 6, "guid": [7, 8], "overview": [7, 8, 18], "quick": 7, "set": [7, 8, 11, 20, 22, 25, 28], "up": [7, 8, 11, 20, 22, 25, 28], "environ": [7, 11, 22, 25, 28], "run": [7, 18, 28, 30, 31, 32], "your": [7, 8], "local": [7, 8, 11], "instal": [7, 11, 20, 22, 25], "exampl": [7, 14, 30], "configur": [7, 17, 25], "runtim": [7, 22], "ctest": 7, "custom": [7, 16], "how": [7, 12, 13, 18, 30], "i": [7, 8, 18], "github": 8, "workflow": [8, 11, 22], "first": 8, "time": 8, "setup": [8, 11, 12, 31, 32], "git": 8, "gener": [8, 18], "ssh": 8, "kei": 8, "improv": 8, "experi": 8, "keep": 8, "repositori": [8, 22], "date": 8, "recommend": 8, "comment": 8, "clean": 8, "histori": 8, "pull": 8, "request": 8, "troubl": 8, "shoot": 8, "when": 8, "try": 8, "push": 8, "an": [8, 11, 28], "authent": 8, "error": 8, "clone": 8, "http": 8, "now": 8, "can": 8, "t": 8, "my": 8, "what": 8, "do": [8, 18], "need": [8, 18], "help": 8, "singl": [10, 11], "spack": [11, 22, 23, 24, 25], "version": 11, "dev": 11, "depend": [11, 22], "more": 11, "advanc": 11, "usag": [11, 14, 22, 24, 31], "multipl": 11, "other": [11, 31], "all": [11, 18], "ad": [11, 16], "anoth": 11, "write": [12, 15, 17, 18], "gaudi": [12, 15, 17, 28, 29, 30, 32], "algorithm": [12, 17], "function": [12, 14, 18], "walkthrough": 12, "The": [12, 15, 17, 18], "steer": [12, 17], "file": [12, 15, 17, 18, 28, 32], "initi": 12, "final": 12, "debug": 12, "gdb": 12, "avoid": 12, "const": 12, "oper": 12, "Tos": 13, "instruct": 13, "standalon": [14, 31], "convers": [14, 17], "from": [14, 18], "lcio": [14, 17, 29], "edm4hep": [14, 15, 18, 28, 29, 31, 32], "patch": 14, "miss": 14, "collect": [14, 15, 18], "fly": 14, "convert": [14, 17], "lcrelat": 14, "onli": [14, 15], "subset": [14, 15, 18], "librari": 14, "data": [14, 18, 22], "handl": 14, "relat": [14, 18], "entir": 14, "event": [14, 15, 17, 18, 28, 30], "paramet": 14, "subtl": 14, "between": 14, "reconstructedparticl": 14, "read": [15, 17, 18], "k4datasvc": 15, "argument": 16, "k4run": [16, 32], "wrap": 17, "marlin": [17, 29], "processor": 17, "marlinprocessorwrapp": 17, "automat": 17, "xml": 17, "limit": 17, "edm": [17, 18], "option": [17, 28, 32], "common": 18, "model": 18, "import": 18, "resourc": 18, "doxygen": 18, "api": 18, "document": 18, "diagram": 18, "associ": 18, "tabl": 18, "avail": 18, "type": 18, "navig": 18, "refer": 18, "page": 18, "why": 18, "ar": 18, "so": 18, "mani": 18, "class": 18, "them": 18, "some": 18, "util": 18, "podio": 18, "technic": [18, 22, 24], "infrastructur": 18, "which": [18, 22], "thing": 18, "three": 18, "layer": 18, "basic": 18, "valu": 18, "semant": 18, "guess": 18, "interfac": 18, "yaml": [18, 25], "definit": 18, "xyz": 18, "mutablexyx": 18, "frame": 18, "contain": 18, "put": 18, "root": 18, "layout": 18, "figur": 18, "out": 18, "legaci": 18, "dump": 18, "stack": [20, 29], "central": 20, "cvmf": [20, 22, 24], "librarian": 21, "further": 22, "topic": 22, "check": 22, "newli": 22, "requir": 22, "certain": 22, "variant": 22, "global": 22, "system": 22, "target": 22, "architectur": 22, "bundl": 22, "compil": [22, 25], "duplic": 22, "recip": [22, 25], "downstream": 22, "wrapper": 22, "lcg": 22, "releas": [22, 25], "gcc": 22, "buildcach": 23, "nightli": 24, "inform": [24, 29], "download": 25, "instanc": 25, "user": 25, "upstream": 25, "addit": 25, "talk": 26, "present": 26, "tutori": 27, "exercis": 27, "displai": 28, "input": [28, 29], "creat": [28, 32], "clic": 29, "simul": [29, 31, 32], "reconstruct": [29, 32], "through": 29, "k4marlinwrapp": [29, 30], "dd4hep": 29, "geometri": 29, "multithread": 30, "support": 30, "inter": 30, "parallel": 30, "delph": 31, "fast": 31, "output": 31, "prerequisit": 31, "execut": 31, "framework": 31, "rune": 32, "ild": 32, "adapt": 32}, "envversion": {"sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 60}, "alltitles": {"Contributor Code of Conduct": [[1, "contributor-code-of-conduct"]], "Contributing": [[2, "contributing"]], "Getting Started": [[2, "getting-started"]], "Software": [[3, "software"]], "Call for logos": [[4, "call-for-logos"]], "Key4hep": [[5, "key4hep"], [19, "key4hep"]], "Contents:": [[5, null], [9, null], [19, null], [21, null]], "External links:": [[5, null], [19, null]], "Building Key4hep using CMake: For Developers": [[6, "building-key4hep-using-cmake-for-developers"]], "Possible issues": [[6, "possible-issues"]], "Packages that have been tested": [[6, "packages-that-have-been-tested"]], "Changing to a different commit or branch": [[6, "changing-to-a-different-commit-or-branch"]], "CMake guide for Key4hep software": [[7, "cmake-guide-for-key4hep-software"]], "Overview": [[7, "overview"], [8, "overview"]], "Quick start into building Key4hep Software": [[7, "quick-start-into-building-key4hep-software"]], "Set up the environment": [[7, "set-up-the-environment"]], "Running CMake": [[7, "running-cmake"]], "Using your local installation": [[7, "using-your-local-installation"]], "CMake example packages": [[7, "cmake-example-packages"]], "Changing the CMake Configuration": [[7, "changing-the-cmake-configuration"]], "Runtime Environment": [[7, "runtime-environment"]], "CTest in Key4hep": [[7, "ctest-in-key4hep"]], "Customizing how CMake is run": [[7, "customizing-how-cmake-is-run"]], "Github workflow and contribution guide": [[8, "github-workflow-and-contribution-guide"]], "First time setup of git": [[8, "first-time-setup-of-git"]], "Generate and set up ssh keys for github": [[8, "generate-and-set-up-ssh-keys-for-github"]], "Improving your git experience": [[8, "improving-your-git-experience"]], "Development workflow": [[8, "development-workflow"]], "Keeping your local repository up to date": [[8, "keeping-your-local-repository-up-to-date"]], "Contributing code": [[8, "contributing-code"]], "Recommendations": [[8, "recommendations"]], "General recommendations": [[8, "general-recommendations"]], "Commit comments": [[8, "commit-comments"]], "Cleaning history": [[8, "cleaning-history"]], "Pull requests": [[8, "pull-requests"]], "Trouble-shooting": [[8, "trouble-shooting"]], "When I try to push to the repository, I get an authentication error": [[8, "when-i-try-to-push-to-the-repository-i-get-an-authentication-error"]], "I have cloned with https and now I can\u2019t push my changes, what do I do?": [[8, "i-have-cloned-with-https-and-now-i-can-t-push-my-changes-what-do-i-do"]], "Need help?": [[8, "need-help"]], "Developing Key4hep": [[9, "developing-key4hep"]], "Developing a single package": [[10, "developing-a-single-package"], [11, "developing-a-single-package"]], "Building Key4hep using Spack: For Developers": [[11, "building-key4hep-using-spack-for-developers"]], "Spack set up": [[11, "spack-set-up"]], "Installing a local version with dev-build": [[11, "installing-a-local-version-with-dev-build"]], "Using the local version as dependency": [[11, "using-the-local-version-as-dependency"]], "More advanced usage": [[11, "more-advanced-usage"]], "Developing multiple packages or dependencies of other packages": [[11, "developing-multiple-packages-or-dependencies-of-other-packages"]], "Using an environment to setup all dependencies": [[11, "using-an-environment-to-setup-all-dependencies"]], "Environments and a development workflow": [[11, "environments-and-a-development-workflow"]], "Adding another package to develop": [[11, "adding-another-package-to-develop"]], "Writing Gaudi Algorithms": [[12, "writing-gaudi-algorithms"]], "Gaudi": [[12, "gaudi"]], "Gaudi::Functional": [[12, "gaudi-functional"]], "Setup": [[12, "setup"], [32, "setup"]], "Walkthrough of Functional Algorithms": [[12, "walkthrough-of-functional-algorithms"]], "The steering file": [[12, "the-steering-file"]], "Initialize and finalize": [[12, "initialize-and-finalize"]], "Debugging: How to use GDB": [[12, "debugging-how-to-use-gdb"]], "Avoiding const in operator()": [[12, "avoiding-const-in-operator"]], "Key4hep How-Tos and Instructions": [[13, "key4hep-how-tos-and-instructions"]], "Contents": [[13, null]], "Standalone conversion from LCIO to EDM4hep": [[14, "standalone-conversion-from-lcio-to-edm4hep"]], "Patching missing collections on the fly": [[14, "patching-missing-collections-on-the-fly"]], "Example:": [[14, "example"]], "Converting LCRelation collections": [[14, "converting-lcrelation-collections"]], "Converting only a subset of collections": [[14, "converting-only-a-subset-of-collections"]], "Library usage of the conversion functions": [[14, "library-usage-of-the-conversion-functions"]], "Converting collection (data)": [[14, "converting-collection-data"]], "Handling relations": [[14, "handling-relations"]], "Handling of subset collections": [[14, "handling-of-subset-collections"]], "Handling of LCRelations": [[14, "handling-of-lcrelations"]], "Converting entire events": [[14, "converting-entire-events"]], "Converting Event parameters": [[14, "converting-event-parameters"]], "Subtle differences between LCIO and EDM4hep": [[14, "subtle-differences-between-lcio-and-edm4hep"]], "Example for a ReconstructedParticle Collection": [[14, "example-for-a-reconstructedparticle-collection"]], "Reading and writing EDM4hep files in Gaudi": [[15, "reading-and-writing-edm4hep-files-in-gaudi"]], "The k4DataSvc": [[15, "the-k4datasvc"]], "Reading events": [[15, "reading-events"]], "Writing events": [[15, "writing-events"]], "Writing only a subset of collections": [[15, "writing-only-a-subset-of-collections"]], "Adding custom arguments to k4run": [[16, "adding-custom-arguments-to-k4run"]], "Wrapping Marlin processors in Gaudi": [[17, "wrapping-marlin-processors-in-gaudi"]], "The MarlinProcessorWrapper Gaudi algorithm": [[17, "the-marlinprocessorwrapper-gaudi-algorithm"]], "Reading and writing LCIO events with Gaudi": [[17, "reading-and-writing-lcio-events-with-gaudi"]], "Automatic conversion of Marlin XML steering files": [[17, "automatic-conversion-of-marlin-xml-steering-files"]], "Limitations": [[17, "limitations"]], "Using the EDM converters": [[17, "using-the-edm-converters"]], "Configuration options": [[17, "configuration-options"]], "EDM4hep - The common event data model": [[18, "edm4hep-the-common-event-data-model"]], "Important resources": [[18, "important-resources"]], "Doxygen API documentation": [[18, "doxygen-api-documentation"]], "The overview diagram": [[18, "the-overview-diagram"]], "Relations": [[18, "relations"]], "Associations": [[18, "associations"]], "The table of available types": [[18, "the-table-of-available-types"]], "Navigating the doxygen reference page": [[18, "navigating-the-doxygen-reference-page"]], "Why are there so many classes and do I need all of them?": [[18, "why-are-there-so-many-classes-and-do-i-need-all-of-them"]], "Some utility functionality": [[18, "some-utility-functionality"]], "podio - The technical infrastructure on which things run": [[18, "podio-the-technical-infrastructure-on-which-things-run"]], "podio code generation": [[18, "podio-code-generation"]], "The three layers of podio": [[18, "the-three-layers-of-podio"]], "Basics of generated code - value semantics": [[18, "basics-of-generated-code-value-semantics"]], "Guessing the interface from the yaml definition": [[18, "guessing-the-interface-from-the-yaml-definition"]], "Why is there a XYZ and a MutableXYX?": [[18, "why-is-there-a-xyz-and-a-mutablexyx"]], "Writing function interfaces": [[18, "writing-function-interfaces"]], "Subset collections": [[18, "subset-collections"]], "The podio::Frame container": [[18, "the-podio-frame-container"]], "Getting collections from a Frame": [[18, "getting-collections-from-a-frame"]], "Putting a collection into a Frame": [[18, "putting-a-collection-into-a-frame"]], "Reading EDM4hep files": [[18, "reading-edm4hep-files"]], "ROOT file layout of podio generated EDMs": [[18, "root-file-layout-of-podio-generated-edms"]], "How do I figure out if a file is legacy?": [[18, "how-do-i-figure-out-if-a-file-is-legacy"]], "podio-dump": [[18, "podio-dump"]], "Getting started with Key4hep software": [[20, "getting-started-with-key4hep-software"]], "Setting up the Key4hep Software Stack": [[20, "setting-up-the-key4hep-software-stack"]], "Using a central installation on cvmfs": [[20, "using-a-central-installation-on-cvmfs"]], "Building Key4hep: For Librarians": [[21, "building-key4hep-for-librarians"]], "Spack Usage and Further Technical Topics": [[22, "spack-usage-and-further-technical-topics"]], "Checking which packages will be newly installed": [[22, "checking-which-packages-will-be-newly-installed"]], "Requiring certain variants globally": [[22, "requiring-certain-variants-globally"]], "System Dependencies": [[22, "system-dependencies"]], "Target Architectures": [[22, "target-architectures"]], "Bundle Packages and Environments": [[22, "bundle-packages-and-environments"]], "Setting Up Runtime Environments": [[22, "setting-up-runtime-environments"]], "Compiler Dependencies and Data Packages": [[22, "compiler-dependencies-and-data-packages"]], "Duplicating Recipes in Downstream Repositories": [[22, "duplicating-recipes-in-downstream-repositories"]], "CVMFS Installation Workflow": [[22, "cvmfs-installation-workflow"]], "Compiler Wrappers": [[22, "compiler-wrappers"]], "Spack-Installed LCG releases": [[22, "spack-installed-lcg-releases"]], "Using Spack-installed GCC": [[22, "using-spack-installed-gcc"]], "Spack Buildcaches": [[23, "spack-buildcaches"]], "Nightly Builds with Spack": [[24, "nightly-builds-with-spack"]], "Usage of the nightly builds on CVMFS": [[24, "usage-of-the-nightly-builds-on-cvmfs"]], "Technical Information": [[24, "technical-information"]], "Setting up Spack": [[25, "setting-up-spack"]], "Downloading a spack instance": [[25, "downloading-a-spack-instance"]], "Using Spack Environments": [[25, "using-spack-environments"]], "Using the key4hep-release-user environment": [[25, "using-the-key4hep-release-user-environment"]], "Configuring Spack": [[25, "configuring-spack"]], "Installing Spack": [[25, "installing-spack"]], "Installing the key4hep package recipes": [[25, "installing-the-key4hep-package-recipes"]], "Configuring packages.yaml": [[25, "configuring-packages-yaml"]], "Configuring upstreams.yaml": [[25, "configuring-upstreams-yaml"]], "Setting up additional compilers": [[25, "setting-up-additional-compilers"]], "Talks and Presentations": [[26, "talks-and-presentations"]], "Key4hep Tutorials": [[27, "key4hep-tutorials"]], "Exercises": [[27, null]], "Running an Event Display with EDM4hep input": [[28, "running-an-event-display-with-edm4hep-input"]], "Setting up an environment": [[28, "setting-up-an-environment"]], "Creating an input file": [[28, "creating-an-input-file"]], "Running the event display": [[28, "running-the-event-display"]], "Creating a Gaudi options file": [[28, "creating-a-gaudi-options-file"], [32, "creating-a-gaudi-options-file"]], "Using the Key4hep-Stack for CLIC Simulation and Reconstruction": [[29, "using-the-key4hep-stack-for-clic-simulation-and-reconstruction"]], "Simulation": [[29, "simulation"]], "Reconstruction": [[29, "reconstruction"], [32, "reconstruction"]], "Reconstruction with Marlin": [[29, "reconstruction-with-marlin"]], "Reconstruction with Gaudi through k4MarlinWrapper": [[29, "reconstruction-with-gaudi-through-k4marlinwrapper"]], "Reconstruction with LCIO input": [[29, "reconstruction-with-lcio-input"]], "Reconstruction with EDM4hep input": [[29, "reconstruction-with-edm4hep-input"]], "DD4hep Geometry Information": [[29, "dd4hep-geometry-information"]], "How to run multithreading with k4MarlinWrapper (Gaudi)": [[30, "how-to-run-multithreading-with-k4marlinwrapper-gaudi"]], "Running Gaudi with multithreading support": [[30, "running-gaudi-with-multithreading-support"]], "How to run with inter-event parallelism": [[30, "how-to-run-with-inter-event-parallelism"]], "Running example": [[30, "running-example"]], "Running Delphes fast simulation with EDM4hep output": [[31, "running-delphes-fast-simulation-with-edm4hep-output"]], "Setup and prerequisites": [[31, "setup-and-prerequisites"]], "Standalone executables": [[31, "standalone-executables"]], "Other standalone executables": [[31, "other-standalone-executables"]], "Usage in the Key4hep framework": [[31, "usage-in-the-key4hep-framework"]], "Runing ILD simulation and reconstruction": [[32, "runing-ild-simulation-and-reconstruction"]], "Running the simulation": [[32, "running-the-simulation"]], "Adapting the options file for EDM4hep": [[32, "adapting-the-options-file-for-edm4hep"]], "Running the reconstruction with k4run": [[32, "running-the-reconstruction-with-k4run"]]}, "indexentries": {}}) \ No newline at end of file diff --git a/setup-and-getting-started/README.html b/setup-and-getting-started/README.html new file mode 100644 index 0000000..58bed2c --- /dev/null +++ b/setup-and-getting-started/README.html @@ -0,0 +1,388 @@ + + + + + + + Getting started with Key4hep software — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Getting started with Key4hep software

+
+

Setting up the Key4hep Software Stack

+
+

Using a central installation on cvmfs

+

Two builds with the key4hep stack are distributed on cvmfs. The releases happen +every few months on demand (for example, if there is a new important feature or +a breaking change) and at the moment only CentOS 7 is supported (support for +AlmaLinux 9 and Ubuntu is coming soon). Run the following to set up the stack:

+
source /cvmfs/sw.hsf.org/key4hep/setup.sh
+
+
+

In addition, nightly builds for CentOS 7, AlmaLinux 9 and Ubuntu 22.04 with the +latest version of most of the packages are available:

+
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
+
+
+

The setup.sh script always points to the latest build and it will change +without warning. However, after sourcing the script some information will be +displayed with instructions on how to reproduce the current environment. Nightly +builds are intended for development and testing and they will be deleted after +some time from /cvmfs.

+
+
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/spack-build-instructions-for-librarians/README.html b/spack-build-instructions-for-librarians/README.html new file mode 100644 index 0000000..23b3014 --- /dev/null +++ b/spack-build-instructions-for-librarians/README.html @@ -0,0 +1,392 @@ + + + + + + + Building Key4hep: For Librarians — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Building Key4hep: For Librarians

+

Key4hep comprises a fairly large number of software and depends on even more externals, so some tooling is needed to efficiently build the whole software stack. The spack package manager can be used to build scientific software at scale, and is part of the Key4hep software R&D program.

+

A spack install of Key4hep is regularly deployed to /cvmfs/sw.hsf.org/, and can be used on lxplus/centos7 just by sourcing the following setup script:

+
source /cvmfs/sw.hsf.org/key4hep/setup.sh
+
+
+

In this page, the workflow to create this installation is documented.

+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/spack-build-instructions-for-librarians/spack-advanced.html b/spack-build-instructions-for-librarians/spack-advanced.html new file mode 100644 index 0000000..c11407f --- /dev/null +++ b/spack-build-instructions-for-librarians/spack-advanced.html @@ -0,0 +1,500 @@ + + + + + + + Spack Usage and Further Technical Topics — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Spack Usage and Further Technical Topics

+

This page collects a few known workarounds for issues and areas of development in spack. +Check also the issues in key4hep-spack for up-to-date information. +Additionally, we also provide a few more advanced invocations of spack commands that allow a certain degree of debugging of the decisions spack has made when installing a given package and its dependencies.

+
+

Checking which packages will be newly installed

+

When installing a package it might be interesting to estimate how long it will take to do so. +An important proxy for this is how many and which dependencies spack will install in order to build a package. +This can be done with the spack solve command, which invokes the concretizer and then spits out the solution that would be installed if the same arguments were passed to spack install, e.g.

+
spack solve -I
+
+
+
==> Best of 12 considered solutions.
+==> Optimization Criteria:
+  Priority  Criterion                                            Installed  ToBuild
+  1         number of input specs not concretized                        -        0
+  2         number of packages to build (vs. reuse)                      -        4
+  3         requirement weight                                           0        0
+  4         deprecated versions used                                     1        0
+  5         version weight                                               0        0
+  6         number of non-default variants (roots)                       0        0
+  7         preferred providers for roots                                0        0
+  8         default values of variants not being used (roots)            0        0
+  9         number of non-default variants (non-roots)                   3        0
+  10        preferred providers (non-roots)                              0        0
+  11        compiler mismatches                                          0        0
+  12        OS mismatches                                                0        0
+  13        non-preferred OS's                                           0        0
+  14        version badness                                            156        0
+  15        default values of variants not being used (non-roots)        1        0
+  16        non-preferred compilers                                      0        0
+  17        target mismatches                                            0        0
+  18        non-preferred targets                                      165       44
+
+ -   whizard@3.0.3%gcc@10.3.0~fastjet~latex~lcio~lhapdf~openloops~openmp+pythia8 hepmc=3 arch=linux-ubuntu20.04-x86_64
+[+]      ^hepmc3@3.2.4%gcc@10.3.0~interfaces~ipo~python~rootio build_type=RelWithDebInfo arch=linux-ubuntu20.04-x86_64
+[+]          ^cmake@3.16.3%gcc@10.3.0~doc+ncurses+ownlibs~qt build_type=RelWithDebInfo patches=1c54004,bf695e3 arch=linux-ubuntu20.04-x86_64
+ -       ^libtirpc@1.2.6%gcc@10.3.0 arch=linux-ubuntu20.04-x86_64
+ -           ^krb5@1.19.3%gcc@10.3.0+shared arch=linux-ubuntu20.04-x86_64
+[+]              ^bison@3.8.2%gcc@10.3.0 arch=linux-ubuntu20.04-x86_64
+[+]                  ^diffutils@3.8%gcc@10.3.0 arch=linux-ubuntu20.04-x86_64
+[+]                      ^libiconv@1.16%gcc@10.3.0 libs=shared,static arch=linux-ubuntu20.04-x86_64
+[+]                  ^m4@1.4.18%gcc@10.3.0+sigsegv patches=3877ab5,fc9b616 arch=linux-ubuntu20.04-x86_64
+[+]                  ^perl@5.30.0%gcc@10.3.0~cpanm+shared+threads arch=linux-ubuntu20.04-x86_64
+[+]              ^gettext@0.21%gcc@10.3.0+bzip2+curses+git~libunistring+libxml2+tar+xz arch=linux-ubuntu20.04-x86_64
+[+]                  ^bzip2@1.0.8%gcc@10.3.0~debug~pic+shared arch=linux-ubuntu20.04-x86_64
+[+]                  ^libxml2@2.9.13%gcc@10.3.0~python arch=linux-ubuntu20.04-x86_64
+[+]                      ^pkgconf@1.8.0%gcc@10.3.0 arch=linux-ubuntu20.04-x86_64
+[+]                      ^xz@5.2.5%gcc@10.3.0~pic libs=shared,static arch=linux-ubuntu20.04-x86_64
+[+]                      ^zlib@1.2.12%gcc@10.3.0+optimize+pic+shared patches=0d38234 arch=linux-ubuntu20.04-x86_64
+[+]                  ^ncurses@6.2%gcc@10.3.0~symlinks+termlib abi=none arch=linux-ubuntu20.04-x86_64
+[+]                  ^tar@1.30%gcc@10.3.0 zip=pigz arch=linux-ubuntu20.04-x86_64
+[+]              ^openssl@1.1.1f%gcc@10.3.0~docs~shared certs=mozilla arch=linux-ubuntu20.04-x86_64
+ -       ^ocaml@4.13.1%gcc@10.3.0+force-safe-string arch=linux-ubuntu20.04-x86_64
+[+]      ^pythia8@8.306%gcc@10.3.0~evtgen~fastjet~hdf5+hepmc+hepmc3~lhapdf~madgraph5amc~mpich~openmpi~python~rivet~root+shared arch=linux-ubuntu20.04-x86_64
+[+]          ^hepmc@2.06.11%gcc@10.3.0~ipo build_type=RelWithDebInfo length=MM momentum=GEV arch=linux-ubuntu20.04-x86_64
+[+]          ^rsync@3.1.3%gcc@10.3.0 arch=linux-ubuntu20.04-x86_64
+
+
+

The -I flag shows which packages are alrady installed. +spack solve also shows some information about all the things that were considered during concretization. It can also be used to dump more information on the concretization process. +Unfortunately, this information is rather hard to parse, and still a work in progress from the spack developers.

+
+
+

Requiring certain variants globally

+

spack can be configured using some configuration +files. Specifically +using packages.yaml which is read from the user directory, i.e. ~/.spack (or +/.spack/linux) can be used to enforce the value of certain default variants +globally. To solve the above problem it is enough to put the following into +packages.yaml:

+
packages:
+  all:
+  variants: cxxstd=17
+
+
+

It is still possible to override this for certain packages either by +individually configuring them in packages.yaml or via the command line which +take precedence over all configuration files.

+

In the Key4hep software stack build recipes for releases, we use the same mechanism, as this configuration is also available from spack environments.

+
+
+

System Dependencies

+

Some spack packages have external find support. For these packages it is possible to let spack detect the variants and versions for system (or otherwise) installed packages. +For such cases use the spack external find command. It has to be noted that detecting external packages and using them does not always work perfectly.

+
+
+

Target Architectures

+

Since HEP software is usually deployed on a variety of machines via cvmfs, installations need to pick a target architecture. broadwell is for now the default choice, and can be set with:

+
packages:
+  all:
+    target: [broadwell]
+
+
+

in $HOME/.spack/linux/packages.yaml

+
+
+

Bundle Packages and Environments

+

Right now, key4hep is installed via a BundlePackage, that depends on all other relevant packages. +An alternative would be to use spack environments. This alternative is still under investigation.

+
+
+

Setting Up Runtime Environments

+

The simplest way to set the environment to use spack installed packages is to use the spack load command. +In order for users not to have to set up spack when it is not needed, the key4hep-stack bundle package includes a script that will automatically generate a bash setup script and install it into its prefix.

+

Spack can also create “filesystem views” of several packages, resulting in a directory structure similar what you would find in /usr/local. +This simplifies library and include paths, but the setup generation for views still has to be developed.

+
+
+

Compiler Dependencies and Data Packages

+

Some HEP packages (like geant4-data) consist only of data files, and can thus be used on any platform. +Spack cannot yet handle this gracefully, but an ongoing development tries to treat compilers as dependencies, which would help with re-using data packages.

+
+
+

Duplicating Recipes in Downstream Repositories

+

Although it is possible to “patch” spack build recipes by overriding them in another repository (key4hep-spack, for example), this is discouraged. +The central repo is one of the strenghts of spack, with many contributors ensuring that packages build smoothly. +Also, packages are installed in different namespaces, so it is not possible to deprecate changed recipes and use the upstream ones without re-installing the packages.

+
+
+

CVMFS Installation Workflow

+

The distribution on cvmfs is an exact copy of the spack installation on the build machine, just copied with this rsync command on the publisher:

+
rsync -axv --inplace --delete    --verbose -e "ssh -T  -o Compression=no -o StrictHostKeyChecking=no -o GSSAPIAuthentication=yes -o GSSAPITrustDNS=yes" user@build-machine:/cvmfs/sw.hsf.org/spackages/ /cvmfs/sw.hsf.org/spackages/
+
+
+

The --delete option can be omitted in order to preserve already installed packages, regardless of the state of the build machine.

+
+
+

Compiler Wrappers

+

Spack uses compiler wrappers instead of exposing the actual compilers during the build. +For packages like whizard, which register the compiler path to use during runtime, this will not work, as the wrappers are not available at runtime. +For these packages, the current workaround is to force spack to use the actual compilers during build (see the build recipe of whizard).

+
+
+

Spack-Installed LCG releases

+

A spack installation that contains all packages in the LCG releases is work in progress, see https://gitlab.cern.ch/sft/sft-spack-repo.

+
+
+

Using Spack-installed GCC

+

When installing gcc with spack, it is necessary to add a cc symlink to $PATH, in order to avoid errors with cling, see https://github.com/spack/spack/issues/17488.

+
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/spack-build-instructions-for-librarians/spack-buildcache.html b/spack-build-instructions-for-librarians/spack-buildcache.html new file mode 100644 index 0000000..577016b --- /dev/null +++ b/spack-build-instructions-for-librarians/spack-buildcache.html @@ -0,0 +1,396 @@ + + + + + + + Spack Buildcaches — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Spack Buildcaches

+
+
+

Spack documentation

+
+
+

Buildcaches were investigated, but are no longer supported for Key4hep software, due to the difficulty of relocating some packages.

+

For more information refer to the spack documentation.

+
+
+

It is possible to relocate and re-use binaries with the so-called buildcache. +Some central buildcaches are on the key4hep eos space under:

+
/eos/project/k/key4hep/www/key4hep/spack_build/mirror/spackages
+
+
+

spackages is intended as the central buildcache for key4hep packages built from scratch, +but there exist other buildcaches for packages built against the LCG releases, and rolling builds that are using the branchname master or other moving targets. +All packages versioned package@master are treated by spack as the same version, even if master points to different commits, thus they must be installed to separate directories, ideally indicating the date. +A buildcache called contrib is intended for build tools such as compilers. +Spack automatically creates subdirectory for different platforms and compiler versions.

+

For write permissions to this space, subscribe to the egroup cernbox-project-key4hep-writers.

+

The following command can be used to put packages into the buildcache:

+
# key4hep-stack was already installed with 'spack install key4hep-stack'
+spack mirror add key4hep /eos/project/k/key4hep/www/key4hep/spack_build/mirror/spackages
+spack buildcache create -m key4hep -u -a -f key4hep-stack
+
+
+

Since the packages need to be relocated as well as copied, this might take up to an hour.

+

In order to install packages from the buildcache, use:

+
spack buildcache install -u -a key4hep-stack
+
+
+

Spack will then search all added mirrors for key4hep-stack. +For read-only access on machines without eos, these files are served also over http:

+
spack mirror add key4hep-web http://key4hep.web.cern.ch/key4hep/spack_build/mirror/spackages/
+
+
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/spack-build-instructions-for-librarians/spack-nightlies.html b/spack-build-instructions-for-librarians/spack-nightlies.html new file mode 100644 index 0000000..cb9d256 --- /dev/null +++ b/spack-build-instructions-for-librarians/spack-nightlies.html @@ -0,0 +1,375 @@ + + + + + + + Nightly Builds with Spack — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Nightly Builds with Spack

+
+

Usage of the nightly builds on CVMFS

+

For Centos7, the latest nightly build can be set up by running:

+
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
+
+
+

Spack can also be configured to use /cvmfs/sw-nightlies.hsf.org/spackages as an upstream installation.

+
+
+

Technical Information

+

Nightly builds can be a very useful tool, both to test code correctness and to quickly and automatically deploy the latest developments. +In contrast to the release builds, which use the latest stable version of the individual packages, nightly builds typically use the HEAD of the main development branch.

+

It is not very efficient to completely rebuild the stack every day, as some packages change fairly infrequently. +The key4hep-spack repository includes some scripts in order to use commit hashes as versions.

+
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/spack-build-instructions-for-librarians/spack-setup.html b/spack-build-instructions-for-librarians/spack-setup.html new file mode 100644 index 0000000..bff84f3 --- /dev/null +++ b/spack-build-instructions-for-librarians/spack-setup.html @@ -0,0 +1,455 @@ + + + + + + + Setting up Spack — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Setting up Spack

+
+

Downloading a spack instance

+

Spack is easy to set up: simply clone the key4hep fork, and use one of the provided spack “environments”, that is spack configuration that is created automatically from the current key4hep/key4hep-spack repository.

+
git clone https://github.com/spack/spack
+git clone https://github.com/key4hep/key4hep-spack
+source spack/share/spack/setup-env.sh
+source key4hep-spack/environments/key4hep-release-user/setup_clingo_centos7.sh # NOTE: only needed on centos7
+spack env activate key4hep-spack/environments/key4hep-release-user # or other environment, see below
+
+
+

These instructions assume that a Centos7 machine with a running CVMFS client is used (for other OSs see below). Since Spack cannot bootstrap with the system compiler on Centos7, a setup script for Clingo ( a spack dependency ) is provided.

+
+
+

Using Spack Environments

+

The spack environments available in key4hep-spack/environments bundle the spack configuration, setting up a suitable compiler from cvmfs, the key4hep package recipes, whether to create a view, etc. It is recommended to always use spack in an environment. New environments can be easily created by copying and modifying existing ones, but some use relative links to common configuration files in key4hep-spack/environments/key4hep-common, so they should be kept in the key4hep/environments directory.

+

The basic environment is key4hep-release, which is used for the central installations and therefore uses /cvmfs as install area. key4hep-debug is a variation for debug builds. The default compiler is gcc, but an environment that uses clang is provided under key4hep-release-clang. +For local builds that use cvmfs read-only, key4hep-release-user can be used.

+
+
+

Using the key4hep-release-user environment

+

The key4hep user environment has the key4hep-stack bundle package in its spec list. By concretizing it, spack selects the latest compatible versions, re-using installations from cvmfs

+
spack concretize -f
+spack find # lists the available concretized packages
+
+
+

The environment can be installed as is, although this will just install the bundle packages. However, this will create a setup script that can be used to load the software.

+
spack install
+
+
+

Custom builds can now be realized, by adding specs to the environment and concretizing together. For example, to build the stack with a local version of EDM4hep:

+
spack add edm4hep@master
+git clone https://github.com/key4hep/edm4hep
+# make some local changes to edm4hep
+spack develop -p $PWD/edm4hep edm4hep@master
+spack concretize -f
+spack install
+
+
+
+
+
+

Configuring Spack

+

Alternatively, and for other platforms, spack can be configured in a few steps. These steps are essentially what is used to create the pre-configured spack instance in this script: https://github.com/key4hep/key4hep-spack/blob/master/scripts/ci_setup_spack.sh

+

While this still puts the configuration files in the global scope of spack, it is recommended to use them in an environment, as provided by key4hep-spack.

+
+

Installing Spack

+

Spack itself is very easy to install - simply clone the repository with git.

+
git clone https://github.com/spack/spack.git
+source spack/share/spack/setup-env.sh
+
+
+
+
+

Installing the key4hep package recipes

+

The spack repository for key4hep packages is installed the same way:

+
git clone https://github.com/key4hep/key4hep-spack.git
+spack repo add key4hep-spack
+
+
+
+
+
+

Configuring packages.yaml

+

In order to choose the right package versions and build options, spack sometimes needs a few hints and nudges. With the new concretizer (default as of spack version 0.17) this should be mostly obsolete. +key4hep-spack ships a spack config file that should give a good build customization out of the box, but can also be customized further. It just needs to be copied to the configuration where spack searches for configurations:

+
cp key4hep-spack/environments/key4hep-common/packages.yaml spack/etc/spack/
+
+
+
+

Configuring upstreams.yaml

+

The cvmfs installation can be used as an “upstream installation”, by adding the following configuration:

+
cat <<EOT >> spack/etc/spack/upstreams.yaml
+upstreams:
+  spack-instance-1:
+      install_tree: /cvmfs/sw.hsf.org/spackages6/
+EOT
+
+
+
+
+

Setting up additional compilers

+

Often it is practical to use a compiler already installed upstream. Spack provides the spack compiler find command for this, but the compiler needs to be loaded into the PATH:

+
# loading the compiler from upstream
+source /cvmfs/sft.cern.ch/lcg/contrib/gcc/11.2.0/x86_64-centos7/setup.sh
+spack compiler find --scope site
+
+
+
+
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/talks-and-presentations/README.html b/talks-and-presentations/README.html new file mode 100644 index 0000000..929ff84 --- /dev/null +++ b/talks-and-presentations/README.html @@ -0,0 +1,399 @@ + + + + + + + Talks and Presentations — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Talks and Presentations

+

A Zotero group with the items listed below can be found here.

+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/tutorials/README.html b/tutorials/README.html new file mode 100644 index 0000000..1ceff94 --- /dev/null +++ b/tutorials/README.html @@ -0,0 +1,430 @@ + + + + + + + Key4hep Tutorials — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Key4hep Tutorials

+

This page contains several tutorials for working in a Key4hep software stack. We +try to design and set them up in a way that they can be done at any time but we +present them at hands-on tutorial sessions as well. This is an incomplete list +of all available tutorials, which you can find in the +key4hep-tutorials repository.

+

If you are following these tutorials and run into an issue please let us know +by opening an issue +on the key4hep-doc repository. If +you have the feeling that something is missing, we are also very happy to accept +new tutorial suggestions. If you have a tutorial that you would like to add +here.

+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/CEDViaWrapper.html b/tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/CEDViaWrapper.html new file mode 100644 index 0000000..9a41b98 --- /dev/null +++ b/tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/CEDViaWrapper.html @@ -0,0 +1,498 @@ + + + + + + + Running an Event Display with EDM4hep input — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ + +
+

Running an Event Display with EDM4hep input

+

It is possible to run the C Event Display (CED) via a wrapped CEDViewer Marlin Processor. This makes it possible to run the Event Dispaly with EDM4hep input files using an on the fly conversion to LCIO for CED. This introduction shows the basic concepts and also provides a options file that should work for most use cases. This example will be using the CLIC detector but should also work for other DD4hep detector models. The example is fully self contained, if you already have everything set up you can jump directly to running the event display.

+
+

Setting up an environment

+

The following steps have been tested with the Key4hep nightly builds release which can be setup using

+
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
+
+
+

To get the CLIC detector description we clone the CLICPerformance repository

+
git clone https://github.com/iLCSoft/CLICPerformance
+
+
+

All the following steps assume that the environment is setup like above and that the detector description is in the CLICPerformance directory. All commands start from the directory from which git clone has been executed.

+
+
+

Creating an input file

+

To create an input file for the event display we run a simple detector simulation using ddsim and a particle gun that shoots photons. The input file that we create here for illustration purposes has only 10 events, which also means that the creation should only take a few minutes. The steps to create this file are the following

+
ddsim --steeringFile CLICPerformance/clicConfig/clic_steer.py \
+      --compactFile $K4GEO/CLIC/compact/CLIC_o3_v14/CLIC_o3_v14.xml \
+      --enableGun \
+      --gun.distribution uniform \
+      --gun.particle gamma \
+      --gun.energy 10*GeV \
+      --outputFile gamma_10GeV_edm4hep.root \
+      --numberOfEvents 10
+
+
+

You should now have a gamma_10GeV_edm4hep.root file containing 10 events.

+
+
+

Running the event display

+

In order to run the event display via the DDCEDViewer we use the Marlin wrapper and attach an EDM4hep to LCIO converter to the wrapped processor. In the following we will build the complete Gaudi options file step by step. Here we simply present the most important steps, but do not go over all details of the DDCEDViewer configuration, for that it is probably best to directly look at the CEDViewer repository directly. The complete Gaudi configuration can be found in k4MarlinWrapper/examples/event_display.py which is also installed at $K4MARLINWRAPPER/examples/event_display.py

+

To read EDM4hep input we use the PodioInput module and the k4DataSvc

+
from Gaudi.Configuration import *
+from Configurables import k4DataSvc, PodioInput
+
+algList = []
+
+evtsvc = k4DataSvc('EventDataSvc')
+evtsvc.input = ''
+
+inp = PodioInput('InputReader')
+inp.collections = [
+   # ... all collections that should be read ...
+]
+
+algList.append(inp)
+
+
+

The DDCEDViewer also requires setting up a DD4hep geometry, which can simply be done by wrapping the InitializeDD4hep Marlin Processor

+
from Configurables import MarlinProcessorWrapper
+
+MyInitializeDD4hep = MarlinProcessorWrapper("MyInitializeDD4hep")
+MyInitializeDD4hep.OutputLevel = INFO
+MyInitializeDD4hep.ProcessorType = "InitializeDD4hep"
+MyInitializeDD4hep.Parameters = {
+                                 "DD4hepXMLFile": ["CLICPerformance/Visualisation/CLIC_o3_v06_CED/CLIC_o3_v06_CED.xml"]
+                                 }
+
+algList.append(MyInitializeDD4hep)
+
+
+

Note that in this case we already have passed in the geometry that we want to use for the event display.

+

Finally, the main work is done by the DDCEDViewer, which we again use via the MarlinProcessorWrapper (omitting a lot of the detailed configuration here). In order to convert the EDM4hep inputs to LCIO we attach an EDM4hep2LcioTool to this algorithm

+
from Configurables import EDM4hep2LcioTool
+
+MyCEDViewer = MarlinProcessorWrapper("MyCEDViewer")
+MyCEDViewer.OutputLevel = INFO
+MyCEDViewer.ProcessorType = "DDCEDViewer"
+MyCEDViewer.Parameters = {
+                          # ... lots of CEDViewer configuration ...
+                          }
+
+# EDM4hep to LCIO converter
+edmConvTool = EDM4hep2LcioTool("EDM4hep2lcio")
+edmConvTool.convertAll = True
+edmConvTool.collNameMapping = {'MCParticles': 'MCParticle'}
+edmConvTool.OutputLevel = DEBUG
+MyCEDViewer.EDM4hep2LcioTool = edmConvTool
+
+algList.append(MyCEDViewer)
+
+
+

The only thing that is left to do now is to put everything into the ApplicationManager in order to run things

+
from Configurables import ApplicationMgr
+ApplicationMgr( TopAlg = algList,
+                EvtSel = 'NONE',
+                EvtMax   = 10,
+                ExtSvc = [evtsvc],
+                OutputLevel=INFO
+              )
+
+
+

With all these pieces put together (as in examples/event_display.py) it is now possible to run the event display. In order to run the event display we first have to start the glced server program to which the wrapped CEDViewer processor will then connect. Starting the server and running the wrapped processor can be done via

+
glced &
+
+k4run $K4MARLINWRAPPER/examples/event_display.py --EventDataSvc.input=gamma_10GeV_edm4hep.root
+
+
+
+
+

Creating a Gaudi options file

+

The event_display.py options file that is used above and that is present in the examples has been produced following these steps:

+
    +
  • Using an .slcio input file and the desired geometry, run ced2go with the desired arguments.

    +
      +
    • This produces a Marlin XML steering file on the fly and stores it at /tmp/ced2go_${USER}_steering.xml

    • +
    +
  • +
  • Using the convertMarlinSteeringToGaudi.py converter script convert this into a Gaudi options file

  • +
  • Exchange the LCIO input reading by the podio input reading (see above)

  • +
  • Attach the EDM4hep2LcioTool to the wrapped CEDViewer processor

  • +
+

This should allow one to arrive at a similar steering file even for slightly different configurations. One potential pitfall is the slightly different naming of the ddsim outputs between LCIO and EDM4hep (see this issue). This can be addressed by configuring the EDM4hep to LCIO converter (edmConvTool in the code above) to map the names accordingly.

+
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/Readme.html b/tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/Readme.html new file mode 100644 index 0000000..b6d255e --- /dev/null +++ b/tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/Readme.html @@ -0,0 +1,539 @@ + + + + + + + Using the Key4hep-Stack for CLIC Simulation and Reconstruction — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ + +
+

Using the Key4hep-Stack for CLIC Simulation and Reconstruction

+

This assumes that you have access to an installation of the Key4hep-stack, either via CVMFS or spack install. +To setup the installation on cvmfs, do:

+
source /cvmfs/sw.hsf.org/key4hep/setup.sh
+
+
+

These commands will explain how one can run the CLIC detector simulation and reconstruction using the Key4hep-Stack. +First we will obtain all the necessary steering and input files for CLIC, simulate a few events and run the +reconstruction both with Marlin and k4run. These steps can be adapted to simulate or run other Marlin +processors as well.

+

The CLICPerformance repository contains the steering and input files.

+
git clone https://github.com/iLCSoft/CLICPerformance
+
+
+
+

Simulation

+

Simulating a few events with ddsim can produce output in EDM4hep or LCIO format.

+
    +
  • To produce events in EDM4hep format one can run indicating --outputFile <name>_edm4hep.root to produce the +output in such format:

  • +
+
cd CLICPerformance/clicConfig
+
+ddsim --compactFile $K4GEO/CLIC/compact/CLIC_o3_v14/CLIC_o3_v14.xml \
+      --outputFile ttbar_edm4hep.root \
+      --steeringFile clic_steer.py \
+      --inputFiles ../Tests/yyxyev_000.stdhep \
+      --numberOfEvents 3
+
+
+
    +
  • To produce events in LCIO format one can run indicating --outputFile <name>.slcio to produce the output file +in such format:

  • +
+
cd CLICPerformance/clicConfig
+
+ddsim --compactFile $K4GEO/CLIC/compact/CLIC_o3_v14/CLIC_o3_v14.xml \
+      --outputFile ttbar.slcio \
+      --steeringFile clic_steer.py \
+      --inputFiles ../Tests/yyxyev_000.stdhep \
+      --numberOfEvents 3
+
+
+
+
+

Reconstruction

+
+

Reconstruction with Marlin

+

To run the reconstruction with Marlin:

+
cd CLICPerformance/clicConfig
+
+Marlin clicReconstruction.xml \
+       --InitDD4hep.DD4hepXMLFile=$K4GEO/CLIC/compact/CLIC_o3_v14/CLIC_o3_v14.xml \
+       --global.LCIOInputFiles=ttbar.slcio \
+       --global.MaxRecordNumber=3
+
+
+
+
+

Reconstruction with Gaudi through k4MarlinWrapper

+

We can convert the xml steering file to a Gaudi steering file (python):

+
cd CLICPerformance/clicConfig
+
+convertMarlinSteeringToGaudi.py clicReconstruction.xml clicReconstruction.py
+
+
+

Reconstruction can be performed with LCIO or EDM4hep input, depending on the output format of the events produced +during Simulation.

+
+

Reconstruction with LCIO input

+
    +
  • When using LCIO format for the input events to be used in reconstruction:

    +
      +
    • Modify the clicReconstruction.py file to point to the ttbar.slcio input file, and change the +DD4hepXMLFile parameter for the InitDD4hep algorithm. In addition the two processors with the comment # Config.OverlayFalse and # Config.TrackingConformal should be enabled by uncommenting their line in the algList +at the end of the file.

    • +
    +
  • +
+
cd CLICPerformance/clicConfig
+
+sed -i '1s/^/import os\n/' clicReconstruction.py
+sed -i 's;read.Files = \[".*"\];read.Files = \["ttbar.slcio"\];' clicReconstruction.py
+sed -i 's;EvtMax   = 10,;EvtMax   = 3,;' clicReconstruction.py
+sed -i 's;"MaxRecordNumber": ["10"],;"MaxRecordNumber": ["3"],;' clicReconstruction.py
+sed -i 's;# algList.append(OverlayFalse);algList.append(OverlayFalse);' clicReconstruction.py
+sed -i 's;# algList.append(MyConformalTracking);algList.append(MyConformalTracking);' clicReconstruction.py
+sed -i 's;# algList.append(ClonesAndSplitTracksFinder);algList.append(ClonesAndSplitTracksFinder);' clicReconstruction.py
+sed -i 's;# algList.append(RenameCollection);algList.append(RenameCollection);' clicReconstruction.py
+sed -i 's;"DD4hepXMLFile": \[".*"\],; "DD4hepXMLFile": \[os.environ["LCGEO"]+"/CLIC/compact/CLIC_o3_v14/CLIC_o3_v14.xml"\],;' clicReconstruction.py
+
+
+

Then the reconstruction using the k4MarlinWrapper can be run with

+
cd CLICPerformance/clicConfig
+
+k4run clicReconstruction.py
+
+
+
+
+

Reconstruction with EDM4hep input

+
    +
  • When using EDM4hep format for the input events to be used in reconstruction, refer to the EDM converters +included with k4MarlinWrapper. Note that:

    +
      +
    • MarlinProcessorWrappers need input in LCIO format: EDM4hep collections need to be converted to LCIO

    • +
    • The output collections of MarlinProcessorWrappers may be used later by other algorithms:

      +
        +
      • Output collections of MarlinProcessorWrappers will be in LCIO format unless these are explicitly converted

      • +
      • Some MarlinProcessorWrappers may modify collections instead of producing new ones: the original EDM4hep collection wont be updated in this case and would need conversion from LCIO to EDM4hep.

      • +
      +
    • +
    +
  • +
  • To run clicReconstruction with EDM4hep format, use the steering file found in the examples folder of k4MarlinWrapper: +k4MarlinWrapper/examples/clicRec_e4h_input.py (this also gets installed to $K4MARLINWRAPPER/examples in Key4hep releases)

    +
      +
    • Change the line where evtsvc.input is defined to point to the location of your input file.

    • +
    • At the bottom of the file, in the ApplicationMgr parameters, change EvtMax   = 3, to the number of events to run.

    • +
    +
  • +
+

This can be run in the following way.

+
cd CLICPerformance/clicConfig
+
+cp $K4MARLINWRAPPER/examples/clicRec_e4h_input.py .
+
+k4run clicRec_e4h_input.py --EventDataSvc.input ttbar_edm4hep.root
+
+
+
+
+
+

DD4hep Geometry Information

+

The MarlinDD4hep::InitializeDD4hep processor can be replaced by the k4SimGeant4::GeoSvc and the +TrackingCellIDEncodingSvc the latter of which is part of the k4MarlinWrapper repository.

+

For example:

+
import os
+from Gaudi.Configuration import INFO
+from Configurables import GeoSvc, TrackingCellIDEncodingSvc
+svcList = []
+geoservice = GeoSvc("GeoSvc")
+geoservice.detectors = [os.environ["K4GEO"]+"/CLIC/compact/CLIC_o3_v15/CLIC_o3_v15.xml"]
+geoservice.OutputLevel = INFO
+geoservice.EnableGeant4Geo = False
+svcList.append(geoservice)
+
+cellIDSvc = TrackingCellIDEncodingSvc("CellIDSvc")
+cellIDSvc.EncodingStringParameterName = "GlobalTrackerReadoutID"
+cellIDSvc.GeoSvcName = geoservice.name()
+cellIDSvc.OutputLevel = INFO
+svcList.append(cellIDSvc)
+
+
+
+
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/howtoMultithread.html b/tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/howtoMultithread.html new file mode 100644 index 0000000..57c043d --- /dev/null +++ b/tutorials/k4marlinwrapper/doc/starterkit/k4MarlinWrapperCLIC/howtoMultithread.html @@ -0,0 +1,512 @@ + + + + + + + How to run multithreading with k4MarlinWrapper (Gaudi) — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ + +
+

How to run multithreading with k4MarlinWrapper (Gaudi)

+

Supported

+
    +
  • Reading LCIO events with LcioEvent()

  • +
  • Writing LCIO events with LcioEventOutput()

  • +
  • Running MarlinProcessorWrappers with no converters

  • +
  • Using whiteboard as ExtSvc (no k4DataSvc or EventDataSvc)

  • +
+

Not supported

+
    +
  • Using EDM converters EDM4hep2LcioTool and Lcio2EDM4hepTool()

  • +
  • Reading EDM4hep events with PodioInput()

  • +
  • Writing EDM4hep events with PodioOutput()

  • +
  • Writing EDM4hep events with MarlinProcessorWrapper of type LCIOOutputProcessor

  • +
  • Running non-thread algorithms/processors in parallel

  • +
  • Running wrapped Marlin processors that make use of the isFirstEvent method in their processEvent method to do some setup only in the first event. There is no way to make this thread safe. If you want your processor to be usable on in a multi threaded environment, you have to move this setup to init.

  • +
+
+

Running Gaudi with multithreading support

+

Gaudi uses Intel TBB under the hood for multithreading.

+

Gaudi exposes two main levels of parallelism:

+
    +
  • Inter-event parallelism: running multiple events in parallel

  • +
  • Intra-event parallelism: running multiple algorithms in parallel, within an event

  • +
+

The two levels of parallelism can be combined: events can run in parallel, and algorithms within the events can run in parallel.

+
+

How to run with inter-event parallelism

+

The following components are used to achieve parallelism:

+
from Configurables import (HiveWhiteBoard, HiveSlimEventLoopMgr, AvalancheSchedulerSvc)
+
+
+

These 3 components need to be configured to adapt the level of parallelism to the sequence, algorithms and hardware to be used.

+
    +
  • Event Data Service: HiveWhiteBoard

    +
      +
    • EventSlots: Number of events that may run in parallel, each with its own EventStore

    • +
    • This is the Event Data Service, which needs the number of EventSlots

    • +
    +
  • +
  • Event Loop Manager: HiveSlimEventLoopMgr

    +
      +
    • Event Loop Manager with parallelism support

    • +
    +
  • +
  • Thread Scheduling config: AvalancheSchedulerSvc

    +
      +
    • Scheduler to indicate the number of threads to use

    • +
    • In needs the total number of threads to use: this determines how many events and algorithms can be in flight (run in parallel)

    • +
    • Default value is -1 which indicate TBB to take over the machine with what it decides to be the optimal configuration

    • +
    +
  • +
+

All these components can be set as follows in the options file:

+
evtslots = 4
+threads = 4
+
+whiteboard = HiveWhiteBoard("EventDataSvc", EventSlots=evtslots)
+slimeventloopmgr = HiveSlimEventLoopMgr(SchedulerName="AvalancheSchedulerSvc", OutputLevel=DEBUG)
+scheduler = AvalancheSchedulerSvc(ThreadPoolSize=threads, OutputLevel=WARNING)
+
+from Configurables import ApplicationMgr
+ApplicationMgr( TopAlg = [seq],
+                EvtSel = 'NONE',
+                EvtMax = 10,
+                ExtSvc = [whiteboard],
+                EventLoop=slimeventloopmgr,
+                MessageSvcType="InertMessageSvc"
+              )
+
+
+

To only run events in parallel, with no parallelism between the algorithms within each event, the cardinality of the algorithms must be set:

+
    +
  • Given a list of algorithms, set the cardinality of all to be 1

  • +
  • Create a GaudiSequencer with all the algorithms as Members

  • +
  • Set the GaudiSequencer sequential property to true

  • +
  • Pass the created GaudiSequencer to the Application Manager in the TopAlg: TopAlg = [seq]

  • +
+
from Configurables import MarlinProcessorWrapper
+from Configurables import (GaudiSequencer)
+
+cardinality = 1
+
+alg1 = MarlinProcessorWrapper("alg1")
+alg2 = MarlinProcessorWrapper("alg2")
+alg3 = MarlinProcessorWrapper("alg3")
+alg4 = MarlinProcessorWrapper("alg4")
+
+algList = []
+
+algList.append(alg1)
+algList.append(alg2)
+algList.append(alg3)
+algList.append(alg4)
+
+for algo in algList:
+    algo.Cardinality = cardinality
+    algo.OutputLevel = DEBUG
+
+seq = GaudiSequencer(
+    "createViewSeq",
+    Members=algList,
+    Sequential=True,
+    OutputLevel=VERBOSE)
+
+from Configurables import ApplicationMgr
+ApplicationMgr( TopAlg = [seq],
+                EvtSel = 'NONE',
+                EvtMax = 10,
+                ExtSvc = [whiteboard],
+                EventLoop=slimeventloopmgr,
+                MessageSvcType="InertMessageSvc"
+              )
+
+
+
+
+
+

Running example

+

A multi-threaded CLIC Reconstruction can be run in multi-threaded mode, for LCIO input and output. +After successful compilation, from the build location:

+
# Check available tests
+ctest -N
+
+# Run multi-threaded clicReconstruction test
+ctest -R clicRec_lcio_mt
+
+
+
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/tutorials/k4simdelphes/doc/starterkit/k4SimDelphes/Readme.html b/tutorials/k4simdelphes/doc/starterkit/k4SimDelphes/Readme.html new file mode 100644 index 0000000..2c43aa5 --- /dev/null +++ b/tutorials/k4simdelphes/doc/starterkit/k4SimDelphes/Readme.html @@ -0,0 +1,428 @@ + + + + + + + Running Delphes fast simulation with EDM4hep output — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Running Delphes fast simulation with EDM4hep output

+

The k4SimDelphes package provides utilities to convert output from the Delphes fast simulation framework into the EDM4hep format. It offers standalone executables, similar to the ones Delphes offers, as well as integration into the Key4hep framework. Here we will provide examples of how to run the standalone executables as well as the usage in the Key4hep framework.

+
+

Setup and prerequisites

+

The following examples assume that you have access to an existing installation of the Key4hep software stack. The easiest way to achieve this to use an existing installation on cvmfs

+
source /cvmfs/sw.hsf.org/key4hep/setup.sh
+
+
+

Alternatively it is possible to build the complete stack via spack, see the instructions for how to do this.

+

In order to run the examples below it is necessary to get some inputs that are used for the generation of the physics events. In the following we will be using pythia generator files that are also used by the FCCee. In particular we will be generating the following process

+

e+e- -> ZH -> mu+mu- X (i.e. the Z decays into a pair of oppositely charged muons and the H to anything)

+

To start we download the pythia cards for this process

+
wget https://raw.githubusercontent.com/HEP-FCC/FCC-config/spring2021/FCCee/Generator/Pythia8/p8_noBES_ee_ZH_ecm240.cmd
+
+
+

All the other resources are available from within a Key4hep release.

+
+
+

Standalone executables

+

For this example we will be using the DelphesPythia8_EDM4HEP standalone executable, which is essentially the same as the DelphesPythia8 executable that is provided by Delphes. Contrary to the Delphes executable the one provided by k4SimDelphes will produce output in the EDM4hep format.

+

To run the generation and fast detector simulation in one go run

+
DelphesPythia8_EDM4HEP ${DELPHES_DIR}/cards/delphes_card_IDEA.tcl \
+                       ${K4SIMDELPHES}/edm4hep_output_config.tcl \
+                       p8_noBES_ee_ZH_ecm240.cmd \
+                       delphes_events_edm4hep.root
+
+
+

The arguments in this case are (in the order they are passed)

+
    +
  • The delphes card that describes the (parameterized) detector. In this case we use one that is shipped with the Delphes installation

  • +
  • The output configuration for the Delphes to EDM4hep converter. Here we use the defaults that are provided by k4SimDelphes, which should cover the majority of use cases. It is however possible to configure these to your needs if necessary.

  • +
  • The pythia card that describes the physics process as described above

  • +
  • The name of the output file that will be created and that will contain the generated and simulated events in EDM4hep format

  • +
+
+

Other standalone executables

+

k4SimDelphes provides other standalone executables that can read different inputs. They offer the same functionality as the ones available from Delphes:

+
    +
  • DelphesSTDHEP_EDM4HEP - for reading STDHEP inputs

  • +
  • DelphesROOT_EDM4HEP - for reading ROOT files in the Delphes format

  • +
  • DelphesPythia8_EDM4HEP - for running Pythia8 as part of the simulation

  • +
+

For all executables it is possible to at least get the order of the input arguments via --help or -h, e.g.

+
DelphesSTDHEP_EDM4HEP --help
+
+
+

will print

+
Usage: DelphesHepMC config_file output_config_file output_file [input_file(s)]
+config_file - configuration file in Tcl format,
+output_config_file - configuration file steering the content of the edm4hep output in Tcl format,
+output_file - output file in ROOT format,
+input_file(s) - input file(s) in STDHEP format,
+with no input_file, or when input_file is -, read standard input.
+
+
+
+
+
+

Usage in the Key4hep framework

+
    +
  • [ ] TODO

  • +
+
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/tutorials/key4hep-tutorials/gaudi_ild_reco/README.html b/tutorials/key4hep-tutorials/gaudi_ild_reco/README.html new file mode 100644 index 0000000..a7e9998 --- /dev/null +++ b/tutorials/key4hep-tutorials/gaudi_ild_reco/README.html @@ -0,0 +1,706 @@ + + + + + + + Runing ILD simulation and reconstruction — Key4hep documentation + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Runing ILD simulation and reconstruction

+

This exercise aims at showing you how to run full simulation as well as +reconstruction using ddsim and the Gaudi based Key4hep framework respectively. +You will

+
    +
  • Run ddsim to produce SIM level input files for the reconstruction in EDM4hep +format

  • +
  • Learn how to use the tools provided by +k4MarlinWrapper that allows to +run workflows that were originally developed for the Marlin in the Gaudi +based framework of Key4hep. This includes

    +
      +
    • Converting a Marlin steering file to a Gaudi options file,

    • +
    • Adapting the options file to be able to read and write EDM4hep output

    • +
    • Running this Gaudi options file via k4run

    • +
    +
  • +
+

In this particular case we are using the ILD configuration to do this but the +conceptual steps are very similar for other detector concepts that used Marlin +originally.

+
+

Setup

+

If you haven’t done it yet, source a Key4hep software environment via

+
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
+
+
+

For the remainder of the tutorial we will assume that you are working within the +key4hep_tut_ild_reco directory, i.e.

+
mkdir key4hep_tut_ild_reco
+cd key4hep_tut_ild_reco 
+
+
+

However, this is a minor detail and you can choose whatever directory you want. +We do suggest a clean directory though.

+

Next we will be using the the standard simulation and reconstruction +configuration for ILD which we can get via

+
git clone https://github.com/iLCSoft/ILDConfig
+
+
+

For the rest of this tutorial we will be working in the +ILDConfig/StandardConfig/production folder

+
cd ILDConfig/StandardConfig/production
+
+
+
+
+

Running the simulation

+

We will use the output file of the whizard +tutorial +as generator level input. In case you have not done that exercise you can get +one via

+
wget https://raw.githubusercontent.com/key4hep/key4hep-tutorials/main/gaudi_ild_reco/input_files/zh_mumu.slcio
+
+
+

Simulating a few events with ddsim is straight forward. ddsim can produce +EDM4hep and LCIO format output files, and it decides which format to used based +on the name of the output file:

+
    +
  • Names ending on .slcio will result in LCIO output files

  • +
  • Names ending in edm4hep.root will result in in EDM4hep output files

  • +
+

In the course of this exercise we will only need the EDM4hep format, we simply +provide both options for convenience here.

+
+ +
+

To run the simulation with EDM4hep output you can use the following command

+
ddsim --compactFile $lcgeo_DIR/ILD/compact/ILD_l5_v02/ILD_l5_v02.xml \
+      --steeringFile ddsim_steer.py \
+      --inputFiles zh_mumu.slcio \
+      --outputFile zh_mumu_SIM.edm4hep.root
+
+
+
+ +
+

To run the simulation with LCIO output you can use the following command

+
ddsim --compactFile $lcgeo_DIR/ILD/compact/ILD_l5_v02/ILD_l5_v02.xml \
+      --steeringFile ddsim_steer.py \
+      --inputFiles zh_mumu.slcio \
+      --outputFile zh_mumu_SIM.slcio
+
+
+
+
+

Depending on the machine where you are running this, this will take up to a few +minutes to complete. You can start this and read on in the meantime.

+
+
+

Reconstruction

+

To run the reconstruction we will use the Gaudi based Key4hep framework. Note +that we can run the reconstruction just the same as within iLCSoft via Marlin. +However, we will not show that in this tutorial. The first thing that we have to +do is to create a so called options file for Gaudi.

+
+

Creating a Gaudi options file

+

The bulk of the work for creating such an options file from an existing Marlin +steering file in XML format can be done with the +convertMarlinSteeringToGaudi.py converter script. We will start by converting +the MarlinStdReco.xml steering file and then do some minor adjustments to the +converted options file. The main thing to consider for the ILD configuration is +that MarlinStdReco.xml makes use of several include statements to pull in more +configuration. Hence, we first have to create a Marlin steering file with these +includes resolved. We also have to provide a DetectorModel constant here, +since some of the includes depend on this.

+
Marlin -n MarlinStdReco.xml --constant.DetectorModel=ILD_l5_o1_v02
+
+
+

You should now have a MarlinStdRecoParsed.xml file. This is the one that we +will convert using the converter script via

+
convertMarlinSteeringToGaudi.py MarlinStdRecoParsed.xml MarlinStdReco.py
+
+
+

Since some parts of the Marlin steering file conversion can not be handled +automatically we have to make a few adjustments to MarlinStdReco.py. We +recommend to simply edit the file directly, but you can also use the sed +commands below to do these adjustments. The adjustments are:

+
    +
  • Give the lcgeo_DIR constant (first entry in the CONSTANTS dict) a +meaningful value. The easiest way to do this is to simply get the value of the +corresponding environment variable via os.environ["lcgeo_DIR"] (don’t forget +to import os at the top)

  • +
  • Exclude the BgOverlayWW, BgOverlayBB, BgOverlayBW and BgOverlayWB +algorithms from being run, by simply commenting out the lines where these are +appended to the algList (this list is populated at almost the end of the +file).

  • +
+
+ +sed commands for adjustments
+
+
+
+
+
sed -i '1s/^/import os\n/' MarlinStdReco.py
+sed -i 's/\( *.lcgeo_DIR.:\).*/\1 os.environ["lcgeo_DIR"],'/ MarlinStdReco.py
+sed -i 's/algList.append(BgOverlayWW)/# algList.append(BgOverlayWW)/' MarlinStdReco.py
+sed -i 's/algList.append(BgOverlayWB)/# algList.append(BgOverlayWB)/' MarlinStdReco.py
+sed -i 's/algList.append(BgOverlayBW)/# algList.append(BgOverlayBW)/' MarlinStdReco.py
+sed -i 's/algList.append(BgOverlayBB)/# algList.append(BgOverlayBB)/' MarlinStdReco.py
+sed -i 's/algList.append(PairBgOverlay)/# algList.append(PairBgOverlay)/' MarlinStdReco.py
+
+
+
+

With the state the options file is in now, you would be able to run it with LCIO +input.

+
+ +Running the reconstruction with LCIO
+
+
+
+
+

To run the reconstruction with LCIO inputs and outputs we now simply need to +pass in the input file that we have created at the simulation step

+
k4run MarlinStdReco.py --LcioEvent.Files=zh_mumu_SIM.slcio
+
+
+

This should take somewhere between 20 seconds up to roughly a minute to run. If +you haven’t changed anything else you should now have a few output files:

+
ls StandardReco_*.*
+
+
+

should now show a REC and DST file, as well as a PfoAnalysis and an AIDA +file. You can change the names of these files by adjusting the OutputBaseName, +resp. the corresponding filename constants values in CONSTANTS.

+
+
+
+

Adapting the options file for EDM4hep

+

It is necessary to adapt the Gaudi options file a bit further:

+
    +
  • Replace the LcioEvent algorithm with the PodioInput algorithm

    +
      +
    • Make sure to replace the Files option with the collections option and to +populate this option with the list of collections you want to read (see +below)

    • +
    +
  • +
  • Replace the EventDataSvc with the k4DataSvc (remember to instantiate it +with "EventDataSvc" as name)

  • +
  • Add a PodioOutput algorithm to write EDM4hep output (don’t forget to add it +to the algList at the very end)

    +
      +
    • (For the sake of this exercise) configure this to only write the +MCParticlesSkimmed, PandoraPFOs and the RecoMCTruthLink collections

    • +
    +
  • +
  • Attach the necessary in-memory on-the-fly converters between EDM4hep and LCIO +(and vice versa)

    +
      +
    • For the conversion of the EDM4hep inputs to LCIO instantiate a +EDM4hep2LcioTool and attach it to the first wrapped processor that is run +(MyAIDAProcessor).

    • +
    • For the conversion of the LCIO outputs to EDM4hep instantiate a +Lcio2EDM4hepTool and attach it to the last wrapped processor that is run +before the PodioOutput algorithm that you just added (MyPfoAnalysis)

    • +
    +
  • +
+

For all of these steps make sure that you import all the necessary tools and +algorithms from Configurables!

+

The top of your file should now look something like this

+
from Configurables import (
+    PodioInput, PodioOutput, k4DataSvc, MarlinProcessorWrapper,
+    EDM4hep2LcioTool, Lcio2EDM4hepTool
+    )
+from k4MarlinWrapper.parseConstants import *
+algList = []
+evtsvc = k4DataSvc("EventDataSvc")
+
+
+

while the configuration for the input reader and the EDM4hep2LcioTool should +look like this

+
read = PodioInput()
+read.OutputLevel = INFO
+read.collections = [
+    # ... list of collection names
+]
+algList.append(read)
+
+edm4hep2LcioConv = EDM4hep2LcioTool()
+edm4hep2LcioConv.collNameMapping = {
+    "MCParticles": "MCParticle"
+}
+
+# ... Unchanged config of MyAIDAProcessor
+
+MyAIDAProcessor.EDM4hep2LcioTool = edm4hep2LcioConv
+
+
+
+ +list of collection names
+
+
+
+
+

The list of collections that is populated by standard configuration of ILD for +simulation looks like this. You can simply copy this into the options file

+
read.collections = [
+     "BeamCalCollection",
+     "BeamCalCollectionContributions",
+     "ECalBarrelScHitsEven",
+     "ECalBarrelScHitsEvenContributions",
+     "ECalBarrelScHitsOdd",
+     "ECalBarrelScHitsOddContributions",
+     "ECalBarrelSiHitsEven",
+     "ECalBarrelSiHitsEvenContributions",
+     "ECalBarrelSiHitsOdd",
+     "ECalBarrelSiHitsOddContributions",
+     "EcalEndcapRingCollection",
+     "EcalEndcapRingCollectionContributions",
+     "ECalEndcapScHitsEven",
+     "ECalEndcapScHitsEvenContributions",
+     "ECalEndcapScHitsOdd",
+     "ECalEndcapScHitsOddContributions",
+     "ECalEndcapSiHitsEven",
+     "ECalEndcapSiHitsEvenContributions",
+     "ECalEndcapSiHitsOdd",
+     "ECalEndcapSiHitsOddContributions",
+     "EventHeader",
+     "FTDCollection",
+     "HcalBarrelRegCollection",
+     "HcalBarrelRegCollectionContributions",
+     "HCalBarrelRPCHits",
+     "HCalBarrelRPCHitsContributions",
+     "HCalECRingRPCHits",
+     "HCalECRingRPCHitsContributions",
+     "HcalEndcapRingCollection",
+     "HcalEndcapRingCollectionContributions",
+     "HCalEndcapRPCHits",
+     "HCalEndcapRPCHitsContributions",
+     "HcalEndcapsCollection",
+     "HcalEndcapsCollectionContributions",
+     "LHCalCollection",
+     "LHCalCollectionContributions",
+     "LumiCalCollection",
+     "LumiCalCollectionContributions",
+     "MCParticles",
+     "SETCollection",
+     "SITCollection",
+     "TPCCollection",
+     "TPCLowPtCollection",
+     "TPCSpacePointCollection",
+     "VXDCollection",
+     "YokeBarrelCollection",
+     "YokeBarrelCollectionContributions",
+     "YokeEndcapsCollection",
+     "YokeEndcapsCollectionContributions",
+]
+
+
+
+

Finally, the PodioOutput algorithm and the Lcio2EDM4hepTool can be +configuration should look something like this

+
# ... MyPfoAnalysis configuration unchanged
+
+lcio2edm4hepConv = Lcio2EDM4hepTool()
+lcio2edm4hepConv.collNameMapping = {
+    "MCParticle": "MCParticles"
+}
+MyPfoAnalysis.Lcio2EDM4hepTool = lcio2edm4hepConv
+
+edm4hepOutput = PodioOutput()
+edm4hepOutput.filename = "zh_mumu_reco.edm4hep.root"
+edm4hepOutput.outputCommands = [
+    "drop *",
+    "keep MCParticlesSkimmed",
+    "keep PandoraPFOs",
+    "keep RecoMCTruthLink",
+]
+
+# ... the complete algList
+algList.append(edm4hepOutput)
+
+# ... ApplicationMgr config
+
+
+
+
+

Running the reconstruction with k4run

+

After all these adaptions it is now possible to run the full reconstruction +chain on the previously simulated input with k4run

+
k4run MarlinStdReco.py --num-events=3 --EventDataSvc.input=zh_mumu_SIM.edm4hep.root
+
+
+

Here we are again using the command line to specify the input file, we could +have just as well used the input option of the evtsvc in the options file. +Note also that we explicitly pass in the number of events, this is a workaround +for this issue.

+

You should now have a zh_mumu_reco.edm4hep.root file that contains the +complete events in all their glory. For a more practical output you can tweak +the edm4hepOutput.outputCommands option in order to keep only “interesting” +collections. Also note that the REC and DST LCIO output files are still +produced. Can you reproduce these data tiers for EDM4hep?

+
+
+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file