Main Page
Namespaces
Classes
Package Documentation
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
11
KalmanVertexFitter::KalmanVertexFitter
(
bool
useSmoothing )
12
{
13
edm::ParameterSet
pSet =
defaultParameters
();
14
setup
(pSet, useSmoothing);
15
}
16
17
KalmanVertexFitter::KalmanVertexFitter
(
const
edm::ParameterSet
& pSet,
bool
useSmoothing )
18
{
19
setup
(pSet, useSmoothing);
20
}
21
22
void
KalmanVertexFitter::setup
(
const
edm::ParameterSet
& pSet,
bool
useSmoothing )
23
{
24
if
(useSmoothing) {
25
KalmanVertexTrackUpdator<5>
vtu;
26
KalmanSmoothedVertexChi2Estimator<5>
vse;
27
KalmanTrackToTrackCovCalculator<5>
covCalc;
28
SequentialVertexSmoother<5>
smoother(vtu, vse, covCalc);
29
theSequentialFitter
30
=
new
SequentialVertexFitter<5>
(pSet,
FsmwLinearizationPointFinder
(20, -2., 0.4, 10.),
31
KalmanVertexUpdator<5>
(),
32
smoother,
LinearizedTrackStateFactory
());
33
}
34
else
{
35
DummyVertexSmoother<5>
smoother;
36
theSequentialFitter
37
=
new
SequentialVertexFitter<5>
(pSet,
FsmwLinearizationPointFinder
(20, -2., 0.4, 10.),
38
KalmanVertexUpdator<5>
(),
39
smoother,
LinearizedTrackStateFactory
());
40
}
41
}
42
43
44
edm::ParameterSet
KalmanVertexFitter::defaultParameters
()
const
45
{
46
edm::ParameterSet
pSet;
47
pSet.
addParameter
<
double
>(
"maxDistance"
, 0.01);
48
pSet.
addParameter
<
int
>(
"maxNbrOfIterations"
, 10);
//10
49
return
pSet;
50
}
KalmanVertexTrackUpdator.h
DummyVertexSmoother
Definition:
DummyVertexSmoother.h:11
FsmwLinearizationPointFinder
Definition:
FsmwLinearizationPointFinder.h:23
KalmanVertexFitter::defaultParameters
edm::ParameterSet defaultParameters() const
Definition:
KalmanVertexFitter.cc:44
LinearizedTrackStateFactory
Definition:
LinearizedTrackStateFactory.h:14
KalmanVertexTrackUpdator< 5 >
KalmanTrackToTrackCovCalculator.h
edm::ParameterSet::addParameter
void addParameter(std::string const &name, T const &value)
Definition:
ParameterSet.h:125
FsmwLinearizationPointFinder.h
KalmanVertexFitter::theSequentialFitter
const SequentialVertexFitter< 5 > * theSequentialFitter
Definition:
KalmanVertexFitter.h:137
SequentialVertexSmoother< 5 >
KalmanVertexUpdator.h
KalmanSmoothedVertexChi2Estimator.h
KalmanSmoothedVertexChi2Estimator< 5 >
KalmanVertexFitter.h
KalmanVertexFitter::setup
void setup(const edm::ParameterSet &pSet, bool useSmoothing)
Definition:
KalmanVertexFitter.cc:22
KalmanVertexUpdator< 5 >
KalmanVertexFitter::KalmanVertexFitter
KalmanVertexFitter(bool useSmoothing=false)
Definition:
KalmanVertexFitter.cc:11
KalmanTrackToTrackCovCalculator
Definition:
KalmanTrackToTrackCovCalculator.h:13
edm::ParameterSet
Definition:
ParameterSet.h:36
DummyVertexSmoother.h
SequentialVertexFitter< 5 >
SequentialVertexSmoother.h
Generated for CMSSW Reference Manual by
1.8.11