RecoVertex
KalmanVertexFit
src
KalmanVertexFitter.cc
Go to the documentation of this file.
1
#include "
RecoVertex/KalmanVertexFit/interface/KalmanVertexFitter.h
"
2
#include "
RecoVertex/KalmanVertexFit/interface/KalmanVertexUpdator.h
"
3
#include "
RecoVertex/VertexTools/interface/SequentialVertexSmoother.h
"
4
#include "
RecoVertex/VertexTools/interface/DummyVertexSmoother.h
"
5
#include "
RecoVertex/KalmanVertexFit/interface/KalmanVertexTrackUpdator.h
"
6
#include "
RecoVertex/KalmanVertexFit/interface/KalmanSmoothedVertexChi2Estimator.h
"
7
#include "
RecoVertex/KalmanVertexFit/interface/KalmanTrackToTrackCovCalculator.h
"
8
#include "
RecoVertex/LinearizationPointFinders/interface/FsmwLinearizationPointFinder.h
"
9
10
KalmanVertexFitter::KalmanVertexFitter
(
bool
useSmoothing) {
11
edm::ParameterSet
pSet =
defaultParameters
();
12
setup
(pSet, useSmoothing);
13
}
14
15
KalmanVertexFitter::KalmanVertexFitter
(
const
edm::ParameterSet
& pSet,
bool
useSmoothing) {
setup
(pSet, useSmoothing); }
16
17
void
KalmanVertexFitter::setup
(
const
edm::ParameterSet
& pSet,
bool
useSmoothing) {
18
if
(useSmoothing) {
19
KalmanVertexTrackUpdator<5>
vtu;
20
KalmanSmoothedVertexChi2Estimator<5>
vse;
21
KalmanTrackToTrackCovCalculator<5>
covCalc;
22
SequentialVertexSmoother<5>
smoother(vtu, vse, covCalc);
23
theSequentialFitter
=
new
SequentialVertexFitter<5>
(pSet,
24
FsmwLinearizationPointFinder
(20, -2., 0.4, 10.),
25
KalmanVertexUpdator<5>
(),
26
smoother,
27
LinearizedTrackStateFactory
());
28
}
else
{
29
DummyVertexSmoother<5>
smoother;
30
theSequentialFitter
=
new
SequentialVertexFitter<5>
(pSet,
31
FsmwLinearizationPointFinder
(20, -2., 0.4, 10.),
32
KalmanVertexUpdator<5>
(),
33
smoother,
34
LinearizedTrackStateFactory
());
35
}
36
}
37
38
edm::ParameterSet
KalmanVertexFitter::defaultParameters
()
const
{
39
edm::ParameterSet
pSet;
40
pSet.
addParameter
<
double
>(
"maxDistance"
, 0.01);
41
pSet.
addParameter
<
int
>(
"maxNbrOfIterations"
, 10);
//10
42
return
pSet;
43
}
DummyVertexSmoother
Definition:
DummyVertexSmoother.h:11
KalmanVertexFitter::KalmanVertexFitter
KalmanVertexFitter(bool useSmoothing=false)
Definition:
KalmanVertexFitter.cc:10
FsmwLinearizationPointFinder.h
KalmanVertexUpdator< 5 >
KalmanVertexTrackUpdator< 5 >
KalmanVertexFitter.h
FsmwLinearizationPointFinder
Definition:
FsmwLinearizationPointFinder.h:23
KalmanTrackToTrackCovCalculator.h
SequentialVertexSmoother< 5 >
KalmanTrackToTrackCovCalculator
Definition:
KalmanTrackToTrackCovCalculator.h:13
LinearizedTrackStateFactory
Definition:
LinearizedTrackStateFactory.h:14
KalmanSmoothedVertexChi2Estimator< 5 >
SequentialVertexFitter< 5 >
SequentialVertexSmoother.h
edm::ParameterSet
Definition:
ParameterSet.h:36
DummyVertexSmoother.h
edm::ParameterSet::addParameter
void addParameter(std::string const &name, T const &value)
Definition:
ParameterSet.h:124
KalmanVertexTrackUpdator.h
KalmanVertexUpdator.h
KalmanVertexFitter::defaultParameters
edm::ParameterSet defaultParameters() const
Definition:
KalmanVertexFitter.cc:38
KalmanVertexFitter::setup
void setup(const edm::ParameterSet &pSet, bool useSmoothing)
Definition:
KalmanVertexFitter.cc:17
KalmanSmoothedVertexChi2Estimator.h
KalmanVertexFitter::theSequentialFitter
const SequentialVertexFitter< 5 > * theSequentialFitter
Definition:
KalmanVertexFitter.h:111
Generated for CMSSW Reference Manual by
1.8.16