#include <TwoBodyDecayFitter.h>
typedef PerigeeLinearizedTrackState::RefCountedLinearizedTrackState TwoBodyDecayFitter::RefCountedLinearizedTrackState [private] |
Definition at line 51 of file TwoBodyDecayFitter.h.
TwoBodyDecayFitter::TwoBodyDecayFitter | ( | const edm::ParameterSet & | config | ) |
Definition at line 3 of file TwoBodyDecayFitter.cc.
Referenced by clone().
: theVertexFinder( new DefaultLinearizationPointFinder() ), theLinPointFinder( new TwoBodyDecayLinearizationPointFinder( config ) ), theEstimator( new TwoBodyDecayEstimator( config ) ) {}
TwoBodyDecayFitter::TwoBodyDecayFitter | ( | const edm::ParameterSet & | config, |
const LinearizationPointFinder * | vf, | ||
const TwoBodyDecayLinearizationPointFinder * | lpf, | ||
const TwoBodyDecayEstimator * | est | ||
) |
Definition at line 9 of file TwoBodyDecayFitter.cc.
: theVertexFinder( vf->clone() ), theLinPointFinder( lpf->clone() ), theEstimator( est->clone() ) {}
TwoBodyDecayFitter::~TwoBodyDecayFitter | ( | void | ) | [virtual] |
Definition at line 18 of file TwoBodyDecayFitter.cc.
{}
virtual TwoBodyDecayFitter* TwoBodyDecayFitter::clone | ( | void | ) | const [inline, virtual] |
Definition at line 47 of file TwoBodyDecayFitter.h.
References TwoBodyDecayFitter().
{ return new TwoBodyDecayFitter( *this ); }
const TwoBodyDecay TwoBodyDecayFitter::estimate | ( | const std::vector< reco::TransientTrack > & | tracks, |
const std::vector< TrajectoryStateOnSurface > & | tsos, | ||
const TwoBodyDecayVirtualMeasurement & | vm | ||
) | const [virtual] |
Definition at line 40 of file TwoBodyDecayFitter.cc.
References LinearizedTrackStateFactory::linearizedTrackState(), TwoBodyDecayVirtualMeasurement::primaryMass(), TwoBodyDecayVirtualMeasurement::secondaryMass(), theEstimator, theLinPointFinder, theLinTrackStateFactory, and theVertexFinder.
{ // get geometrical linearization point std::vector< FreeTrajectoryState > freeTrajStates; freeTrajStates.push_back( *tsos[0].freeState() ); freeTrajStates.push_back( *tsos[1].freeState() ); GlobalPoint linVertex = theVertexFinder->getLinearizationPoint( freeTrajStates ); // create linearized track states std::vector< RefCountedLinearizedTrackState > linTracks; linTracks.push_back( theLinTrackStateFactory.linearizedTrackState( linVertex, tracks[0], tsos[0] ) ); linTracks.push_back( theLinTrackStateFactory.linearizedTrackState( linVertex, tracks[1], tsos[1] ) ); // get full linearization point (geomatrical & kinematical) const TwoBodyDecayParameters linPoint = theLinPointFinder->getLinearizationPoint( linTracks, vm.primaryMass(), vm.secondaryMass() ); // make the fit return theEstimator->estimate( linTracks, linPoint, vm ); }
const TwoBodyDecay TwoBodyDecayFitter::estimate | ( | const std::vector< reco::TransientTrack > & | tracks, |
const TwoBodyDecayVirtualMeasurement & | vm | ||
) | const [virtual] |
Definition at line 21 of file TwoBodyDecayFitter.cc.
References LinearizedTrackStateFactory::linearizedTrackState(), TwoBodyDecayVirtualMeasurement::primaryMass(), TwoBodyDecayVirtualMeasurement::secondaryMass(), theEstimator, theLinPointFinder, theLinTrackStateFactory, and theVertexFinder.
Referenced by TwoBodyDecayTrajectoryFactory::trajectories().
{ // get geometrical linearization point GlobalPoint linVertex = theVertexFinder->getLinearizationPoint( tracks ); // create linearized track states std::vector< RefCountedLinearizedTrackState > linTracks; linTracks.push_back( theLinTrackStateFactory.linearizedTrackState( linVertex, tracks[0] ) ); linTracks.push_back( theLinTrackStateFactory.linearizedTrackState( linVertex, tracks[1] ) ); // get full linearization point (geomatrical & kinematical) const TwoBodyDecayParameters linPoint = theLinPointFinder->getLinearizationPoint( linTracks, vm.primaryMass(), vm.secondaryMass() ); // make the fit return theEstimator->estimate( linTracks, linPoint, vm ); }
const TwoBodyDecayEstimator* TwoBodyDecayFitter::estimator | ( | void | ) | const [inline] |
Definition at line 44 of file TwoBodyDecayFitter.h.
References theEstimator.
{ return theEstimator.operator->(); }
const TwoBodyDecayLinearizationPointFinder* TwoBodyDecayFitter::linearizationPointFinder | ( | void | ) | const [inline] |
Definition at line 43 of file TwoBodyDecayFitter.h.
References theLinPointFinder.
{ return theLinPointFinder.operator->(); }
const LinearizationPointFinder* TwoBodyDecayFitter::vertexFinder | ( | void | ) | const [inline] |
Definition at line 45 of file TwoBodyDecayFitter.h.
References theVertexFinder.
{ return theVertexFinder.operator->(); }
DeepCopyPointerByClone< const TwoBodyDecayEstimator > TwoBodyDecayFitter::theEstimator [private] |
Definition at line 55 of file TwoBodyDecayFitter.h.
Referenced by estimate(), and estimator().
DeepCopyPointerByClone< const TwoBodyDecayLinearizationPointFinder > TwoBodyDecayFitter::theLinPointFinder [private] |
Definition at line 54 of file TwoBodyDecayFitter.h.
Referenced by estimate(), and linearizationPointFinder().
Definition at line 57 of file TwoBodyDecayFitter.h.
Referenced by estimate().
DeepCopyPointerByClone< const LinearizationPointFinder > TwoBodyDecayFitter::theVertexFinder [private] |
Definition at line 53 of file TwoBodyDecayFitter.h.
Referenced by estimate(), and vertexFinder().