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
GsfVertexFitter Class Reference

#include <GsfVertexFitter.h>

Inheritance diagram for GsfVertexFitter:
VertexFitter< 5 >

Public Types

typedef CachingVertex
< 5 >::RefCountedVertexTrack 
RefCountedVertexTrack
 

Public Member Functions

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

SequentialVertexFitter< 5 > * theSequentialFitter
 

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 20 of file GsfVertexFitter.h.

Member Typedef Documentation

Definition at line 22 of file GsfVertexFitter.h.

Constructor & Destructor Documentation

GsfVertexFitter::GsfVertexFitter ( 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.

Definition at line 6 of file GsfVertexFitter.cc.

References edm::ParameterSet::getParameter(), and theSequentialFitter.

Referenced by clone().

6  {
7  float theMaxShift = pSet.getParameter<double>("maxDistance"); //0.01
8  int theMaxStep = pSet.getParameter<int>("maxNbrOfIterations"); //10
9  bool limitComponents_ = pSet.getParameter<bool>("limitComponents");
10  bool useSmoothing = pSet.getParameter<bool>("smoothTracks");
11 
12  VertexSmoother<5>* theSmoother;
14 
15  if (limitComponents_) {
16  edm::ParameterSet mergerPSet = pSet.getParameter<edm::ParameterSet>("GsfMergerParameters");
17  theMerger = new GsfVertexMerger(mergerPSet);
18  }
19 
20  if (useSmoothing)
21  theSmoother = new GsfVertexSmoother(limitComponents_, &*theMerger);
22  else
23  theSmoother = new DummyVertexSmoother<5>();
24 
26  linP, GsfVertexUpdator(limitComponents_, &*theMerger), *theSmoother, MultiPerigeeLTSFactory());
27  theSequentialFitter->setMaximumDistance(theMaxShift);
28  theSequentialFitter->setMaximumNumberOfIterations(theMaxStep);
29 
30  delete theSmoother;
31 }
SequentialVertexFitter< 5 > * theSequentialFitter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
GsfVertexFitter::~GsfVertexFitter ( )
override

Definition at line 37 of file GsfVertexFitter.cc.

References theSequentialFitter.

37 { delete theSequentialFitter; }
SequentialVertexFitter< 5 > * theSequentialFitter
GsfVertexFitter::GsfVertexFitter ( const GsfVertexFitter original)

Copy constructor

Definition at line 33 of file GsfVertexFitter.cc.

References SequentialVertexFitter< N >::clone(), and theSequentialFitter.

33  {
35 }
SequentialVertexFitter * clone() const override
SequentialVertexFitter< 5 > * theSequentialFitter

Member Function Documentation

GsfVertexFitter* GsfVertexFitter::clone ( void  ) const
inlineoverridevirtual

Fit vertex out of a VertexSeed

Implements VertexFitter< 5 >.

Definition at line 40 of file GsfVertexFitter.h.

References GsfVertexFitter().

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

Fit vertex out of a set of RecTracks

Implements VertexFitter< 5 >.

Definition at line 45 of file GsfVertexFitter.h.

References theSequentialFitter, and SequentialVertexFitter< N >::vertex().

Referenced by Tau.Tau::dxy().

45  {
47  }
auto const & tracks
cannot be loose
CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const override
SequentialVertexFitter< 5 > * theSequentialFitter
CachingVertex<5> GsfVertexFitter::vertex ( const std::vector< RefCountedVertexTrack > &  tracks) const
inlineoverride

Fit vertex out of a set of VertexTracks

Definition at line 51 of file GsfVertexFitter.h.

References theSequentialFitter, and SequentialVertexFitter< N >::vertex().

Referenced by Tau.Tau::dxy().

51  {
53  }
auto const & tracks
cannot be loose
CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const override
SequentialVertexFitter< 5 > * theSequentialFitter
CachingVertex<5> GsfVertexFitter::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 58 of file GsfVertexFitter.h.

References theSequentialFitter, and SequentialVertexFitter< N >::vertex().

Referenced by Tau.Tau::dxy().

59  {
60  return theSequentialFitter->vertex(tracks, linPoint);
61  }
auto const & tracks
cannot be loose
CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const override
SequentialVertexFitter< 5 > * theSequentialFitter
CachingVertex<5> GsfVertexFitter::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 68 of file GsfVertexFitter.h.

References theSequentialFitter, and SequentialVertexFitter< N >::vertex().

Referenced by Tau.Tau::dxy().

70  {
71  return theSequentialFitter->vertex(tracks, priorPos, priorError);
72  }
auto const & tracks
cannot be loose
CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const override
SequentialVertexFitter< 5 > * theSequentialFitter
CachingVertex<5> GsfVertexFitter::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 78 of file GsfVertexFitter.h.

References theSequentialFitter, and SequentialVertexFitter< N >::vertex().

Referenced by Tau.Tau::dxy().

79  {
80  return theSequentialFitter->vertex(tracks, beamSpot);
81  }
auto const & tracks
cannot be loose
CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const override
SequentialVertexFitter< 5 > * theSequentialFitter
CachingVertex<5> GsfVertexFitter::vertex ( const std::vector< RefCountedVertexTrack > &  tracks,
const reco::BeamSpot spot 
) const
inlineoverride

Definition at line 83 of file GsfVertexFitter.h.

References theSequentialFitter, and SequentialVertexFitter< N >::vertex().

Referenced by Tau.Tau::dxy().

84  {
85  return theSequentialFitter->vertex(tracks, spot);
86  }
auto const & tracks
cannot be loose
CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const override
SequentialVertexFitter< 5 > * theSequentialFitter
CachingVertex<5> GsfVertexFitter::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 92 of file GsfVertexFitter.h.

References theSequentialFitter, and SequentialVertexFitter< N >::vertex().

Referenced by Tau.Tau::dxy().

94  {
95  return theSequentialFitter->vertex(tracks, priorPos, priorError);
96  }
auto const & tracks
cannot be loose
CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const override
SequentialVertexFitter< 5 > * theSequentialFitter

Member Data Documentation

SequentialVertexFitter<5>* GsfVertexFitter::theSequentialFitter
private

Definition at line 99 of file GsfVertexFitter.h.

Referenced by GsfVertexFitter(), vertex(), and ~GsfVertexFitter().