CMS 3D CMS Logo

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

#include <TrimmedVertexFitter.h>

Inheritance diagram for TrimmedVertexFitter:
VertexFitter< 5 >

Public Types

typedef ReferenceCountingPointer< LinearizedTrackState< 5 > > RefCountedLinearizedTrackState
 
typedef CachingVertex< 5 >::RefCountedVertexTrack RefCountedVertexTrack
 

Public Member Functions

TrimmedVertexFitterclone () const override
 
void setPtCut (float cut)
 
void setTrackCompatibilityCut (float cut)
 
void setVertexFitProbabilityCut (float cut)
 
 TrimmedVertexFitter ()
 
 TrimmedVertexFitter (const edm::ParameterSet &pSet)
 
CachingVertex< 5 > vertex (const std::vector< reco::TransientTrack > &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 override
 
CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks, const GlobalPoint &priorPos, const GlobalError &priorError) const override
 
CachingVertex< 5 > vertex (const std::vector< RefCountedVertexTrack > &tracks, const reco::BeamSpot &spot) const override
 
 ~TrimmedVertexFitter () 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 GlobalPoint &priorPos, const GlobalError &priorError) const=0
 
virtual CachingVertex< Nvertex (const std::vector< typename CachingVertex< N >::RefCountedVertexTrack > &tracks, const reco::BeamSpot &spot) const=0
 
 VertexFitter ()
 
virtual ~VertexFitter ()
 

Private Attributes

double ptcut
 
KalmanTrimmedVertexFinder theRector
 

Detailed Description

Definition at line 12 of file TrimmedVertexFitter.h.

Member Typedef Documentation

◆ RefCountedLinearizedTrackState

Definition at line 15 of file TrimmedVertexFitter.h.

◆ RefCountedVertexTrack

Definition at line 14 of file TrimmedVertexFitter.h.

Constructor & Destructor Documentation

◆ TrimmedVertexFitter() [1/2]

TrimmedVertexFitter::TrimmedVertexFitter ( )

Definition at line 6 of file TrimmedVertexFitter.cc.

6  {
8  setPtCut(0.);
9 }

References KalmanTrimmedVertexFinder::setMaxNbOfVertices(), setPtCut(), and theRector.

Referenced by clone().

◆ TrimmedVertexFitter() [2/2]

TrimmedVertexFitter::TrimmedVertexFitter ( const edm::ParameterSet pSet)

Definition at line 11 of file TrimmedVertexFitter.cc.

11  {
13  setPtCut(pSet.getParameter<double>("minPt"));
14  setTrackCompatibilityCut(pSet.getParameter<double>("trackCompatibilityCut"));
15  setVertexFitProbabilityCut(pSet.getParameter<double>("vtxFitProbCut"));
16 }

References edm::ParameterSet::getParameter(), KalmanTrimmedVertexFinder::setMaxNbOfVertices(), setPtCut(), setTrackCompatibilityCut(), setVertexFitProbabilityCut(), and theRector.

◆ ~TrimmedVertexFitter()

TrimmedVertexFitter::~TrimmedVertexFitter ( )
inlineoverride

Definition at line 20 of file TrimmedVertexFitter.h.

20 {}

Member Function Documentation

◆ clone()

TrimmedVertexFitter * TrimmedVertexFitter::clone ( void  ) const
overridevirtual

Fit vertex out of a VertexSeed

Implements VertexFitter< 5 >.

Definition at line 75 of file TrimmedVertexFitter.cc.

75 { return new TrimmedVertexFitter(*this); }

References TrimmedVertexFitter().

◆ setPtCut()

void TrimmedVertexFitter::setPtCut ( float  cut)

Definition at line 77 of file TrimmedVertexFitter.cc.

77  {
78  ptcut = cut;
80 }

References TkAlMuonSelectors_cfi::cut, ptcut, KalmanTrimmedVertexFinder::setPtCut(), and theRector.

Referenced by TrimmedVertexFitter().

◆ setTrackCompatibilityCut()

void TrimmedVertexFitter::setTrackCompatibilityCut ( float  cut)

◆ setVertexFitProbabilityCut()

