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 (const VertexFitter< 5 > &f)
 
 AbstractConfFitter ()
 
 AbstractConfFitter (const AbstractConfFitter &)
 
CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &t) const override
 
CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks) const override
 
CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks, const reco::BeamSpot &spot) 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 GlobalPoint &priorPos, const GlobalError &priorError) 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 reco::BeamSpot &spot) const =0
 
virtual CachingVertex< Nvertex (const std::vector< typename CachingVertex< N >::RefCountedVertexTrack > &tracks, const GlobalPoint &priorPos, const GlobalError &priorError) 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::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 36 of file ConfigurableAdaptiveFitter.cc.

Referenced by clone(), and ~ConfigurableAdaptiveFitter().

ConfigurableAdaptiveFitter::ConfigurableAdaptiveFitter ( const ConfigurableAdaptiveFitter o)

Definition at line 77 of file ConfigurableAdaptiveFitter.cc.

77  :
78  AbstractConfFitter ( o )
79 {}
ConfigurableAdaptiveFitter::~ConfigurableAdaptiveFitter ( )
override

Definition at line 68 of file ConfigurableAdaptiveFitter.cc.

References ConfigurableAdaptiveFitter().

69 {
70  /*
71  if (theFitter) delete theFitter;
72  theFitter=0;
73  */
74 }

Member Function Documentation

ConfigurableAdaptiveFitter * ConfigurableAdaptiveFitter::clone ( void  ) const
overridevirtual

Fit vertex out of a VertexSeed

Implements AbstractConfFitter.

Definition at line 81 of file ConfigurableAdaptiveFitter.cc.

References ConfigurableAdaptiveFitter().

82 {
83  return new ConfigurableAdaptiveFitter ( *this );
84 }
void ConfigurableAdaptiveFitter::configure ( const edm::ParameterSet n)
overridevirtual

Implements AbstractConfFitter.

Definition at line 40 of file ConfigurableAdaptiveFitter.cc.

References edm::ParameterSet::augment(), edm::ParameterSet::getParameter(), funct::m, gen::n, alignCSCRings::s, AdaptiveVertexFitter::setParameters(), AbstractConfFitter::theFitter, and gsfElectronCkfTrackCandidateMaker_cff::updator.

42 {
44  m.augment ( mydefaults() );
45  ConfigurableAnnealing ann ( m );
47  // ZeroLinearizationPointFinder linpt;
48  // KalmanVertexFitter kvf;
49  // GenericLinearizationPointFinder linpt ( kvf );
51  bool s=m.getParameter< bool >("smoothing");
52  VertexSmoother<5> * smoother=nullptr;
53  if ( s )
54  {
55  smoother = new KalmanVertexSmoother ();
56  } else {
57  smoother = new DummyVertexSmoother<5> ();
58  }
60 
61  if (theFitter) delete theFitter;
62  AdaptiveVertexFitter * fitter = new AdaptiveVertexFitter ( ann, linpt, updator, estimator, *smoother );
63  delete smoother;
64  fitter->setParameters ( m );
65  theFitter=fitter;
66 }
T getParameter(std::string const &) const
void augment(ParameterSet const &from)
void setParameters(double maxshift=0.0001, double maxlpshift=0.1, unsigned maxstep=30, double weightthreshold=.001)
const VertexFitter< 5 > * theFitter
edm::ParameterSet ConfigurableAdaptiveFitter::defaults ( ) const
overridevirtual

Implements AbstractConfFitter.

Definition at line 86 of file ConfigurableAdaptiveFitter.cc.

References protons_cff::t.

87 {
88  return mydefaults();
89 }