CMS 3D CMS Logo

ConfigurableAdaptiveFitter.cc
Go to the documentation of this file.
6 // #include "RecoVertex/LinearizationPointFinders/interface/GenericLinearizationPointFinder.h"
7 // #include "RecoVertex/KalmanVertexFit/interface/KalmanVertexFitter.h"
8 // #include "RecoVertex/LinearizationPointFinders/interface/ZeroLinearizationPointFinder.h"
15 
16 using namespace std;
17 
18 namespace {
19  edm::ParameterSet mydefaults() {
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 
36 
39  m.augment(mydefaults());
42  // ZeroLinearizationPointFinder linpt;
43  // KalmanVertexFitter kvf;
44  // GenericLinearizationPointFinder linpt ( kvf );
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  }
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 
64  /*
65  if (theFitter) delete theFitter;
66  theFitter=0;
67  */
68 }
69 
71 
73 
75 
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:543
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:42
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:45
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:79
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