void TrimmedVertexFitter::setVertexFitProbabilityCut ( float  cut)

◆ vertex() [1/7]

CachingVertex< 5 > TrimmedVertexFitter::vertex ( const std::vector< reco::TransientTrack > &  tracks) const
overridevirtual

Fit vertex out of a set of TransientTracks

Implements VertexFitter< 5 >.

Definition at line 18 of file TrimmedVertexFitter.cc.

18  {
19  std::vector<TransientVertex> vtces = theRector.vertices(tracks);
20  if (!vtces.empty()) {
21  const TransientVertex& rv = *(vtces.begin());
24  VertexState state(rv.position(), rv.positionError());
25  std::vector<RefCountedVertexTrack> vtrks;
26  std::vector<reco::TransientTrack> mytrks = rv.originalTracks();
27  for (std::vector<reco::TransientTrack>::const_iterator rt = mytrks.begin(); rt != mytrks.end(); ++rt) {
29 
30  RefCountedVertexTrack vtrk = vfac.vertexTrack(lstate, state, 1.0);
31  vtrks.push_back(vtrk);
32  };
33  return CachingVertex<5>(rv.position(), rv.positionError(), vtrks, rv.totalChiSquared());
34  };
35  return CachingVertex<5>();
36 }

References LinearizedTrackStateFactory::linearizedTrackState(), TransientVertex::originalTracks(), TransientVertex::position(), TransientVertex::positionError(), hcal_runs::rt, theRector, PDWG_EXOHSCP_cff::tracks, VertexTrackFactory< N >::vertexTrack(), and KalmanTrimmedVertexFinder::vertices().

Referenced by Tau.Tau::dxy().

◆ vertex() [2/7]

CachingVertex< 5 > TrimmedVertexFitter::vertex ( const std::vector< reco::TransientTrack > &  tracks,
const GlobalPoint linPoint 
) const
overridevirtual

Fit vertex out of a set of TransientTracks. The specified point will be used as linearization point, but will NOT be used as prior.

Implements VertexFitter< 5 >.

Definition at line 49 of file TrimmedVertexFitter.cc.

50  {
51  std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl;
52  throw VertexException("not implemented");
53 }

References gather_cfg::cout.

Referenced by Tau.Tau::dxy().

◆ vertex() [3/7]

CachingVertex< 5 > TrimmedVertexFitter::vertex ( const std::vector< reco::TransientTrack > &  tracks,
const GlobalPoint priorPos,
const GlobalError priorError 
) const
overridevirtual

Fit vertex out of a set of TransientTracks. 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 55 of file TrimmedVertexFitter.cc.

57  {
58  std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl;
59  throw VertexException("not implemented");
60 }

References gather_cfg::cout.

Referenced by Tau.Tau::dxy().

◆ vertex() [4/7]

CachingVertex< 5 > TrimmedVertexFitter::vertex ( const std::vector< reco::TransientTrack > &  tracks,
const reco::BeamSpot beamSpot 
) const
overridevirtual

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 69 of file TrimmedVertexFitter.cc.

70  {
71  std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl;
72  throw VertexException("not implemented");
73 }

References gather_cfg::cout.

Referenced by Tau.Tau::dxy().

◆ vertex() [5/7]

CachingVertex< 5 > TrimmedVertexFitter::vertex ( const std::vector< RefCountedVertexTrack > &  tracks) const
override

Definition at line 38 of file TrimmedVertexFitter.cc.

38  {
39  std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl;
40  throw VertexException("not implemented");
41 }

References gather_cfg::cout.

Referenced by Tau.Tau::dxy().

◆ vertex() [6/7]

CachingVertex< 5 > TrimmedVertexFitter::vertex ( const std::vector< RefCountedVertexTrack > &  tracks,
const GlobalPoint priorPos,
const GlobalError priorError 
) const
override

Definition at line 62 of file TrimmedVertexFitter.cc.

64  {
65  std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl;
66  throw VertexException("not implemented");
67 }

References gather_cfg::cout.

Referenced by Tau.Tau::dxy().

◆ vertex() [7/7]

CachingVertex< 5 > TrimmedVertexFitter::vertex ( const std::vector< RefCountedVertexTrack > &  tracks,
const reco::BeamSpot spot 
) const
override

