Skip to content

Make flow element dumping work for JETM2

Dan Guest requested to merge dguest/training-dataset-dumper:jetm2 into r22

This should close #100 (closed), the idea is to get the dumper to work to dump QG tagging inputs. For now I didn't add any unit tests, since JETM4 in p5441 is missing quite a few variables and it will likely be updated. I created ATLJETMET-1485 to track this.

One of the missing variables was the primary vertex covariance, so I made primary vertex information optional (if you omit vertex_collection in the config no decorations will be added to EventInfo). While I was at it I made some progress on #52 (closed): the top level configuration now uses nlohmann everywhere, it's just converted to ptree in some of the functions below that.

Also closes #101 (closed): I made the initialization of some tools conditional on them actually being used.

I tested an h5diff on the EMPFlow.json and TracklessEMPFlow.json configs before and after these changes, the outputs were identical.

Edited by Dan Guest

Merge request reports