Skip to content

Commit e397445

Browse files
author
Lovisa
committed
Moving muonSystemBounds to SequentialVertexFitter
1 parent f6aed18 commit e397445

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

RecoVertex/KalmanVertexFit/interface/KalmanVertexFitter.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@ class KalmanVertexFitter : public VertexFitter<5> {
109109
edm::ParameterSet defaultParameters() const;
110110

111111
SequentialVertexFitter<5>* theSequentialFitter;
112-
113-
float muonSystemBoundsRadius{740.};
114-
float muonSystemBoundsHalfLength{960.};
115112
};
116113

117114
#endif

RecoVertex/KalmanVertexFit/src/KalmanVertexFitter.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ void KalmanVertexFitter::setup(const edm::ParameterSet& pSet, bool useSmoothing,
3535
smoother,
3636
LinearizedTrackStateFactory());
3737
}
38-
if (useMuonSystemBounds) {
39-
theSequentialFitter->setTrackerBounds(muonSystemBoundsRadius, muonSystemBoundsHalfLength);
40-
}
38+
if (useMuonSystemBounds)
39+
theSequentialFitter->setMuonSystemBounds();
4140
}
4241

4342
edm::ParameterSet KalmanVertexFitter::defaultParameters() const {

RecoVertex/VertexTools/interface/SequentialVertexFitter.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@ class SequentialVertexFitter : public VertexFitter<N> {
180180
trackerBoundsHalfLength = halfLength;
181181
}
182182

183+
void setMuonSystemBounds() {
184+
trackerBoundsRadius = kMuonSystemBoundsRadius;
185+
trackerBoundsHalfLength = kMuonSystemBoundsHalfLength;
186+
}
187+
183188
protected:
184189
/**
185190
* Default constructor. Is here, as we do not want anybody to use it.
@@ -245,6 +250,8 @@ class SequentialVertexFitter : public VertexFitter<N> {
245250
// FIXME using hard-coded tracker bounds as default instead of taking them from geometry service
246251
float trackerBoundsRadius{112.};
247252
float trackerBoundsHalfLength{273.5};
253+
static constexpr float kMuonSystemBoundsRadius = 740.;
254+
static constexpr float kMuonSystemBoundsHalfLength = 960.;
248255

249256
edm::ParameterSet thePSet;
250257
LinearizationPointFinder* theLinP;

0 commit comments

Comments
 (0)