RecoVertex
ConfigurableVertexReco
src
ConfigurableAdaptiveFitter.cc
Go to the documentation of this file.
1
#include "
RecoVertex/ConfigurableVertexReco/interface/ConfigurableAdaptiveFitter.h
"
2
#include "
RecoVertex/ConfigurableVertexReco/interface/ReconstructorFromFitter.h
"
3
#include "
RecoVertex/AdaptiveVertexFit/interface/AdaptiveVertexFitter.h
"
4
#include "
RecoVertex/VertexTools/interface/GeometricAnnealing.h
"
5
#include "
RecoVertex/LinearizationPointFinders/interface/DefaultLinearizationPointFinder.h
"
6
// #include "RecoVertex/LinearizationPointFinders/interface/GenericLinearizationPointFinder.h"
7
// #include "RecoVertex/KalmanVertexFit/interface/KalmanVertexFitter.h"
8
// #include "RecoVertex/LinearizationPointFinders/interface/ZeroLinearizationPointFinder.h"
9
#include "
RecoVertex/KalmanVertexFit/interface/KalmanVertexUpdator.h
"
10
#include "
RecoVertex/KalmanVertexFit/interface/KalmanVertexTrackCompatibilityEstimator.h
"
11
#include "
RecoVertex/ConfigurableVertexReco/interface/ConfigurableAnnealing.h
"
12
#include "
RecoVertex/VertexTools/interface/DummyVertexSmoother.h
"
13
#include "
RecoVertex/KalmanVertexFit/interface/KalmanVertexSmoother.h
"
14
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
15
16
using namespace
std
;
17
18
namespace
{
19
edm::ParameterSet
mydefaults() {
20
edm::ParameterSet
ret
;
21
ret
.addParameter<
string
>(
"annealing"
,
"geom"
);
22
ret
.addParameter<
bool
>(
"smoothing"
,
true
);
23
ret
.addParameter<
double
>(
"sigmacut"
, 3.0);
24
ret
.addParameter<
double
>(
"Tini"
, 256.0);
25
ret
.addParameter<
double
>(
"ratio"
, 0.25);
26
27
ret
.addParameter<
double
>(
"maxshift"
, 0.0001);
28
ret
.addParameter<
double
>(
"maxlpshift"
, 0.1);
29
ret
.addParameter<
int
>(
"maxstep"
, 30);
30
ret
.addParameter<
double
>(
"weightthreshold"
, 0.001);
31
return
ret
;
32
}
33
}
// namespace
34
35
ConfigurableAdaptiveFitter::ConfigurableAdaptiveFitter
() :
AbstractConfFitter
(
AdaptiveVertexFitter
()) {}
36
37
void
ConfigurableAdaptiveFitter::configure
(
const
edm::ParameterSet
&
n
) {
38
edm::ParameterSet
m
=
n
;
39
m
.augment(mydefaults());
40
ConfigurableAnnealing
ann(
m
);
41
DefaultLinearizationPointFinder
linpt;
42
// ZeroLinearizationPointFinder linpt;
43
// KalmanVertexFitter kvf;
44
// GenericLinearizationPointFinder linpt ( kvf );
45
KalmanVertexUpdator<5>
updator
;
46
bool
s
=
m
.getParameter<
bool
>(
"smoothing"
);
47
VertexSmoother<5>
* smoother =
nullptr
;
48
if
(
s
) {
49
smoother =
new
KalmanVertexSmoother
();
50
}
else
{
51
smoother =
new
DummyVertexSmoother<5>
();
52
}
53
KalmanVertexTrackCompatibilityEstimator<5>
estimator
;
54
55
if
(
theFitter
)
56
delete
theFitter
;
57
AdaptiveVertexFitter
* fitter =
new
AdaptiveVertexFitter
(ann, linpt,
updator
,
estimator
, *smoother);
58
delete
smoother;
59
fitter->
setParameters
(
m
);
60
theFitter
= fitter;
61
}
62
63
ConfigurableAdaptiveFitter::~ConfigurableAdaptiveFitter
() {
64
/*
65
if (theFitter) delete theFitter;
66
theFitter=0;
67
*/
68
}
69
70
ConfigurableAdaptiveFitter::ConfigurableAdaptiveFitter
(
const
ConfigurableAdaptiveFitter
&
o
) :
AbstractConfFitter
(
o
) {}
71
72
ConfigurableAdaptiveFitter
*
ConfigurableAdaptiveFitter::clone
()
const
{
return
new
ConfigurableAdaptiveFitter
(*
this
); }
73
74
edm::ParameterSet
ConfigurableAdaptiveFitter::defaults
()
const
{
return
mydefaults(); }
75
76
#include "
RecoVertex/ConfigurableVertexReco/interface/ConfFitterBuilder.h
"
77
78
namespace
{
79
const
ConfFitterBuilder<ConfigurableAdaptiveFitter>
t
(
"avf"
,
"AdaptiveVertexFitter"
);
80
}
DummyVertexSmoother
Definition:
DummyVertexSmoother.h:11
AdaptiveVertexFitter
Definition:
AdaptiveVertexFitter.h:29
runTheMatrix.ret
ret
prodAgent to be discontinued
Definition:
runTheMatrix.py:367
ConfFitterBuilder.h
KalmanVertexUpdator< 5 >
MessageLogger.h
ConfigurableAdaptiveFitter::clone
ConfigurableAdaptiveFitter * clone() const override
Definition:
ConfigurableAdaptiveFitter.cc:72
dqmiodumpmetadata.n
n
Definition:
dqmiodumpmetadata.py:28
KalmanVertexTrackCompatibilityEstimator.h
ConfigurableAdaptiveFitter::configure
void configure(const edm::ParameterSet &) override
Definition:
ConfigurableAdaptiveFitter.cc:37
EcalTangentSkim_cfg.o
o
Definition:
EcalTangentSkim_cfg.py:36
ConfigurableAdaptiveFitter::defaults
edm::ParameterSet defaults() const override
Definition:
ConfigurableAdaptiveFitter.cc:74
ConfigurableAdaptiveFitter::ConfigurableAdaptiveFitter
ConfigurableAdaptiveFitter()
Definition:
ConfigurableAdaptiveFitter.cc:35
ConfigurableAdaptiveFitter
Definition:
ConfigurableAdaptiveFitter.h:10
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
DefaultLinearizationPointFinder.h
PVValHelper::estimator
estimator
Definition:
PVValidationHelpers.h:44
visualization-live-secondInstance_cfg.m
m
Definition:
visualization-live-secondInstance_cfg.py:72
KalmanVertexTrackCompatibilityEstimator
Definition:
KalmanVertexTrackCompatibilityEstimator.h:24
ConfigurableAdaptiveFitter.h
AdaptiveVertexFitter::setParameters
void setParameters(double maxshift=0.0001, double maxlpshift=0.1, unsigned maxstep=30, double weightthreshold=.001)
Definition:
AdaptiveVertexFitter.cc:144
KalmanVertexSmoother
Definition:
KalmanVertexSmoother.h:6
GeometricAnnealing.h
AbstractConfFitter::theFitter
const VertexFitter< 5 > * theFitter
Definition:
AbstractConfFitter.h:41
ReconstructorFromFitter.h
ConfigurableAnnealing
Definition:
ConfigurableAnnealing.h:8
HLT_FULL_cff.updator
updator
Definition:
HLT_FULL_cff.py:123
edm::ParameterSet
Definition:
ParameterSet.h:47
DummyVertexSmoother.h
KalmanVertexUpdator.h
KalmanVertexSmoother.h
DefaultLinearizationPointFinder
Definition:
DefaultLinearizationPointFinder.h:13
std
Definition:
JetResolutionObject.h:76
AbstractConfFitter
Definition:
AbstractConfFitter.h:12
ConfigurableAdaptiveFitter::~ConfigurableAdaptiveFitter
~ConfigurableAdaptiveFitter() override
Definition:
ConfigurableAdaptiveFitter.cc:63
ConfigurableAnnealing.h
AdaptiveVertexFitter.h
submitPVValidationJobs.t
string t
Definition:
submitPVValidationJobs.py:644
VertexSmoother< 5 >
ConfFitterBuilder
Definition:
ConfFitterBuilder.h:11
Generated for CMSSW Reference Manual by
1.8.16