Skip to content

Use numerical values in invertFlags list to avoid AnalysisBase parse errors

@ravinab

AnalysisBase cannot parse a python list of bools to convert to a vector<bool> property. Consequently, we need to specify invertFlags values as 0,1 for CP::EventFlagSelectionAlg in an AB job. In Athena, the parsing in either convention works.

Fixes this error as reported by @ravinab:

Package.AsgTools.PropertyERROR   /build1/atnight/localbuilds/nightlies/AnalysisBase/main/athena/Control/AthToolSupport/AsgTools/Root/TProperty.cxx:151 (StatusCode asg::detail::{anonymous}::make_char_token(const std::string&, std::__cxx11::basic_std::string<char>::size_type&, asg::detail::{anonymous}::Token&)): unexpected token 'F' at position1 of string: [False]

It would be much better if vector<bool> could actually be read correctly from python boleans, but I would leave this to AB experts. Let me ping @krumnack in particular, as I went ahead and activated runEventCleaning, in the full CP algs test, to ensure this functionality is tested. In principle the same goes for the GRL selection, but that was beyond the scope of the intended fix. By default, the cleaning sequence will still not activate the jet cleaning, so that no users will get a change of behaviour.

Edited by Teng Jian Khoo

Merge request reports