Definition at line 43 of file TrimmedVertexFitter.cc.

44  {
45  std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl;
46  throw VertexException("not implemented");
47 }

References gather_cfg::cout.

Referenced by Tau.Tau::dxy().

Member Data Documentation

◆ ptcut

double TrimmedVertexFitter::ptcut
private

Definition at line 50 of file TrimmedVertexFitter.h.

Referenced by setPtCut().

◆ theRector

KalmanTrimmedVertexFinder TrimmedVertexFitter::theRector
private
PDWG_EXOHSCP_cff.tracks
tracks
Definition: PDWG_EXOHSCP_cff.py:28
TkAlMuonSelectors_cfi.cut
cut
Definition: TkAlMuonSelectors_cfi.py:5
VertexException
Common base class.
Definition: VertexException.h:12
CachingVertex< 5 >
KalmanTrimmedVertexFinder::setTrackCompatibilityCut
void setTrackCompatibilityCut(float cut)
Definition: KalmanTrimmedVertexFinder.h:58
gather_cfg.cout
cout
Definition: gather_cfg.py:144
hcal_runs.rt
rt
Definition: hcal_runs.py:76
TransientVertex::position
GlobalPoint position() const
Definition: TransientVertex.h:169
TrimmedVertexFitter::setVertexFitProbabilityCut
void setVertexFitProbabilityCut(float cut)
Definition: TrimmedVertexFitter.cc:84
TrimmedVertexFitter::RefCountedLinearizedTrackState
ReferenceCountingPointer< LinearizedTrackState< 5 > > RefCountedLinearizedTrackState
Definition: TrimmedVertexFitter.h:15
LinearizedTrackStateFactory::linearizedTrackState
RefCountedLinearizedTrackState linearizedTrackState(const GlobalPoint &linP, const reco::TransientTrack &track) const override
Definition: LinearizedTrackStateFactory.cc:9
KalmanTrimmedVertexFinder::vertices
std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &tracks) const override
Definition: KalmanTrimmedVertexFinder.h:23
TrimmedVertexFitter::setTrackCompatibilityCut
void setTrackCompatibilityCut(float cut)
Definition: TrimmedVertexFitter.cc:82
LinearizedTrackStateFactory
Definition: LinearizedTrackStateFactory.h:14
TrimmedVertexFitter::RefCountedVertexTrack
CachingVertex< 5 >::RefCountedVertexTrack RefCountedVertexTrack
Definition: TrimmedVertexFitter.h:14
TrimmedVertexFitter::theRector
KalmanTrimmedVertexFinder theRector
Definition: TrimmedVertexFitter.h:49
VertexTrackFactory< 5 >
KalmanTrimmedVertexFinder::setVertexFitProbabilityCut
void setVertexFitProbabilityCut(float cut)
Definition: KalmanTrimmedVertexFinder.h:60
TransientVertex
Definition: TransientVertex.h:18
KalmanTrimmedVertexFinder::setMaxNbOfVertices
void setMaxNbOfVertices(int max)
Definition: KalmanTrimmedVertexFinder.h:61
TrimmedVertexFitter::TrimmedVertexFitter
TrimmedVertexFitter()
Definition: TrimmedVertexFitter.cc:6
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
VertexTrackFactory::vertexTrack
RefCountedVertexTrack vertexTrack(const RefCountedLinearizedTrackState lt, const VertexState vs, float weight=1.0) const
Definition: VertexTrackFactory.h:27
VertexState
Definition: VertexState.h:13
KalmanTrimmedVertexFinder::setPtCut
void setPtCut(float cut)
Definition: KalmanTrimmedVertexFinder.h:57
TransientVertex::originalTracks
std::vector< reco::TransientTrack > const & originalTracks() const
Definition: TransientVertex.h:200
TrimmedVertexFitter::setPtCut
void setPtCut(float cut)
Definition: TrimmedVertexFitter.cc:77
TrimmedVertexFitter::ptcut
double ptcut
Definition: TrimmedVertexFitter.h:50
TransientVertex::positionError
GlobalError positionError() const
Definition: TransientVertex.h:170