diff --git a/PhysicsAnalysis/JetTagging/FlavorTagDiscriminants/Root/VRJetOverlapDecorator.cxx b/PhysicsAnalysis/JetTagging/FlavorTagDiscriminants/Root/VRJetOverlapDecorator.cxx index 1c5fcbbbe4fee4b2c4c5aab6ed4d79e0223e3387..9b2ce177e491c0765794866d6a6df5d441ceaa3f 100644 --- a/PhysicsAnalysis/JetTagging/FlavorTagDiscriminants/Root/VRJetOverlapDecorator.cxx +++ b/PhysicsAnalysis/JetTagging/FlavorTagDiscriminants/Root/VRJetOverlapDecorator.cxx @@ -76,7 +76,9 @@ VRJetOverlapDecorator::VRJetOverlapDecorator(const VRJetOverlapConfig& cfg): } void VRJetOverlapDecorator::decorate(const xAOD::JetContainer& jets) const { - if (jets.size() < 2) return; + // if no jet is present, do nothing + if (jets.empty() && m_param_source == VRJetParameters::EDM) return; + VRConfig cfg; if (m_param_source == VRJetParameters::EDM) { // we'll assume all the jets have the same parameters, I don't