Skip to content

Commit 988554b

Browse files
committed
catch VertexException
1 parent 7e5016a commit 988554b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

RecoMuon/GlobalTrackingTools/plugins/MuonBeamspotConstraintValueMapProducer.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "TrackingTools/TransientTrack/interface/TransientTrack.h"
1515
#include "RecoVertex/KalmanVertexFit/interface/SingleTrackVertexConstraint.h"
1616
#include "DataFormats/VertexReco/interface/Vertex.h"
17+
#include "RecoVertex/VertexPrimitives/interface/VertexException.h"
1718

1819
class MuonBeamspotConstraintValueMapProducer : public edm::global::EDProducer<> {
1920
public:
@@ -95,7 +96,7 @@ class MuonBeamspotConstraintValueMapProducer : public edm::global::EDProducer<>
9596
chi2s.push_back(std::get<2>(btft));
9697
tbd = false;
9798
}
98-
} catch (...) {
99+
} catch (const VertexException& exc) {
99100
// Update failed; give up.
100101
}
101102
}

0 commit comments

Comments
 (0)