#include <KinematicConstrainedVertexFitter.h>
Public Member Functions | |
RefCountedKinematicTree | fit (const std::vector< RefCountedKinematicParticle > &part) |
RefCountedKinematicTree | fit (const std::vector< RefCountedKinematicParticle > &part, MultiTrackKinematicConstraint *cs) |
RefCountedKinematicTree | fit (const std::vector< RefCountedKinematicParticle > &part, MultiTrackKinematicConstraint *cs, GlobalPoint *pt) |
float | getCSum () const |
int | getNit () const |
KinematicConstrainedVertexFitter () | |
KinematicConstrainedVertexFitter (const LinearizationPointFinder &fnd) | |
void | setParameters (const edm::ParameterSet &pSet) |
~KinematicConstrainedVertexFitter () | |
Private Member Functions | |
void | defaultParameters () |
Private Attributes | |
float | csum |
LinearizationPointFinder * | finder |
int | iterations |
ConstrainedTreeBuilder * | tBuilder |
float | theMaxDelta |
float | theMaxReducedChiSq |
int | theMaxStep |
float | theMinChiSqImprovement |
KinematicConstrainedVertexUpdator * | updator |
VertexKinematicConstraint * | vCons |
Class fitting the veretx out of set of tracks via usual LMS with Lagrange multipliers. Additional constraints can be applyed to the tracks during the vertex fit (solves non-factorizabele cases). Since the vertex constraint is included by default, do not add a separate VertexKinematicConstraint! Example: Vertex fit with collinear tracks..
Definition at line 21 of file KinematicConstrainedVertexFitter.h.
KinematicConstrainedVertexFitter::KinematicConstrainedVertexFitter | ( | ) |
Default constructor using LMSLinearizationPointFinder
Definition at line 9 of file KinematicConstrainedVertexFitter.cc.
References csum, defaultParameters(), finder, iterations, tBuilder, updator, and vCons.
KinematicConstrainedVertexFitter::KinematicConstrainedVertexFitter | ( | const LinearizationPointFinder & | fnd | ) |
Constructor with user-provided LinearizationPointFinder
Definition at line 20 of file KinematicConstrainedVertexFitter.cc.
References LinearizationPointFinder::clone(), csum, defaultParameters(), finder, iterations, tBuilder, updator, and vCons.
KinematicConstrainedVertexFitter::~KinematicConstrainedVertexFitter | ( | ) |
Definition at line 31 of file KinematicConstrainedVertexFitter.cc.
References finder, tBuilder, updator, and vCons.
|
private |
Definition at line 47 of file KinematicConstrainedVertexFitter.cc.
References theMaxDelta, theMaxReducedChiSq, theMaxStep, and theMinChiSqImprovement.
Referenced by fit(), and KinematicConstrainedVertexFitter().
|
inline |
Without additional constraint, this will perform a simple vertex fit using LMS with Lagrange multipliers method.
Definition at line 48 of file KinematicConstrainedVertexFitter.h.
Referenced by KineExample::analyze(), fit(), BPHKinematicFit::kinematicTree(), trackingPlots.Iteration::modules(), and ConversionVertexFinder::run().
|
inline |
LMS with Lagrange multipliers fit of vertex constraint and user-specified constraint.
Definition at line 55 of file KinematicConstrainedVertexFitter.h.
References fwrapper::cs, defaultParameters(), fit(), getCSum(), getNit(), and EnergyCorrector::pt.
Referenced by trackingPlots.Iteration::modules().
RefCountedKinematicTree KinematicConstrainedVertexFitter::fit | ( | const std::vector< RefCountedKinematicParticle > & | part, |
MultiTrackKinematicConstraint * | cs, | ||
GlobalPoint * | pt | ||
) |
LMS with Lagrange multipliers fit of vertex constraint, user-specified constraint and user-specified starting point.
Definition at line 55 of file KinematicConstrainedVertexFitter.cc.
References ConstrainedTreeBuilder::buildTree(), csum, delta, Vispa.Plugins.EdmBrowser.EdmDataAccessor::eq(), finder, LinearizationPointFinder::getLinearizationPoint(), mps_fire::i, input, KinematicState::isValid(), iterations, KinematicState::kinematicParameters(), KinematicState::kinematicParametersError(), LogDebug, KinematicParametersError::matrix(), allConversions_cfi::maxDelta, HadronAndPartonSelector_cfi::particles, EnergyCorrector::pt, InputSort::sort(), tBuilder, theMaxDelta, theMaxReducedChiSq, theMaxStep, theMinChiSqImprovement, KinematicConstrainedVertexUpdator::update(), updator, KinematicParameters::vector(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by trackingPlots.Iteration::modules().
float KinematicConstrainedVertexFitter::getCSum | ( | ) | const |
Definition at line 209 of file KinematicConstrainedVertexFitter.cc.
References csum.
Referenced by fit().
int KinematicConstrainedVertexFitter::getNit | ( | ) | const |
Definition at line 205 of file KinematicConstrainedVertexFitter.cc.
References iterations.
Referenced by fit(), and ConversionVertexFinder::run().
void KinematicConstrainedVertexFitter::setParameters | ( | const edm::ParameterSet & | pSet | ) |
Configuration through PSet: number of iterations(maxDistance) and stopping condition (maxNbrOfIterations)
Definition at line 39 of file KinematicConstrainedVertexFitter.cc.
References edm::ParameterSet::getParameter(), theMaxDelta, theMaxReducedChiSq, theMaxStep, and theMinChiSqImprovement.
|
private |
Definition at line 85 of file KinematicConstrainedVertexFitter.h.
Referenced by fit(), getCSum(), and KinematicConstrainedVertexFitter().
|
private |
Definition at line 80 of file KinematicConstrainedVertexFitter.h.
Referenced by fit(), KinematicConstrainedVertexFitter(), and ~KinematicConstrainedVertexFitter().
|
private |
Definition at line 84 of file KinematicConstrainedVertexFitter.h.
Referenced by fit(), getNit(), and KinematicConstrainedVertexFitter().
|
private |
Definition at line 83 of file KinematicConstrainedVertexFitter.h.
Referenced by fit(), KinematicConstrainedVertexFitter(), and ~KinematicConstrainedVertexFitter().
|
private |
Definition at line 76 of file KinematicConstrainedVertexFitter.h.
Referenced by defaultParameters(), fit(), and setParameters().
|
private |
Definition at line 78 of file KinematicConstrainedVertexFitter.h.
Referenced by defaultParameters(), fit(), and setParameters().
|
private |
Definition at line 77 of file KinematicConstrainedVertexFitter.h.
Referenced by defaultParameters(), fit(), and setParameters().
|
private |
Definition at line 79 of file KinematicConstrainedVertexFitter.h.
Referenced by defaultParameters(), fit(), and setParameters().
|
private |
Definition at line 81 of file KinematicConstrainedVertexFitter.h.
Referenced by fit(), KinematicConstrainedVertexFitter(), and ~KinematicConstrainedVertexFitter().
|
private |
Definition at line 82 of file KinematicConstrainedVertexFitter.h.
Referenced by KinematicConstrainedVertexFitter(), and ~KinematicConstrainedVertexFitter().