CMS 3D CMS Logo

List of all members | Public Member Functions
ConfigurableAdaptiveFitter Class Reference

#include <ConfigurableAdaptiveFitter.h>

Inheritance diagram for ConfigurableAdaptiveFitter:
AbstractConfFitter VertexFitter< 5 >

Public Member Functions

ConfigurableAdaptiveFitterclone () const override
 
 ConfigurableAdaptiveFitter ()
 
 ConfigurableAdaptiveFitter (const ConfigurableAdaptiveFitter &o)
 
void configure (const edm::ParameterSet &) override
 
edm::ParameterSet defaults () const override
 
 ~ConfigurableAdaptiveFitter () override
 
- Public Member Functions inherited from AbstractConfFitter
 AbstractConfFitter ()
 
 AbstractConfFitter (const AbstractConfFitter &)
 
 AbstractConfFitter (const VertexFitter< 5 > &f)
 
CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &t) const override
 
CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks, const GlobalPoint &linPoint) const override
 
CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks, const GlobalPoint &priorPos, const GlobalError &priorError) const override
 
CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks, const reco::BeamSpot &beamSpot) const override
 
CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks) const override
 
CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks, const GlobalPoint &priorPos, const GlobalError &priorError) const override
 
CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks, const reco::BeamSpot &spot) const override
 
 ~AbstractConfFitter () override
 
- Public Member Functions inherited from VertexFitter< 5 >
virtual CachingVertex< Nvertex (const std::vector< typename CachingVertex< N >::RefCountedVertexTrack > &tracks) const=0
 
virtual CachingVertex< Nvertex (const std::vector< typename CachingVertex< N >::RefCountedVertexTrack > &tracks, const GlobalPoint &priorPos, const GlobalError &priorError) const=0
 
virtual CachingVertex< Nvertex (const std::vector< typename CachingVertex< N >::RefCountedVertexTrack > &tracks, const reco::BeamSpot &spot) const=0
 
 VertexFitter ()
 
virtual ~VertexFitter ()
 

Additional Inherited Members

- Public Types inherited from AbstractConfFitter
typedef CachingVertex< 5 >::RefCountedVertexTrack RefCountedVertexTrack
 
- Public Attributes inherited from AbstractConfFitter
const VertexFitter< 5 > * theFitter
 

Detailed Description

Wrap any VertexFitter into the VertexReconstructor interface

Definition at line 10 of file ConfigurableAdaptiveFitter.h.

Constructor & Destructor Documentation

◆ ConfigurableAdaptiveFitter() [1/2]

ConfigurableAdaptiveFitter::ConfigurableAdaptiveFitter ( )

Values that are respected: sigmacut: The sqrt(chi2_cut) criterion. Default: 3.0 ratio: The annealing ratio. Default: 0.25 Tini: The initial temparature. Default: 256

Definition at line 35 of file ConfigurableAdaptiveFitter.cc.

Referenced by clone().

◆ ConfigurableAdaptiveFitter() [2/2]

ConfigurableAdaptiveFitter::ConfigurableAdaptiveFitter ( const ConfigurableAdaptiveFitter o)

Definition at line 70 of file ConfigurableAdaptiveFitter.cc.

◆ ~ConfigurableAdaptiveFitter()

ConfigurableAdaptiveFitter::~ConfigurableAdaptiveFitter ( )
override

Definition at line 63 of file ConfigurableAdaptiveFitter.cc.

63  {
64  /*
65  if (theFitter) delete theFitter;
66  theFitter=0;
67  */
68 }

Member Function Documentation

◆ clone()

ConfigurableAdaptiveFitter * ConfigurableAdaptiveFitter::clone ( void  ) const
overridevirtual

Fit vertex out of a VertexSeed

Implements AbstractConfFitter.

Definition at line 72 of file ConfigurableAdaptiveFitter.cc.

72 { return new ConfigurableAdaptiveFitter(*this); }

References ConfigurableAdaptiveFitter().

◆ configure()

void ConfigurableAdaptiveFitter::configure ( const edm::ParameterSet n)
overridevirtual

Implements AbstractConfFitter.

Definition at line 37 of file ConfigurableAdaptiveFitter.cc.

37  {
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 }

References visualization-live-secondInstance_cfg::m, dqmiodumpmetadata::n, alignCSCRings::s, AdaptiveVertexFitter::setParameters(), AbstractConfFitter::theFitter, and HLT_2018_cff::updator.

◆ defaults()

edm::ParameterSet ConfigurableAdaptiveFitter::defaults ( ) const
overridevirtual

Implements AbstractConfFitter.

Definition at line 74 of file ConfigurableAdaptiveFitter.cc.

74 { return mydefaults(); }
DummyVertexSmoother
Definition: DummyVertexSmoother.h:11
AdaptiveVertexFitter
Definition: AdaptiveVertexFitter.h:29
KalmanVertexUpdator< 5 >
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
ConfigurableAdaptiveFitter::ConfigurableAdaptiveFitter
ConfigurableAdaptiveFitter()
Definition: ConfigurableAdaptiveFitter.cc:35
alignCSCRings.s
s
Definition: alignCSCRings.py:92
PVValHelper::estimator
estimator
Definition: PVValidationHelpers.h:44
HLT_2018_cff.updator
updator
Definition: HLT_2018_cff.py:123
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
KalmanVertexTrackCompatibilityEstimator
Definition: KalmanVertexTrackCompatibilityEstimator.h:24
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
AbstractConfFitter::theFitter
const VertexFitter< 5 > * theFitter
Definition: AbstractConfFitter.h:41
ConfigurableAnnealing
Definition: ConfigurableAnnealing.h:8
edm::ParameterSet
Definition: ParameterSet.h:36
DefaultLinearizationPointFinder
Definition: DefaultLinearizationPointFinder.h:13
AbstractConfFitter::AbstractConfFitter
AbstractConfFitter()
Definition: AbstractConfFitter.cc:5
VertexSmoother< 5 >