From 18d6a7a4a8e51f6f6b7c2b30cd71237c9a2f78de Mon Sep 17 00:00:00 2001 From: Matthew Date: Tue, 18 Jun 2024 02:13:51 +0200 Subject: [PATCH] add log warning --- RecoBTag/FeatureTools/plugins/DeepBoostedJetTagInfoProducer.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RecoBTag/FeatureTools/plugins/DeepBoostedJetTagInfoProducer.cc b/RecoBTag/FeatureTools/plugins/DeepBoostedJetTagInfoProducer.cc index 8aacb9b3f870c..7688e117f1b9e 100644 --- a/RecoBTag/FeatureTools/plugins/DeepBoostedJetTagInfoProducer.cc +++ b/RecoBTag/FeatureTools/plugins/DeepBoostedJetTagInfoProducer.cc @@ -683,6 +683,8 @@ void DeepBoostedJetTagInfoProducer::fillParticleFeatures(DeepBoostedJetFeatures pv_ass = (*pvas_)[cand]; if (pv_ass.isNonnull()) vtx_ass = vtx_ass_from_pfcand(*reco_cand, pv_ass_quality, pv_ass); + else + edm::LogWarning("DeepBoostedJetTagInfoProducer") << "Null primary vertex reference"; } else throw edm::Exception(edm::errors::InvalidReference) << "Vertex association missing"; }