Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: add instruction & feat: JEC/jetveto from jsonpog #106

Merged
merged 7 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.ipynb_checkpoints/
\#*

docs/_build/
runinfo/
plot/
plotting/plot/
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "src/BTVNanoCommissioning/jsonpog-integration"]
path = src/BTVNanoCommissioning/jsonpog-integration
url = ssh://[email protected]:7999/cms-nanoAOD/jsonpog-integration.git
752 changes: 33 additions & 719 deletions README.md

Large diffs are not rendered by default.

Binary file added docs/_static/figs/example_jetpt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/figs/example_rebin2_jetpt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/figs/example_rebin_jetpt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/figs/example_sample_jetpt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/figs/example_samplesplit_jetpt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
92 changes: 87 additions & 5 deletions docs/api.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,89 @@
API
===
Details
=======

.. autosummary::
:toctree: generated
BTVNanoCommissioning.utils.correction
-------------------------------------
.. automodule:: BTVNanoCommissioning.utils.correction
:members:
:undoc-members:
:show-inheritance:

lumache
BTVNanoCommissioning.utils.selection
------------------------------------
.. automodule:: BTVNanoCommissioning.utils.selection
:members:
:undoc-members:
:show-inheritance:

BTVNanoCommissioning.utils.AK4_parameters
-----------------------------------------
.. automodule:: BTVNanoCommissioning.utils.AK4_parameters
:members:
:undoc-members:
:show-inheritance:

BTVNanoCommissioning.utils.array_writer
---------------------------------------
.. automodule:: BTVNanoCommissioning.utils.array_writer
:members:
:undoc-members:
:show-inheritance:

BTVNanoCommissioning.utils.histogrammer
---------------------------------------
.. automodule:: BTVNanoCommissioning.utils.histogrammer
:members:
:undoc-members:
:show-inheritance:

BTVNanoCommissioning.utils.sample
---------------------------------
.. automodule:: BTVNanoCommissioning.utils.sample
:members:
:undoc-members:
:show-inheritance:


BTVNanoCommissioning.utils.plot_utils
-------------------------------------
.. automodule:: BTVNanoCommissioning.utils.plot_utils
:members:
:undoc-members:
:show-inheritance:

BTVNanoCommissioning.helpers.update_branch
------------------------------------------
.. automodule:: BTVNanoCommissioning.helpers.update_branch
:members:
:undoc-members:
:show-inheritance:

BTVNanoCommissioning.helpers.func
---------------------------------
.. automodule:: BTVNanoCommissioning.helpers.func
:members:
:undoc-members:
:show-inheritance:

BTVNanoCommissioning.helpers.BTA_helper
---------------------------------------
.. automodule:: BTVNanoCommissioning.helpers.BTA_helper
:members:
:undoc-members:
:show-inheritance:

BTVNanoCommissioning.helpers.xs_scaler
--------------------------------------
.. automodule:: BTVNanoCommissioning.helpers.xs_scaler
:members:
:undoc-members:
:show-inheritance:

BTVNanoCommissioning.helpers.xsection
-------------------------------------
.. automodule:: BTVNanoCommissioning.helpers.xsection
:members:
:undoc-members:
:show-inheritance:

scripts.
5 changes: 5 additions & 0 deletions docs/auto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Automation


At the moment the automation is limited with the computing resources using gitlab ci [autobtv](https://gitlab.cern.ch/cms-analysis/btv/software-and-algorithms/autobtv).

38 changes: 32 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,52 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
import os, sys

sys.path.insert(0, os.path.abspath("../src"))


# -- Project information -----------------------------------------------------

project = "Basic Sphinx Example Project"
copyright = "2022, Read the Docs core team"
author = "Read the Docs core team"
project = "BTVNanocommissioning"
copyright = "2024, BTV-POG-CMS"
author = "By BTV CMS"


# -- General configuration ---------------------------------------------------
# -- General configuration

extensions = [
"myst_parser",
"sphinx_copybutton",
"sphinx.ext.duration",
"sphinx.ext.doctest",
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.intersphinx",
"sphinx.ext.viewcode",
"sphinx.ext.imgmath",
"sphinx.ext.todo",
]

myst_heading_anchors = 4
myst_enable_extensions = [
"amsmath",
"attrs_inline",
"colon_fence",
"deflist",
"dollarmath",
"fieldlist",
"html_admonition",
"html_image",
"replacements",
"smartquotes",
"strikethrough",
"substitution",
"tasklist",
]


intersphinx_mapping = {
"rtd": ("https://docs.readthedocs.io/en/stable/", None),
"python": ("https://docs.python.org/3/", None),
Expand All @@ -44,6 +67,8 @@

# -- Options for EPUB output
epub_show_urls = "footnote"
source_suffix = [".rst", ".md"]
copybutton_exclude = ".linenos, .gp"

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand All @@ -61,3 +86,4 @@
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
html_theme_options = {"style_nav_header_background": "#fcb302"}
Loading
Loading