CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
 
 ConfigurableAdaptiveFitter ()
 
 ConfigurableAdaptiveFitter (const ConfigurableAdaptiveFitter &o)
 
void configure (const edm::ParameterSet &)
 
edm::ParameterSet defaults () const
 
 ~ConfigurableAdaptiveFitter ()
 
- 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
 
CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks) const
 
CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks, const reco::BeamSpot &spot) const
 
CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks, const GlobalPoint &linPoint) const
 
CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks, const GlobalPoint &priorPos, const GlobalError &priorError) const
 
CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks, const reco::BeamSpot &beamSpot) const
 
CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks, const GlobalPoint &priorPos, const GlobalError &priorError) const
 
virtual ~AbstractConfFitter ()
 
- 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().

ConfigurableAdaptiveFitter::ConfigurableAdaptiveFitter ( const ConfigurableAdaptiveFitter o)

Definition at line 77 of file ConfigurableAdaptiveFitter.cc.

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

Definition at line 68 of file ConfigurableAdaptiveFitter.cc.

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

Member Function Documentation

ConfigurableAdaptiveFitter * ConfigurableAdaptiveFitter::clone ( void  ) const
virtual

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)
virtual

Implements AbstractConfFitter.

Definition at line 40 of file ConfigurableAdaptiveFitter.cc.

References edm::ParameterSet::augment(), HLT_FULL_cff::estimator, edm::ParameterSet::getParameter(), visualization-live-secondInstance_cfg::m, gen::n, alignCSCRings::s, AdaptiveVertexFitter::setParameters(), AbstractConfFitter::theFitter, and HLT_FULL_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=0;
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
tuple estimator
Definition: HLT_FULL_cff.py:50
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
virtual

Implements AbstractConfFitter.

Definition at line 86 of file ConfigurableAdaptiveFitter.cc.

87 {
88  return mydefaults();
89 }