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() [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)

◆ ~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.

References ConfigurableAdaptiveFitter().

◆ configure()

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

Implements AbstractConfFitter.

Definition at line 37 of file ConfigurableAdaptiveFitter.cc.

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

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 }
void setParameters(double maxshift=0.0001, double maxlpshift=0.1, unsigned maxstep=30, double weightthreshold=.001)
const VertexFitter< 5 > * theFitter

◆ defaults()

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

Implements AbstractConfFitter.

Definition at line 74 of file ConfigurableAdaptiveFitter.cc.

74 { return mydefaults(); }