Repository navigation
Commit b7ce77e
Record FirstOrbitMC and the software version in MCProdInfo
This stores the first orbit used by an anchored MC job and its software version in its MCProdInfo object, and provides a new tool mcprodinfo_firstorbit.py that adds the first orbit to existing productions.
- Analysis uses FirstOrbitMC to align its timeframes with the MC.
- McTag is now filled at job time from ALIEN_JDL_PACKAGES.
- A stored FirstOrbitMC is never replaced; a job with a different value keeps it and prints a warning. Only force_overwrite, as used by the tool, replaces it.
- Optional fields a writer leaves empty keep their stored values, e.g. FirstOrbitMC for the harvester with --overwrite.
- If the existing object cannot be read, nothing is published.
- Optional metadata with value None is no longer uploaded as the string "None", and metadata values are URL-escaped.
- Reading an object that lacks a required field no longer raises a TypeError.
- The tool reads FirstOrbitMC per run from the log archives of the run's own jobs, found via MonALISA.
- The software of each run is taken from its masterjob JDL and log archives; runs whose jobs disagree are flagged and skipped.
- Runs without reachable archive are filled, and a sample cross-checked, by rerunning the anchoring with the run's software.
- apply skips runs that already carry the value and stops if a run changed since the scan.
Usage:
mcprodinfo_firstorbit.py scan --tag LHC26h3 -o LHC26h3.json
mcprodinfo_firstorbit.py rerun LHC26h3.json --crosscheck 3
mcprodinfo_firstorbit.py apply LHC26h3.json --comment "FirstOrbitMC added because of O2-7335" --yes
For LHC26h3 the scan gives 60 runs made with MC-prod-2026-v12 (shift 2), 3 runs made with v14 (aligned) and 4 runs without jobs.
https://its.cern.ch/jira/browse/O2-7335
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent ef75c8f commit b7ce77e
3 files changed
Lines changed: 354 additions & 5 deletions
File tree
- MC
- bin
- prodinfo
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
811 | 811 | | |
812 | 812 | | |
813 | 813 | | |
| 814 | + | |
814 | 815 | | |
815 | 816 | | |
816 | 817 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
90 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
98 | 105 | | |
99 | 106 | | |
100 | 107 | | |
| |||
127 | 134 | | |
128 | 135 | | |
129 | 136 | | |
130 | | - | |
| 137 | + | |
| 138 | + | |
131 | 139 | | |
132 | 140 | | |
133 | 141 | | |
| |||
153 | 161 | | |
154 | 162 | | |
155 | 163 | | |
156 | | - | |
157 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
158 | 186 | | |
159 | | - | |
| 187 | + | |
160 | 188 | | |
0 commit comments