fasthep-workshop 2026.6.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- fasthep_workshop-2026.6.1/.gitignore +231 -0
- fasthep_workshop-2026.6.1/LICENSE +29 -0
- fasthep_workshop-2026.6.1/PKG-INFO +79 -0
- fasthep_workshop-2026.6.1/README.md +55 -0
- fasthep_workshop-2026.6.1/docs/examples/ci-strategy.md +16 -0
- fasthep_workshop-2026.6.1/docs/examples/data.md +13 -0
- fasthep_workshop-2026.6.1/examples/CMS/L1Trigger/author.yaml +152 -0
- fasthep_workshop-2026.6.1/examples/CMS/L1Trigger/remote_data.json +5 -0
- fasthep_workshop-2026.6.1/examples/CMS/Zmumu/author.yaml +157 -0
- fasthep_workshop-2026.6.1/examples/CMS/Zmumu/remote_data.json +12 -0
- fasthep_workshop-2026.6.1/examples/LZ/mssi/author.yaml +99 -0
- fasthep_workshop-2026.6.1/examples/LZ/mssi/remote_data.json +5 -0
- fasthep_workshop-2026.6.1/examples/testing/runtime-smoke/README.md +16 -0
- fasthep_workshop-2026.6.1/examples/testing/runtime-smoke/author.yaml +60 -0
- fasthep_workshop-2026.6.1/examples/testing/split-packages/README.md +19 -0
- fasthep_workshop-2026.6.1/examples/testing/split-packages/author.yaml +62 -0
- fasthep_workshop-2026.6.1/pyproject.toml +123 -0
- fasthep_workshop-2026.6.1/src/fasthep_workshop/__init__.py +6 -0
- fasthep_workshop-2026.6.1/src/fasthep_workshop/_version.py +24 -0
- fasthep_workshop-2026.6.1/src/fasthep_workshop/_version.pyi +8 -0
- fasthep_workshop-2026.6.1/src/fasthep_workshop/hooks/__init__.py +1 -0
- fasthep_workshop-2026.6.1/src/fasthep_workshop/profiles/__init__.py +1 -0
- fasthep_workshop-2026.6.1/src/fasthep_workshop/profiles/registry.yaml +11 -0
- fasthep_workshop-2026.6.1/src/fasthep_workshop/registry.yaml +11 -0
- fasthep_workshop-2026.6.1/src/fasthep_workshop/sinks/__init__.py +1 -0
- fasthep_workshop-2026.6.1/src/fasthep_workshop/sources/__init__.py +1 -0
- fasthep_workshop-2026.6.1/src/fasthep_workshop/sources/toy_source.py +474 -0
- fasthep_workshop-2026.6.1/src/fasthep_workshop/transforms/__init__.py +1 -0
- fasthep_workshop-2026.6.1/templates/analysis-repo/README.md +5 -0
- fasthep_workshop-2026.6.1/templates/analysis-repo/analysis-name/README.md +23 -0
- fasthep_workshop-2026.6.1/templates/analysis-repo/analysis-name/pyproject.toml +25 -0
- fasthep_workshop-2026.6.1/templates/analysis-repo/analysis-name/tests/test_template_smoke.py +5 -0
- fasthep_workshop-2026.6.1/tests/smoke/test_toy_source.py +123 -0
- fasthep_workshop-2026.6.1/tests/smoke/test_workshop_smoke.py +102 -0
- fasthep_workshop-2026.6.1/tutorials/beginner/first-workflow/README.md +454 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py.cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
# Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
# poetry.lock
|
|
109
|
+
# poetry.toml
|
|
110
|
+
|
|
111
|
+
# pdm
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
113
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
114
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
115
|
+
# pdm.lock
|
|
116
|
+
# pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# pixi
|
|
121
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
122
|
+
# pixi.lock
|
|
123
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
124
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
125
|
+
.pixi
|
|
126
|
+
|
|
127
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
128
|
+
__pypackages__/
|
|
129
|
+
|
|
130
|
+
# Celery stuff
|
|
131
|
+
celerybeat-schedule
|
|
132
|
+
celerybeat.pid
|
|
133
|
+
|
|
134
|
+
# Redis
|
|
135
|
+
*.rdb
|
|
136
|
+
*.aof
|
|
137
|
+
*.pid
|
|
138
|
+
|
|
139
|
+
# RabbitMQ
|
|
140
|
+
mnesia/
|
|
141
|
+
rabbitmq/
|
|
142
|
+
rabbitmq-data/
|
|
143
|
+
|
|
144
|
+
# ActiveMQ
|
|
145
|
+
activemq-data/
|
|
146
|
+
|
|
147
|
+
# SageMath parsed files
|
|
148
|
+
*.sage.py
|
|
149
|
+
|
|
150
|
+
# Environments
|
|
151
|
+
.env
|
|
152
|
+
.envrc
|
|
153
|
+
.venv
|
|
154
|
+
env/
|
|
155
|
+
venv/
|
|
156
|
+
ENV/
|
|
157
|
+
env.bak/
|
|
158
|
+
venv.bak/
|
|
159
|
+
|
|
160
|
+
# Spyder project settings
|
|
161
|
+
.spyderproject
|
|
162
|
+
.spyproject
|
|
163
|
+
|
|
164
|
+
# Rope project settings
|
|
165
|
+
.ropeproject
|
|
166
|
+
|
|
167
|
+
# mkdocs documentation
|
|
168
|
+
/site
|
|
169
|
+
|
|
170
|
+
# mypy
|
|
171
|
+
.mypy_cache/
|
|
172
|
+
.dmypy.json
|
|
173
|
+
dmypy.json
|
|
174
|
+
|
|
175
|
+
# Pyre type checker
|
|
176
|
+
.pyre/
|
|
177
|
+
|
|
178
|
+
# pytype static type analyzer
|
|
179
|
+
.pytype/
|
|
180
|
+
|
|
181
|
+
# Cython debug symbols
|
|
182
|
+
cython_debug/
|
|
183
|
+
|
|
184
|
+
# PyCharm
|
|
185
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
186
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
187
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
188
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
189
|
+
# .idea/
|
|
190
|
+
|
|
191
|
+
# Abstra
|
|
192
|
+
# Abstra is an AI-powered process automation framework.
|
|
193
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
194
|
+
# Learn more at https://abstra.io/docs
|
|
195
|
+
.abstra/
|
|
196
|
+
|
|
197
|
+
# Visual Studio Code
|
|
198
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
199
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
200
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
201
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
202
|
+
# .vscode/
|
|
203
|
+
|
|
204
|
+
# Ruff stuff:
|
|
205
|
+
.ruff_cache/
|
|
206
|
+
|
|
207
|
+
# PyPI configuration file
|
|
208
|
+
.pypirc
|
|
209
|
+
|
|
210
|
+
# Marimo
|
|
211
|
+
marimo/_static/
|
|
212
|
+
marimo/_lsp/
|
|
213
|
+
__marimo__/
|
|
214
|
+
|
|
215
|
+
# Streamlit
|
|
216
|
+
.streamlit/secrets.toml
|
|
217
|
+
|
|
218
|
+
# pixi environments
|
|
219
|
+
.pixi/*
|
|
220
|
+
!.pixi/config.toml
|
|
221
|
+
|
|
222
|
+
data
|
|
223
|
+
data/**
|
|
224
|
+
snapshots/
|
|
225
|
+
.hepflow/**
|
|
226
|
+
.fasthep/**
|
|
227
|
+
|
|
228
|
+
# hatch-vcs generated version file
|
|
229
|
+
src/fasthep_workshop/_version.py
|
|
230
|
+
|
|
231
|
+
pixi.lock
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026, FAST-HEP contributors
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
10
|
+
list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
17
|
+
contributors may be used to endorse or promote products derived from
|
|
18
|
+
this software without specific prior written permission.
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
21
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
22
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
23
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
24
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
25
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
26
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
27
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
28
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: fasthep-workshop
|
|
3
|
+
Version: 2026.6.1
|
|
4
|
+
Summary: FAST-HEP workshop examples and analysis-style extension package.
|
|
5
|
+
Author: FAST-HEP contributors
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Requires-Python: >=3.11
|
|
8
|
+
Requires-Dist: awkward
|
|
9
|
+
Requires-Dist: fasthep-carpenter==2026.06.1
|
|
10
|
+
Requires-Dist: fasthep-curator==2026.06.1
|
|
11
|
+
Requires-Dist: fasthep-flow==2026.06.1
|
|
12
|
+
Requires-Dist: fasthep-render==2026.06.1
|
|
13
|
+
Requires-Dist: numpy
|
|
14
|
+
Provides-Extra: docs
|
|
15
|
+
Requires-Dist: myst-parser; extra == 'docs'
|
|
16
|
+
Requires-Dist: pydata-sphinx-theme; extra == 'docs'
|
|
17
|
+
Requires-Dist: sphinx; extra == 'docs'
|
|
18
|
+
Requires-Dist: sphinx-copybutton; extra == 'docs'
|
|
19
|
+
Requires-Dist: sphinx-design; extra == 'docs'
|
|
20
|
+
Requires-Dist: sphinxcontrib-mermaid; extra == 'docs'
|
|
21
|
+
Provides-Extra: test
|
|
22
|
+
Requires-Dist: pytest; extra == 'test'
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
|
|
25
|
+
# fasthep-workshop
|
|
26
|
+
|
|
27
|
+
`fasthep-workshop` is the home for FAST-HEP tutorials, examples, regression workflows, public validation workflows, and the first lightweight analysis-repository template.
|
|
28
|
+
|
|
29
|
+
It is also a lightweight installable analysis-example package. Its import namespace is `fasthep_workshop`, and package-owned registry/profile resources demonstrate how an analysis repository can contribute custom components without relying on fragile `scripts.*` imports.
|
|
30
|
+
|
|
31
|
+
## Install
|
|
32
|
+
|
|
33
|
+
Basic workflow tools:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pip install fasthep-flow fasthep-cli
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
HEP analysis workflows:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
pip install fasthep-flow fasthep-carpenter fasthep-curator fasthep-render fasthep-cli fasthep-workshop
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Later this should become:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
pip install "fasthep[hep]"
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Run Examples
|
|
52
|
+
|
|
53
|
+
Tutorial examples are intended for users and docs. Testing examples are internal
|
|
54
|
+
validation workflows for CI, smoke tests, and package integration checks.
|
|
55
|
+
|
|
56
|
+
Compile the Zmumu tutorial:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
fasthep compile examples/CMS/Zmumu/author.yaml --outdir build/Zmumu
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Run the CI-friendly runtime smoke workflow:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
fasthep run examples/testing/runtime-smoke/author.yaml --outdir build/testing/runtime-smoke
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Compile the generated-data ROOT split package validation workflow:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
python scripts/ci/make_testing_data.py
|
|
72
|
+
fasthep compile examples/testing/split-packages/author.yaml --outdir build/testing/split-packages
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Outputs appear under the selected `build/...` directory. Compiler products are written under `compile/`, graph files under `graph/`, render metadata under `render/`, structured reports under `reports/`, user-facing files under `artifacts/`, and backend/runtime diagnostics under `debug/`.
|
|
76
|
+
|
|
77
|
+
## CI Role
|
|
78
|
+
|
|
79
|
+
These examples are intended as public golden-path validation workflows. Public CI should run parse/compile smoke checks and small runtime examples. CERN GitLab can add private-data and heavier validation workflows without making private data required here.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# fasthep-workshop
|
|
2
|
+
|
|
3
|
+
`fasthep-workshop` is the home for FAST-HEP tutorials, examples, regression workflows, public validation workflows, and the first lightweight analysis-repository template.
|
|
4
|
+
|
|
5
|
+
It is also a lightweight installable analysis-example package. Its import namespace is `fasthep_workshop`, and package-owned registry/profile resources demonstrate how an analysis repository can contribute custom components without relying on fragile `scripts.*` imports.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
Basic workflow tools:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pip install fasthep-flow fasthep-cli
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
HEP analysis workflows:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pip install fasthep-flow fasthep-carpenter fasthep-curator fasthep-render fasthep-cli fasthep-workshop
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Later this should become:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pip install "fasthep[hep]"
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Run Examples
|
|
28
|
+
|
|
29
|
+
Tutorial examples are intended for users and docs. Testing examples are internal
|
|
30
|
+
validation workflows for CI, smoke tests, and package integration checks.
|
|
31
|
+
|
|
32
|
+
Compile the Zmumu tutorial:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
fasthep compile examples/CMS/Zmumu/author.yaml --outdir build/Zmumu
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Run the CI-friendly runtime smoke workflow:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
fasthep run examples/testing/runtime-smoke/author.yaml --outdir build/testing/runtime-smoke
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Compile the generated-data ROOT split package validation workflow:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
python scripts/ci/make_testing_data.py
|
|
48
|
+
fasthep compile examples/testing/split-packages/author.yaml --outdir build/testing/split-packages
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Outputs appear under the selected `build/...` directory. Compiler products are written under `compile/`, graph files under `graph/`, render metadata under `render/`, structured reports under `reports/`, user-facing files under `artifacts/`, and backend/runtime diagnostics under `debug/`.
|
|
52
|
+
|
|
53
|
+
## CI Role
|
|
54
|
+
|
|
55
|
+
These examples are intended as public golden-path validation workflows. Public CI should run parse/compile smoke checks and small runtime examples. CERN GitLab can add private-data and heavier validation workflows without making private data required here.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# CI Strategy
|
|
2
|
+
|
|
3
|
+
Public CI on GitHub or Codeberg should focus on:
|
|
4
|
+
|
|
5
|
+
- YAML parse checks
|
|
6
|
+
- profile resolution checks
|
|
7
|
+
- compile smoke tests
|
|
8
|
+
- small public runtime workflows
|
|
9
|
+
|
|
10
|
+
CERN GitLab can extend this with:
|
|
11
|
+
|
|
12
|
+
- private-data workflows
|
|
13
|
+
- heavier runtime validation
|
|
14
|
+
- long-running comparisons
|
|
15
|
+
|
|
16
|
+
Private data should not be required for public CI.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Example Data
|
|
2
|
+
|
|
3
|
+
Examples should use public data or generated toy data.
|
|
4
|
+
|
|
5
|
+
Large ROOT files should not be committed directly. Prefer:
|
|
6
|
+
|
|
7
|
+
- a small generation script for toy examples
|
|
8
|
+
- a download script for public external datasets
|
|
9
|
+
- README links to public files
|
|
10
|
+
|
|
11
|
+
The testing split-package workflow uses `scripts/ci/make_testing_data.py` to
|
|
12
|
+
generate a tiny local ROOT file. The runtime smoke workflow uses an in-repo toy
|
|
13
|
+
source helper so public CI can run without network or external data.
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
version: 4.0
|
|
2
|
+
|
|
3
|
+
use:
|
|
4
|
+
profiles:
|
|
5
|
+
- registry
|
|
6
|
+
- fasthep_carpenter:registry
|
|
7
|
+
- fasthep_curator:registry
|
|
8
|
+
- fasthep_curator:default_context
|
|
9
|
+
- fasthep_curator:runtime_diagnostics
|
|
10
|
+
- fasthep_render:registry
|
|
11
|
+
- fasthep_workshop:registry
|
|
12
|
+
|
|
13
|
+
data:
|
|
14
|
+
datasets:
|
|
15
|
+
- name: l1t
|
|
16
|
+
files:
|
|
17
|
+
- data/CMS/L1Trigger/2k.root
|
|
18
|
+
# - data/CMS/L1Trigger/2kmc.root
|
|
19
|
+
- data/CMS/L1Trigger/2kmu.root
|
|
20
|
+
defaults:
|
|
21
|
+
eventtype: mc
|
|
22
|
+
|
|
23
|
+
sources:
|
|
24
|
+
l1:
|
|
25
|
+
kind: root_tree
|
|
26
|
+
tree: l1UpgradeTree/L1UpgradeTree
|
|
27
|
+
stream_type: event_stream
|
|
28
|
+
reco:
|
|
29
|
+
kind: root_tree
|
|
30
|
+
tree: l1JetRecoTree/JetRecoTree
|
|
31
|
+
stream_type: event_stream
|
|
32
|
+
|
|
33
|
+
joins:
|
|
34
|
+
events:
|
|
35
|
+
kind: zip
|
|
36
|
+
on_mismatch: warn
|
|
37
|
+
inputs:
|
|
38
|
+
- {source: l1, prefix: l1}
|
|
39
|
+
- {source: reco, prefix: reco}
|
|
40
|
+
|
|
41
|
+
primary_stream: events
|
|
42
|
+
|
|
43
|
+
styles:
|
|
44
|
+
l1t_unmatched_dr:
|
|
45
|
+
op: hep.render.hist1d
|
|
46
|
+
figure: {dpi: 150}
|
|
47
|
+
axes:
|
|
48
|
+
x:
|
|
49
|
+
name: unmatched_dR
|
|
50
|
+
label: "Unmatched jet ΔR"
|
|
51
|
+
limits: [0, 1]
|
|
52
|
+
y:
|
|
53
|
+
name: events
|
|
54
|
+
label: Number of Events
|
|
55
|
+
scale: log
|
|
56
|
+
limits: [1e-2, 1e7]
|
|
57
|
+
legend: {ncol: 4, loc: upper right}
|
|
58
|
+
style:
|
|
59
|
+
experiment: CMS
|
|
60
|
+
|
|
61
|
+
l1t_jets:
|
|
62
|
+
op: hep.render.heatmap2d
|
|
63
|
+
figure: {dpi: 150}
|
|
64
|
+
axes:
|
|
65
|
+
x:
|
|
66
|
+
name: reco_et
|
|
67
|
+
label: "Offline pT [GeV]"
|
|
68
|
+
limits: [0, 500]
|
|
69
|
+
y:
|
|
70
|
+
name: l1_et
|
|
71
|
+
label: "L1 pT [GeV]"
|
|
72
|
+
limits: [0, 500]
|
|
73
|
+
z:
|
|
74
|
+
name: events
|
|
75
|
+
label: Number of Events
|
|
76
|
+
scale: log
|
|
77
|
+
heatmap2d:
|
|
78
|
+
per_dataset: true
|
|
79
|
+
cbar: true
|
|
80
|
+
style:
|
|
81
|
+
experiment: CMS
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
fields:
|
|
85
|
+
l1_jetEt: {stream: events, branch: "l1.jetEt"}
|
|
86
|
+
l1_jetEta: {stream: events, branch: "l1.jetEta"}
|
|
87
|
+
l1_jetPhi: {stream: events, branch: "l1.jetPhi"}
|
|
88
|
+
|
|
89
|
+
reco_jetEtCorr: {stream: events, branch: "reco.etCorr"}
|
|
90
|
+
reco_jetEta: {stream: events, branch: "reco.eta"}
|
|
91
|
+
reco_jetPhi: {stream: events, branch: "reco.phi"}
|
|
92
|
+
|
|
93
|
+
observers:
|
|
94
|
+
- kind: hep.schema_snapshot
|
|
95
|
+
at: [join.events, project.events, stage.MatchJets]
|
|
96
|
+
out: schema
|
|
97
|
+
|
|
98
|
+
analysis:
|
|
99
|
+
stages:
|
|
100
|
+
- id: MatchJets
|
|
101
|
+
op: cms.match_l1t_jets
|
|
102
|
+
params:
|
|
103
|
+
reco:
|
|
104
|
+
et: reco_jetEtCorr
|
|
105
|
+
eta: reco_jetEta
|
|
106
|
+
phi: reco_jetPhi
|
|
107
|
+
l1:
|
|
108
|
+
et: l1_jetEt
|
|
109
|
+
eta: l1_jetEta
|
|
110
|
+
phi: l1_jetPhi
|
|
111
|
+
dr_max: 0.4
|
|
112
|
+
|
|
113
|
+
- id: HasMatch
|
|
114
|
+
op: hep.selection.cutflow
|
|
115
|
+
from: MatchJets
|
|
116
|
+
params:
|
|
117
|
+
selection:
|
|
118
|
+
All:
|
|
119
|
+
- "n_matched >= 1"
|
|
120
|
+
|
|
121
|
+
- id: NoMatch
|
|
122
|
+
op: hep.selection.cutflow
|
|
123
|
+
from: MatchJets
|
|
124
|
+
params:
|
|
125
|
+
selection:
|
|
126
|
+
All:
|
|
127
|
+
- "n_matched == 0"
|
|
128
|
+
|
|
129
|
+
- id: H_MatchedEt
|
|
130
|
+
op: hep.hist
|
|
131
|
+
from: HasMatch
|
|
132
|
+
params:
|
|
133
|
+
dataset_axis: true
|
|
134
|
+
axes:
|
|
135
|
+
- {name: reco_et, type: regular, source: matched_reco_et, bins: {low: 0, high: 500, nbins: 100}}
|
|
136
|
+
- {name: l1_et, type: regular, source: matched_l1_et, bins: {low: 0, high: 500, nbins: 100}}
|
|
137
|
+
render:
|
|
138
|
+
style: l1t_jets
|
|
139
|
+
when: final
|
|
140
|
+
out: H_MatchedEt
|
|
141
|
+
|
|
142
|
+
- id: H_unmatched_dR
|
|
143
|
+
op: hep.hist
|
|
144
|
+
from: NoMatch
|
|
145
|
+
params:
|
|
146
|
+
dataset_axis: true
|
|
147
|
+
axes:
|
|
148
|
+
- {name: unmatched_dR, type: regular, source: unmatched_dr, bins: {low: 0, high: 1, nbins: 100}}
|
|
149
|
+
render:
|
|
150
|
+
style: l1t_unmatched_dr
|
|
151
|
+
when: final
|
|
152
|
+
out: H_unmatched_dR
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"CMS/L1Trigger/2k.root": "https://cernbox.cern.ch/remote.php/dav/public-files/bRvsnkhSl3eCFNl/2k.root",
|
|
3
|
+
"CMS/L1Trigger/2kmc.root": "https://cernbox.cern.ch/remote.php/dav/public-files/eyAEZH6LQyiySQs/2kmc.root",
|
|
4
|
+
"CMS/L1Trigger/2kmu.root": "https://cernbox.cern.ch/remote.php/dav/public-files/FcWgoWCOg6vXOAn/2kmu.root"
|
|
5
|
+
}
|