CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 override
 
CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks) const override
 
CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks) 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 reco::BeamSpot &beamSpot) 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< RefCountedVertexTrack > &tracks, const reco::BeamSpot &spot) const override
 
CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks, const GlobalPoint &priorPos, const GlobalError &priorError) const override
 
 ~AdaptiveGsfVertexFitter () 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 ()
 

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 15 of file AdaptiveGsfVertexFitter.h.

Member Typedef Documentation

Definition at line 17 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 8 of file AdaptiveGsfVertexFitter.cc.

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

Referenced by clone().

8  {
9  bool limitComponents_ = pSet.getParameter<bool>("limitComponents");
10 
12 
13  if (limitComponents_) {
14  theMerger = new GsfVertexMerger(pSet.getParameter<edm::ParameterSet>("GsfMergerParameters"));
15  }
16 
18  linP,
19  GsfVertexUpdator(limitComponents_, &*theMerger),
21  GsfVertexSmoother(limitComponents_, &*theMerger),
24 
36  theFitter->setParameters(pSet.getParameter<double>("maxshift"),
37  pSet.getParameter<double>("maxlpshift"),
38  pSet.getParameter<int>("maxstep"),
39  pSet.getParameter<double>("weightthreshold"));
40 }
AdaptiveVertexFitter * theFitter
void setParameters(double maxshift=0.0001, double maxlpshift=0.1, unsigned maxstep=30, double weightthreshold=.001)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
void gsfIntermediarySmoothing(bool sm)
AdaptiveGsfVertexFitter::~AdaptiveGsfVertexFitter ( )
override

Definition at line 46 of file AdaptiveGsfVertexFitter.cc.

References theFitter.

46 { delete theFitter; }
AdaptiveVertexFitter * theFitter
AdaptiveGsfVertexFitter::AdaptiveGsfVertexFitter ( const AdaptiveGsfVertexFitter original)

Copy constructor

Definition at line 42 of file AdaptiveGsfVertexFitter.cc.

References AdaptiveVertexFitter::clone(), and theFitter.

42  {
43  theFitter = original.theFitter->clone();
44 }
AdaptiveVertexFitter * clone() const override
AdaptiveVertexFitter * theFitter

Member Function Documentation

AdaptiveGsfVertexFitter* AdaptiveGsfVertexFitter::clone ( void  ) const
inlineoverridevirtual

Fit vertex out of a VertexSeed

Implements VertexFitter< 5 >.

Definition at line 35 of file AdaptiveGsfVertexFitter.h.

References AdaptiveGsfVertexFitter().

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

Fit vertex out of a set of RecTracks

Implements VertexFitter< 5 >.

Definition at line 40 of file AdaptiveGsfVertexFitter.h.

References theFitter, and AdaptiveVertexFitter::vertex().

Referenced by Tau.Tau::dxy().

40  {
41  return theFitter->vertex(tracks);
42  }
AdaptiveVertexFitter * theFitter
auto const & tracks
cannot be loose
CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &) const override
CachingVertex<5> AdaptiveGsfVertexFitter::vertex ( const std::vector< RefCountedVertexTrack > &  tracks) const
inlineoverride

Fit vertex out of a set of VertexTracks

Definition at line 46 of file AdaptiveGsfVertexFitter.h.

References theFitter, and AdaptiveVertexFitter::vertex().

Referenced by Tau.Tau::dxy().

46  {
47  return theFitter->vertex(tracks);
48  }
AdaptiveVertexFitter * theFitter
auto const & tracks
cannot be loose
CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &) const override
CachingVertex<5> AdaptiveGsfVertexFitter::vertex ( const std::vector< reco::TransientTrack > &  tracks,
const GlobalPoint linPoint 
) const
inlineoverridevirtual

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

Implements VertexFitter< 5 >.

Definition at line 53 of file AdaptiveGsfVertexFitter.h.

References theFitter, and AdaptiveVertexFitter::vertex().

Referenced by Tau.Tau::dxy().

54  {
55  return theFitter->vertex(tracks, linPoint);
56  }
AdaptiveVertexFitter * theFitter
auto const & tracks
cannot be loose
CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &) const override
CachingVertex<5> AdaptiveGsfVertexFitter::vertex ( const std::vector< reco::TransientTrack > &  tracks,
const reco::BeamSpot beamSpot 
) const
inlineoverridevirtual

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 62 of file AdaptiveGsfVertexFitter.h.

References theFitter, and AdaptiveVertexFitter::vertex().

Referenced by Tau.Tau::dxy().

63  {
64  return theFitter->vertex(tracks, beamSpot);
65  }
AdaptiveVertexFitter * theFitter
auto const & tracks
cannot be loose
CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &) const override
CachingVertex<5> AdaptiveGsfVertexFitter::vertex ( const std::vector< reco::TransientTrack > &  tracks,
const GlobalPoint priorPos,
const GlobalError priorError 
) const
inlineoverridevirtual

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 72 of file AdaptiveGsfVertexFitter.h.

References theFitter, and AdaptiveVertexFitter::vertex().

Referenced by Tau.Tau::dxy().

74  {
75  return theFitter->vertex(tracks, priorPos, priorError);
76  }
AdaptiveVertexFitter * theFitter
auto const & tracks
cannot be loose
CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &) const override
CachingVertex<5> AdaptiveGsfVertexFitter::vertex ( const std::vector< RefCountedVertexTrack > &  tracks,
const reco::BeamSpot spot 
) const
inlineoverride

Definition at line 78 of file AdaptiveGsfVertexFitter.h.

References theFitter, and AdaptiveVertexFitter::vertex().

Referenced by Tau.Tau::dxy().

79  {
80  return theFitter->vertex(tracks, spot);
81  }
AdaptiveVertexFitter * theFitter
auto const & tracks
cannot be loose
CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &) const override
CachingVertex<5> AdaptiveGsfVertexFitter::vertex ( const std::vector< RefCountedVertexTrack > &  tracks,
const GlobalPoint priorPos,
const GlobalError priorError 
) const
inlineoverride

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 87 of file AdaptiveGsfVertexFitter.h.

References theFitter, and AdaptiveVertexFitter::vertex().

Referenced by Tau.Tau::dxy().

89  {
90  return theFitter->vertex(tracks, priorPos, priorError);
91  }
AdaptiveVertexFitter * theFitter
auto const & tracks
cannot be loose
CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &) const override

Member Data Documentation

AdaptiveVertexFitter* AdaptiveGsfVertexFitter::theFitter
private