CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
AdaptiveGsfVertexFitter Class Reference

#include <AdaptiveGsfVertexFitter.h>

Inheritance diagram for AdaptiveGsfVertexFitter:
VertexFitter< 5 >

Public Types

typedef CachingVertex< 5 >::RefCountedVertexTrack RefCountedVertexTrack
 

Public Member Functions

 AdaptiveGsfVertexFitter (const edm::ParameterSet &pSet, const LinearizationPointFinder &linP=DefaultLinearizationPointFinder())
 
 AdaptiveGsfVertexFitter (const AdaptiveGsfVertexFitter &original)
 
AdaptiveGsfVertexFitterclone () const
 
virtual CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks) const
 
virtual CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks) const
 
virtual CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks, const GlobalPoint &linPoint) const
 
virtual CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks, const reco::BeamSpot &beamSpot) const
 
virtual CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks, const GlobalPoint &priorPos, const GlobalError &priorError) const
 
virtual CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks, const reco::BeamSpot &spot) const
 
virtual CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks, const GlobalPoint &priorPos, const GlobalError &priorError) const
 
virtual ~AdaptiveGsfVertexFitter ()
 
- 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 ()
 

Private Attributes

AdaptiveVertexFittertheFitter
 

Detailed Description

Sequential vertex fitter, to be used with the Gaussian Sum Vertex Filter After the vertes fit, the tracks can be refit with the additional constraint of the vertex position.

Definition at line 16 of file AdaptiveGsfVertexFitter.h.

Member Typedef Documentation

Definition at line 20 of file AdaptiveGsfVertexFitter.h.

Constructor & Destructor Documentation

AdaptiveGsfVertexFitter::AdaptiveGsfVertexFitter ( const edm::ParameterSet pSet,
const LinearizationPointFinder linP = DefaultLinearizationPointFinder() 
)

Default constructor, using the given linearization point finder.

Parameters
linPThe LinearizationPointFinder to use
useSmoothingSpecifies whether the tracks sould be refit.

Reads the configurable parameters.

Parameters
maxshiftif the vertex moves further than this (in cm), then we re-iterate.
maxlpshiftif the vertex moves further than this, then we re-linearize the tracks.
maxstepthat's the maximum of iterations that we allow for.
weightthresholdthat's the minimum track weight for a track to be considered "significant". If fewer than two tracks are significant, an exception is thrown.

Definition at line 10 of file AdaptiveGsfVertexFitter.cc.

References edm::ParameterSet::getParameter(), AdaptiveVertexFitter::gsfIntermediarySmoothing(), AdaptiveVertexFitter::setParameters(), and theFitter.

Referenced by clone().

12 {
13 
14  bool limitComponents_ = pSet.getParameter<bool>("limitComponents");
15 
17 
18  if (limitComponents_) {
19  theMerger = new GsfVertexMerger(pSet.getParameter<edm::ParameterSet>("GsfMergerParameters"));
20  }
21 
24  linP,
25  GsfVertexUpdator(limitComponents_, &*theMerger),
27  GsfVertexSmoother(limitComponents_, &*theMerger),
30 
42  theFitter->setParameters ( pSet.getParameter<double>("maxshift"),
43  pSet.getParameter<double>("maxlpshift"),
44  pSet.getParameter<int>("maxstep"),
45  pSet.getParameter<double>("weightthreshold") );
46 
47 }
T getParameter(std::string const &) const
AdaptiveVertexFitter * theFitter
void setParameters(double maxshift=0.0001, double maxlpshift=0.1, unsigned maxstep=30, double weightthreshold=.001)
void gsfIntermediarySmoothing(bool sm)
AdaptiveGsfVertexFitter::~AdaptiveGsfVertexFitter ( )
virtual

Definition at line 54 of file AdaptiveGsfVertexFitter.cc.

References theFitter.

55 {
56  delete theFitter;
57 }
AdaptiveVertexFitter * theFitter
AdaptiveGsfVertexFitter::AdaptiveGsfVertexFitter ( const AdaptiveGsfVertexFitter original)

Copy constructor

Definition at line 49 of file AdaptiveGsfVertexFitter.cc.

References AdaptiveVertexFitter::clone(), and theFitter.

50 {
51  theFitter = original.theFitter->clone();
52 }
AdaptiveVertexFitter * theFitter
AdaptiveVertexFitter * clone() const

Member Function Documentation

AdaptiveGsfVertexFitter* AdaptiveGsfVertexFitter::clone ( void  ) const
inlinevirtual

Fit vertex out of a VertexSeed

Implements VertexFitter< 5 >.

Definition at line 38 of file AdaptiveGsfVertexFitter.h.

References AdaptiveGsfVertexFitter().

