Recover AMI tag and generator versions in derivations
Legacy samples often have incomplete metadata:
- AMI tag propagation was unreliable in the past
- generators versions in metadata were not present for old EVNT
We can recover AMI tags from INDS
environment variable in the production system. Generators versions can be recovered from a manual database.
What is done in this MR is to update AMI tag metadata if not matching the one from INDS
. Generators versions are also updated if available. For example this happens for the current Run 3 MC PHYS CI test.
Tagging several people:
- @mmuskinj as the original author
- @dhirsch, @mgignac, @cgutscho for PMG
-
@ewelina, @averbyts, @jchapman for generators infrastructure (I'm happy to move the config somewhere else, but eventually parts of the code will be needed in
AnalysisBase
) - @calpigia, @egramsta, @hrussell, @gwatts for AMG/derivations as the next step is to discuss how to autoconfigure e.g. MC/MC SFs for ftag
- @maszyman, @amete, @gemmeren for metadata
Notes:
- Full
AnalysisBase
support will come in a separate MR, this one is already large enough. - For now any mismatch in generators versions is not checked. Only version number is missing it is added.
-
TruthMetaData
does not get updated if already present (out of scope of this MR). - Replaces !48284 (closed).
Edited by Tadej Novak