#include <TrimmedVertexFitter.h>
Public Types | |
typedef ReferenceCountingPointer < LinearizedTrackState< 5 > > | RefCountedLinearizedTrackState |
typedef CachingVertex < 5 >::RefCountedVertexTrack | RefCountedVertexTrack |
Public Member Functions | |
TrimmedVertexFitter * | clone () const |
void | setPtCut (float cut) |
void | setTrackCompatibilityCut (float cut) |
void | setVertexFitProbabilityCut (float cut) |
TrimmedVertexFitter () | |
TrimmedVertexFitter (const edm::ParameterSet &pSet) | |
virtual CachingVertex< 5 > | vertex (const std::vector< RefCountedVertexTrack > &tracks, const GlobalPoint &priorPos, const GlobalError &priorError) 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< reco::TransientTrack > &tracks, const reco::BeamSpot &beamSpot) const |
virtual CachingVertex< 5 > | vertex (const std::vector< RefCountedVertexTrack > &tracks) const |
virtual CachingVertex< 5 > | vertex (const std::vector< reco::TransientTrack > &tracks) const |
virtual CachingVertex< 5 > | vertex (const std::vector< reco::TransientTrack > &tracks, const GlobalPoint &linPoint) const |
virtual | ~TrimmedVertexFitter () |
Private Attributes | |
double | ptcut |
KalmanTrimmedVertexFinder | theRector |
Definition at line 12 of file TrimmedVertexFitter.h.
typedef ReferenceCountingPointer<LinearizedTrackState<5> > TrimmedVertexFitter::RefCountedLinearizedTrackState |
Definition at line 17 of file TrimmedVertexFitter.h.
Definition at line 16 of file TrimmedVertexFitter.h.
TrimmedVertexFitter::TrimmedVertexFitter | ( | ) |
Definition at line 8 of file TrimmedVertexFitter.cc.
References KalmanTrimmedVertexFinder::setMaxNbOfVertices(), setPtCut(), and theRector.
Referenced by clone().
{ theRector.setMaxNbOfVertices(1); setPtCut(0.); }
TrimmedVertexFitter::TrimmedVertexFitter | ( | const edm::ParameterSet & | pSet | ) |
Definition at line 14 of file TrimmedVertexFitter.cc.
References edm::ParameterSet::getParameter(), KalmanTrimmedVertexFinder::setMaxNbOfVertices(), setPtCut(), setTrackCompatibilityCut(), setVertexFitProbabilityCut(), and theRector.
{ theRector.setMaxNbOfVertices(1); setPtCut(pSet.getParameter<double>("minPt")); setTrackCompatibilityCut ( pSet.getParameter<double>("trackCompatibilityCut") ); setVertexFitProbabilityCut ( pSet.getParameter<double>("vtxFitProbCut") ); }
virtual TrimmedVertexFitter::~TrimmedVertexFitter | ( | ) | [inline, virtual] |
Definition at line 22 of file TrimmedVertexFitter.h.
{}
TrimmedVertexFitter * TrimmedVertexFitter::clone | ( | void | ) | const [virtual] |
Fit vertex out of a VertexSeed
Implements VertexFitter< 5 >.
Definition at line 97 of file TrimmedVertexFitter.cc.
References TrimmedVertexFitter().
{ return new TrimmedVertexFitter( * this ); }
void TrimmedVertexFitter::setPtCut | ( | float | cut | ) |
Definition at line 102 of file TrimmedVertexFitter.cc.
References GOODCOLL_filter_cfg::cut, ptcut, KalmanTrimmedVertexFinder::setPtCut(), and theRector.
Referenced by TrimmedVertexFitter().
void TrimmedVertexFitter::setTrackCompatibilityCut | ( | float | cut | ) |
Definition at line 108 of file TrimmedVertexFitter.cc.
References KalmanTrimmedVertexFinder::setTrackCompatibilityCut(), and theRector.
Referenced by TrimmedVertexFitter().
{ theRector.setTrackCompatibilityCut ( cut ); }
void TrimmedVertexFitter::setVertexFitProbabilityCut | ( | float | cut | ) |
Definition at line 113 of file TrimmedVertexFitter.cc.
References KalmanTrimmedVertexFinder::setVertexFitProbabilityCut(), and theRector.
Referenced by TrimmedVertexFitter().
{ theRector.setVertexFitProbabilityCut ( cut ); }
CachingVertex< 5 > TrimmedVertexFitter::vertex | ( | const std::vector< reco::TransientTrack > & | tracks, |
const GlobalPoint & | linPoint | ||
) | const [virtual] |
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 64 of file TrimmedVertexFitter.cc.
References gather_cfg::cout.
{ std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl; throw VertexException("not implemented"); }
CachingVertex< 5 > TrimmedVertexFitter::vertex | ( | const std::vector< reco::TransientTrack > & | tracks, |
const reco::BeamSpot & | beamSpot | ||
) | const [virtual] |
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 89 of file TrimmedVertexFitter.cc.
References gather_cfg::cout.
{ std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl; throw VertexException("not implemented"); }
CachingVertex< 5 > TrimmedVertexFitter::vertex | ( | const std::vector< RefCountedVertexTrack > & | tracks, |
const GlobalPoint & | priorPos, | ||
const GlobalError & | priorError | ||
) | const [virtual] |
Definition at line 79 of file TrimmedVertexFitter.cc.
References gather_cfg::cout.
{ std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl; throw VertexException("not implemented"); }
CachingVertex< 5 > TrimmedVertexFitter::vertex | ( | const std::vector< reco::TransientTrack > & | tracks, |
const GlobalPoint & | priorPos, | ||
const GlobalError & | priorError | ||
) | const [virtual] |
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 71 of file TrimmedVertexFitter.cc.
References gather_cfg::cout.
{ std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl; throw VertexException("not implemented"); }
CachingVertex< 5 > TrimmedVertexFitter::vertex | ( | const std::vector< reco::TransientTrack > & | tracks | ) | const [virtual] |
Fit vertex out of a set of TransientTracks
Implements VertexFitter< 5 >.
Definition at line 23 of file TrimmedVertexFitter.cc.
References LinearizedTrackStateFactory::linearizedTrackState(), TransientVertex::originalTracks(), TransientVertex::position(), TransientVertex::positionError(), evf::utils::state, theRector, TransientVertex::totalChiSquared(), VertexTrackFactory< N >::vertexTrack(), and KalmanTrimmedVertexFinder::vertices().
{ std::vector<TransientVertex> vtces = theRector.vertices ( tracks ); if (vtces.size() ) { const TransientVertex & rv = *(vtces.begin()); LinearizedTrackStateFactory lfac; VertexTrackFactory<5> vfac; VertexState state ( rv.position(), rv.positionError() ); std::vector < RefCountedVertexTrack > vtrks; std::vector<reco::TransientTrack> mytrks = rv.originalTracks(); for ( std::vector<reco::TransientTrack>::const_iterator rt=mytrks.begin(); rt!=mytrks.end() ; ++rt ) { RefCountedLinearizedTrackState lstate =lfac.linearizedTrackState ( rv.position(), *rt ); RefCountedVertexTrack vtrk = vfac.vertexTrack ( lstate, state, 1.0 ); vtrks.push_back ( vtrk ); }; return CachingVertex<5> ( rv.position(), rv.positionError(), vtrks, rv.totalChiSquared() ); }; return CachingVertex<5>(); }
CachingVertex< 5 > TrimmedVertexFitter::vertex | ( | const std::vector< RefCountedVertexTrack > & | tracks, |
const reco::BeamSpot & | spot | ||
) | const [virtual] |
Definition at line 55 of file TrimmedVertexFitter.cc.
References gather_cfg::cout.
{ std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl; throw VertexException("not implemented"); }
CachingVertex< 5 > TrimmedVertexFitter::vertex | ( | const std::vector< RefCountedVertexTrack > & | tracks | ) | const [virtual] |
Definition at line 48 of file TrimmedVertexFitter.cc.
References gather_cfg::cout.
{ std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl; throw VertexException("not implemented"); }
double TrimmedVertexFitter::ptcut [private] |
Definition at line 56 of file TrimmedVertexFitter.h.
Referenced by setPtCut().
Definition at line 55 of file TrimmedVertexFitter.h.
Referenced by setPtCut(), setTrackCompatibilityCut(), setVertexFitProbabilityCut(), TrimmedVertexFitter(), and vertex().