https://github.com/loiccoyle/blm_header_repo
(hopefully) correct LHC BLM headers throughout the ages.
https://github.com/loiccoyle/blm_header_repo
blm cern header lhc metadata
Last synced: 3 months ago
JSON representation
(hopefully) correct LHC BLM headers throughout the ages.
- Host: GitHub
- URL: https://github.com/loiccoyle/blm_header_repo
- Owner: loiccoyle
- License: mit
- Created: 2020-04-21T13:39:38.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-17T17:33:41.000Z (over 3 years ago)
- Last Synced: 2025-01-10T07:11:55.944Z (4 months ago)
- Topics: blm, cern, header, lhc, metadata
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BLM headers
BLM headers are no fun to deal with.Check the [`headers`](./headers) folder for some generated BLM headers.
# Get the headers
To download just the headers run the [`dl_headers.py`](./dl_headers.py) script, from a terminal:
```
curl https://raw.githubusercontent.com/loiccoyle/blm_header_repo/master/dl_headers.py | python3
```# Do it yourself
If you want to regenerate the headers, you can by:
```
git clone https://github.com/loiccoyle/blm_header_repo
cd blm_header_repo
make dependencies
make blm_headers
```
Note it usually is a good idea to do it in a [virtual environment](https://docs.python.org/3/tutorial/venv.html).# How it works
The headers are generated using [`loiccoyle/blm_header`](https://github.com/loiccoyle/blm_header). Have a look at the [`generate_headers.py`](./generate_headers.py) file, it should be relatively easy to understand whats going on. The basic gist is the following:* I get the timings of the changes from `timber`'s BLM metadata (plus a few extra manually added).
* For each timestamp I find the closest fill following it which reaches `STABLE` and start matching on the 2 hours following the `INJPROT` beam mode. This avoids matching on an empty machine which improves the matching quality as it is not matching on noise.