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
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
}
KalmanVertexTrackUpdator.h
DummyVertexSmoother
Definition:
DummyVertexSmoother.h:11
FsmwLinearizationPointFinder
Definition:
FsmwLinearizationPointFinder.h:23
KalmanVertexFitter::defaultParameters
edm::ParameterSet defaultParameters() const
Definition:
KalmanVertexFitter.cc:38
LinearizedTrackStateFactory
Definition:
LinearizedTrackStateFactory.h:14
KalmanVertexTrackUpdator< 5 >
KalmanTrackToTrackCovCalculator.h
edm::ParameterSet::addParameter
void addParameter(std::string const &name, T const &value)
Definition:
ParameterSet.h:124
FsmwLinearizationPointFinder.h
KalmanVertexFitter::theSequentialFitter
const SequentialVertexFitter< 5 > * theSequentialFitter
Definition:
KalmanVertexFitter.h:111
SequentialVertexSmoother< 5 >
KalmanVertexUpdator.h
KalmanSmoothedVertexChi2Estimator.h
KalmanSmoothedVertexChi2Estimator< 5 >
KalmanVertexFitter.h
KalmanVertexFitter::setup
void setup(const edm::ParameterSet &pSet, bool useSmoothing)
Definition:
KalmanVertexFitter.cc:17
KalmanVertexUpdator< 5 >
KalmanVertexFitter::KalmanVertexFitter
KalmanVertexFitter(bool useSmoothing=false)
Definition:
KalmanVertexFitter.cc:10
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