Skip to content

Draft: Initial commit for adding vector of MC event weights from event info - bugged at the moment.

Thomas Benjamin Dingley requested to merge (removed):MC_weights into main

Hi @dguest & @svanstro ,

I'm looking into implementing MC event weights within the TDD. There's a function directly from event info to return the array of weights https://ucatlas.github.io/RootCoreDocumentation/2.4.28/df/df8/classxAOD_1_1EventInfo__v1.html#aaa66353a56b59ede862025d543c2f97f, once it's working I will add some reference within the TDD for exactly which MC weight each index corresponds to. We already have mcEventWeight implemented, so I looked to do the same as a vector of floats for the mcEventWeights.

I've had a first go here but keep getting errors with https://gitlab.cern.ch/atlas/athena/-/tree/main/PhysicsAnalysis/AnalysisCommon/HDF5Utils/HDF5Utils. I've attached the error message and wondered if you had any pointers to solve the problem?

error_error.txt

If this doesn't work, then there should be other options via PMG (https://twiki.cern.ch/twiki/bin/view/AtlasProtected/PmgEventWeights) and accessing TruthMetaData within the DAOD. Let me know what you think 😄

Thanks,

Tom

Merge request reports