Skip to content

File meta data fix

Frank Berghaus requested to merge berghaus/athena:FileMetaDataFix into 21.2

Last week @zmarshal contact me pointing out

We have 1B events already produced (and mostly reco’d) that have a bad DSID in the metadata, and they want to know if we can run something AODFix-like to change the file metadata during the derivation step. The event metadata has already been fixed.

This merge request aims to change the xAOD::FileMetaData::mcProcID in the DAOD production step for those datasets. The EventInfoRunNumberFixAlg already does this for the xAOD::EventInfo and ::EventInfo. The FileMetaDataMarkUpTool should be picking up the fix from ::EventInfo, but it gets no entries from ::EventInfo::event_types(), so does nothing.

The FileMetaDataFixTool is scheduled after the FileMetaDataTool and FileMetaDataCreatorTool do their work in MetaDataStop and changes the value to that given in the McChannelNumber argument. I just use the logic of the EventInfoRunNumberFixAlg to schedule the new tool on, what I hope; is the correct set of inputs.

Tagging WIP for now, to get some feedback.

Tag: @gemmeren @amete @tsulaia @akraszna

Edited by Frank Berghaus

Merge request reports