38  {
39  return new AdaptiveGsfVertexFitter(* this);
40  }
AdaptiveGsfVertexFitter(const edm::ParameterSet &pSet, const LinearizationPointFinder &linP=DefaultLinearizationPointFinder())
virtual CachingVertex<5> AdaptiveGsfVertexFitter::vertex ( const std::vector< reco::TransientTrack > &  tracks) const
inlinevirtual

Fit vertex out of a set of RecTracks

Implements VertexFitter< 5 >.

Definition at line 47 of file AdaptiveGsfVertexFitter.h.

References theFitter, and AdaptiveVertexFitter::vertex().

Referenced by Tau.Tau::dxy().

48  {
49  return theFitter->vertex(tracks);
50  }
AdaptiveVertexFitter * theFitter
virtual CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &) const
virtual CachingVertex<5> AdaptiveGsfVertexFitter::vertex ( const std::vector< RefCountedVertexTrack > &  tracks) const
inlinevirtual

Fit vertex out of a set of VertexTracks

Definition at line 55 of file AdaptiveGsfVertexFitter.h.

References theFitter, and AdaptiveVertexFitter::vertex().

Referenced by Tau.Tau::dxy().

56  {
57  return theFitter->vertex(tracks);
58  }
AdaptiveVertexFitter * theFitter
virtual CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &) const
virtual CachingVertex<5> AdaptiveGsfVertexFitter::vertex ( const std::vector< reco::TransientTrack > &  tracks,
const GlobalPoint linPoint 
) const
inlinevirtual

Fit vertex out of a set of RecTracks. Uses the specified linearization point.

Implements VertexFitter< 5 >.

Definition at line 64 of file AdaptiveGsfVertexFitter.h.

References theFitter, and AdaptiveVertexFitter::vertex().

Referenced by Tau.Tau::dxy().

66  {
67  return theFitter->vertex(tracks, linPoint);
68  }
AdaptiveVertexFitter * theFitter
virtual CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &) const
virtual CachingVertex<5> AdaptiveGsfVertexFitter::vertex ( const std::vector< reco::TransientTrack > &  tracks,
const reco::BeamSpot beamSpot 
) const
inlinevirtual

Fit vertex out of a set of TransientTracks. The specified BeamSpot will be used as priot, but NOT for the linearization. The specified LinearizationPointFinder will be used to find the linearization point.

Implements VertexFitter< 5 >.

Definition at line 75 of file AdaptiveGsfVertexFitter.h.

References theFitter, and AdaptiveVertexFitter::vertex().

Referenced by Tau.Tau::dxy().

76  {
77  return theFitter->vertex(tracks, beamSpot);
78  }
AdaptiveVertexFitter * theFitter
virtual CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &) const
virtual CachingVertex<5> AdaptiveGsfVertexFitter::vertex ( const std::vector< reco::TransientTrack > &  tracks,
const GlobalPoint priorPos,
const GlobalError priorError 
) const
inlinevirtual

Fit vertex out of a set of RecTracks. Uses the specified point as both the linearization point AND as prior estimate of the vertex position. The error is used for the weight of the prior estimate.

Implements VertexFitter< 5 >.

Definition at line 87 of file AdaptiveGsfVertexFitter.h.

References theFitter, and AdaptiveVertexFitter::vertex().

Referenced by Tau.Tau::dxy().

90  {
91  return theFitter->vertex(tracks, priorPos, priorError);
92  }
AdaptiveVertexFitter * theFitter
virtual CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &) const
virtual CachingVertex<5> AdaptiveGsfVertexFitter::vertex ( const std::vector< RefCountedVertexTrack > &  tracks,
const reco::BeamSpot spot 
) const
inlinevirtual

Definition at line 95 of file AdaptiveGsfVertexFitter.h.

References theFitter, and AdaptiveVertexFitter::vertex().

Referenced by Tau.Tau::dxy().

97  {
98  return theFitter->vertex(tracks, spot );
99  }
AdaptiveVertexFitter * theFitter
virtual CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &) const
virtual CachingVertex<5> AdaptiveGsfVertexFitter::vertex ( const std::vector< RefCountedVertexTrack > &  tracks,
const GlobalPoint priorPos,
const GlobalError priorError 
) const
inlinevirtual

Fit vertex out of a set of VertexTracks. Uses the specified point and error as the prior estimate of the vertex. This position is not used to relinearize the tracks.

Definition at line 106 of file AdaptiveGsfVertexFitter.h.

References theFitter, and AdaptiveVertexFitter::vertex().

Referenced by Tau.Tau::dxy().

109  {
110  return theFitter->vertex(tracks, priorPos, priorError);
111  }
AdaptiveVertexFitter * theFitter
virtual CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &) const

Member Data Documentation

AdaptiveVertexFitter* AdaptiveGsfVertexFitter::theFitter
private