File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
PhysicsTools/PatAlgos/plugins Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -53,9 +53,14 @@ class PATLeptonTimeLifeInfoProducer : public edm::stream::EDProducer<> {
5353 static bool fitVertex (const std::vector<reco::TransientTrack>& transTrk, TransientVertex& transVtx) {
5454 if (transTrk.size () < 2 )
5555 return false ;
56- KalmanVertexFitter kvf (true );
57- transVtx = kvf.vertex (transTrk);
58- return transVtx.hasRefittedTracks () && transVtx.refittedTracks ().size () == transTrk.size ();
56+ try {
57+ KalmanVertexFitter kvf (true );
58+ transVtx = kvf.vertex (transTrk);
59+ return transVtx.hasRefittedTracks () && transVtx.refittedTracks ().size () == transTrk.size ();
60+ } catch (VertexException& e) {
61+ edm::LogWarning (" PATLeptonTimeLifeInfoProducer" ) << " fitVertex failed: " << e.what ();
62+ return false ;
63+ }
5964 }
6065
6166 // --- configuration parameters
You can’t perform that action at this time.
0 commit comments