Skip to content

Commit 2ef2c26

Browse files
c-dilkstongtongcao
authored andcommitted
feat: pre-commit hook to update banks README (#505)
1 parent 9f61e2f commit 2ef2c26

4 files changed

Lines changed: 29 additions & 16 deletions

File tree

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,8 @@
5151
# dump a table
5252
puts """# Bank Group and Item IDs
5353
54-
This file was generated by
55-
```bash
56-
#{$0} #{ARGV.join ' '}
57-
```
58-
59-
> [!IMPORTANT]
60-
> Please re-run this script if you modify any of the bank definitions.
54+
> [!NOTE]
55+
> Iguana banks, which are defined in the Iguana repository, use group number 30000.
6156
6257
"""
6358

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
.github/make_banks_readme.rb etc/bankdefs/hipo4 > etc/bankdefs/hipo4/README.md

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
repos:
2+
- repo: local
3+
hooks:
4+
- id: make_banks_readme
5+
name: make banks readme
6+
entry: .github/make_banks_readme_precommit.sh
7+
language: script
8+
pass_filenames: false

etc/bankdefs/hipo4/README.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
# Bank Group and Item IDs
22

3-
This file was generated by
4-
```bash
5-
etc/bankdefs/util/dumpBankIDs.rb etc/bankdefs/hipo4
6-
```
7-
8-
> [!IMPORTANT]
9-
> Please re-run this script if you modify any of the bank definitions.
3+
> [!NOTE]
4+
> Iguana banks, which are defined in the Iguana repository, use group number 30000.
105
116

127
## Group 40
@@ -381,13 +376,24 @@ etc/bankdefs/util/dumpBankIDs.rb etc/bankdefs/hipo4
381376

382377
| Item ID | Name | Description |
383378
| --- | --- | --- |
384-
| 12 | `AHDC::tdc` | TDC bank for the ALERT Wire Chamber |
379+
| 10 | `AHDC::wf` | Waveform bank for the AHDC |
380+
| 11 | `AHDC::adc` | ADC bank for the ALERT Wire Chamber |
385381

386382
## Group 22500
387383

388384
| Item ID | Name | Description |
389385
| --- | --- | --- |
390-
| 11 | `ATOF::adc` | ADC bank for the ALERT time-of-flight detector |
386+
| 12 | `ATOF::tdc` | TDC bank for the ALERT TOF |
387+
| 21 | `ATOF::hits` | Reconstructed ATOF hits |
388+
| 22 | `ATOF::clusters` | Clusters in ATOF |
389+
390+
## Group 22600
391+
392+
| Item ID | Name | Description |
393+
| --- | --- | --- |
394+
| 21 | `RECOIL::hits` | RECOIL hits |
395+
| 22 | `RECOIL::clusters` | reconstructed clusters from RECOIL |
396+
| 23 | `RECOIL::crosses` | reconstructed crosses from RECOIL |
391397

392398
## Group 23000
393399

@@ -399,3 +405,5 @@ etc/bankdefs/util/dumpBankIDs.rb etc/bankdefs/hipo4
399405
| 24 | `AHDC::PreClusters` | Pre Clusters info |
400406
| 25 | `AHDC::Clusters` | Clusters info |
401407
| 26 | `AHDC::KFTrack` | Reco Kalman Filter Tracks |
408+
| 30 | `AHDC_AI::Prediction` | Prediction given by AI |
409+
| 31 | `ALERT::Projections` | Track Projections to ATOF |

0 commit comments

Comments
 (0)