CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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
 
 GsfVertexFitter (const edm::ParameterSet &pSet, const LinearizationPointFinder &linP=DefaultLinearizationPointFinder())
 
 GsfVertexFitter (const GsfVertexFitter &original)
 
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 GlobalPoint &priorPos, const GlobalError &priorError) const
 
virtual CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &tracks, const reco::BeamSpot &beamSpot) 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 ~GsfVertexFitter ()
 
- 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 21 of file GsfVertexFitter.h.

Member Typedef Documentation

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

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

Referenced by clone().

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

Definition at line 41 of file GsfVertexFitter.cc.

References theSequentialFitter.

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

Copy constructor

Definition at line 36 of file GsfVertexFitter.cc.

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

37 {
39 }
SequentialVertexFitter * clone() const
SequentialVertexFitter< 5 > * theSequentialFitter

Member Function Documentation

GsfVertexFitter* GsfVertexFitter::clone ( void  ) const
inlinevirtual

Fit vertex out of a VertexSeed

Implements VertexFitter< 5 >.

Definition at line 43 of file GsfVertexFitter.h.

References GsfVertexFitter().

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

Fit vertex out of a set of RecTracks

Implements VertexFitter< 5 >.

Definition at line 52 of file GsfVertexFitter.h.

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

Referenced by Tau.Tau::dxy(), and Tau.Tau::dz().

53  {
55  }
virtual CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const
SequentialVertexFitter< 5 > * theSequentialFitter
tuple tracks
Definition: testEve_cfg.py:39
virtual CachingVertex<5> GsfVertexFitter::vertex ( const std::vector< RefCountedVertexTrack > &  tracks) const
inlinevirtual

Fit vertex out of a set of VertexTracks

Definition at line 60 of file GsfVertexFitter.h.

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

Referenced by Tau.Tau::dxy(), and Tau.Tau::dz().

61  {
63  }
virtual CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const
SequentialVertexFitter< 5 > * theSequentialFitter
tuple tracks
Definition: testEve_cfg.py:39
virtual CachingVertex<5> GsfVertexFitter::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 69 of file GsfVertexFitter.h.

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

Referenced by Tau.Tau::dxy(), and Tau.Tau::dz().

71  {
72  return theSequentialFitter->vertex(tracks, linPoint);
73  }
virtual CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const
SequentialVertexFitter< 5 > * theSequentialFitter
tuple tracks
Definition: testEve_cfg.py:39
virtual CachingVertex<5> GsfVertexFitter::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 81 of file GsfVertexFitter.h.

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

Referenced by Tau.Tau::dxy(), and Tau.Tau::dz().

84  {
85  return theSequentialFitter->vertex(tracks, priorPos, priorError);
86  }
virtual CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const
SequentialVertexFitter< 5 > * theSequentialFitter
tuple tracks
Definition: testEve_cfg.py:39
virtual CachingVertex<5> GsfVertexFitter::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 93 of file GsfVertexFitter.h.

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

Referenced by Tau.Tau::dxy(), and Tau.Tau::dz().

94  {
95  return theSequentialFitter->vertex(tracks, beamSpot);
96  }
virtual CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const
SequentialVertexFitter< 5 > * theSequentialFitter
tuple tracks
Definition: testEve_cfg.py:39
virtual CachingVertex<5> GsfVertexFitter::vertex ( const std::vector< RefCountedVertexTrack > &  tracks,
const reco::BeamSpot spot 
) const
inlinevirtual

Definition at line 99 of file GsfVertexFitter.h.

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

Referenced by Tau.Tau::dxy(), and Tau.Tau::dz().

101  {
102  return theSequentialFitter->vertex(tracks, spot );
103  }
virtual CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const
SequentialVertexFitter< 5 > * theSequentialFitter
tuple tracks
Definition: testEve_cfg.py:39
virtual CachingVertex<5> GsfVertexFitter::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 110 of file GsfVertexFitter.h.

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

Referenced by Tau.Tau::dxy(), and Tau.Tau::dz().

113  {
114  return theSequentialFitter->vertex(tracks, priorPos, priorError);
115  }
virtual CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const
SequentialVertexFitter< 5 > * theSequentialFitter
tuple tracks
Definition: testEve_cfg.py:39

Member Data Documentation

SequentialVertexFitter<5>* GsfVertexFitter::theSequentialFitter
private

Definition at line 119 of file GsfVertexFitter.h.

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