#include <GhostTrackFitter.h>
Classes | |
class | FitterImpl |
class | PredictionUpdater |
Public Member Functions | |
GhostTrack | fit (const GlobalPoint &priorPosition, const GlobalError &priorError, const GlobalVector &direction, double coneRadius, const std::vector< TransientTrack > &tracks) const |
GhostTrack | fit (const GlobalPoint &priorPosition, const GlobalError &priorError, const GlobalVector &direction, const GlobalError &directionError, const std::vector< TransientTrack > &tracks) const |
GhostTrack | fit (const GhostTrackPrediction &prior, const GlobalPoint &origin, const std::vector< TransientTrack > &tracks) const |
GhostTrack | fit (const GhostTrackPrediction &prior, const std::vector< TransientTrack > &tracks) const |
GhostTrackFitter () | |
void | setFitterImpl (const FitterImpl &fitterImpl) |
virtual | ~GhostTrackFitter () |
Protected Member Functions | |
GhostTrack | fit (FitterImpl &fitterImpl, const GhostTrackPrediction &prior, const std::vector< GhostTrackState > &states) const |
Private Attributes | |
std::auto_ptr< FitterImpl > | fitter |
std::auto_ptr< PredictionUpdater > | updater |
Definition at line 19 of file GhostTrackFitter.h.
GhostTrackFitter::GhostTrackFitter | ( | ) |
Definition at line 23 of file GhostTrackFitter.cc.
References fitter, and updater.
{ fitter.reset(new AnnealingGhostTrackFitter); updater.reset(new KalmanGhostTrackUpdater); }
GhostTrackFitter::~GhostTrackFitter | ( | ) | [virtual] |
Definition at line 29 of file GhostTrackFitter.cc.
{ }
GhostTrack GhostTrackFitter::fit | ( | const GlobalPoint & | priorPosition, |
const GlobalError & | priorError, | ||
const GlobalVector & | direction, | ||
double | coneRadius, | ||
const std::vector< TransientTrack > & | tracks | ||
) | const |
Definition at line 33 of file GhostTrackFitter.cc.
References bookConverter::prior.
Referenced by fit(), TrackIPProducer::produce(), and reco::GhostTrackVertexFinder::vertices().
{ GhostTrackPrediction prior(priorPosition, priorError, direction, coneRadius); return fit(prior, priorPosition, tracks); }
GhostTrack GhostTrackFitter::fit | ( | FitterImpl & | fitterImpl, |
const GhostTrackPrediction & | prior, | ||
const std::vector< GhostTrackState > & | states | ||
) | const [protected] |
Definition at line 91 of file GhostTrackFitter.cc.
References reco::GhostTrackFitter::FitterImpl::fit(), query::result, and updater.
{ std::vector<GhostTrackState> states = states_; double ndof, chi2; GhostTrackPrediction pred = fitterImpl.fit(*updater, prior, states, ndof, chi2); GhostTrack result(prior, pred, states, ndof, chi2); return result; }
GhostTrack GhostTrackFitter::fit | ( | const GlobalPoint & | priorPosition, |
const GlobalError & | priorError, | ||
const GlobalVector & | direction, | ||
const GlobalError & | directionError, | ||
const std::vector< TransientTrack > & | tracks | ||
) | const |
Definition at line 45 of file GhostTrackFitter.cc.
References fit(), and bookConverter::prior.
{ GhostTrackPrediction prior(priorPosition, priorError, direction, directionError); return fit(prior, priorPosition, tracks); }
GhostTrack GhostTrackFitter::fit | ( | const GhostTrackPrediction & | prior, |
const std::vector< TransientTrack > & | tracks | ||
) | const |
Definition at line 76 of file GhostTrackFitter.cc.
References fit(), fitter, reco::GhostTrackState::linearize(), and evf::utils::state.
GhostTrack GhostTrackFitter::fit | ( | const GhostTrackPrediction & | prior, |
const GlobalPoint & | origin, | ||
const std::vector< TransientTrack > & | tracks | ||
) | const |
Definition at line 57 of file GhostTrackFitter.cc.
References fit(), fitter, reco::GhostTrackPrediction::lambda(), reco::GhostTrackState::linearize(), evf::evtn::offset(), and evf::utils::state.
{ double offset = prior.lambda(origin); std::vector<GhostTrackState> states; for(std::vector<TransientTrack>::const_iterator iter = tracks.begin(); iter != tracks.end(); ++iter) { GhostTrackState state(*iter); state.linearize(prior, true, offset); states.push_back(state); } PositiveSideGhostTrackFitter actualFitter(origin, *fitter); return fit(actualFitter, prior, states); }
void reco::GhostTrackFitter::setFitterImpl | ( | const FitterImpl & | fitterImpl | ) | [inline] |
Definition at line 74 of file GhostTrackFitter.h.
References reco::GhostTrackFitter::FitterImpl::clone(), and fitter.
{ fitter.reset(fitterImpl.clone()); }
std::auto_ptr<FitterImpl> reco::GhostTrackFitter::fitter [private] |
Definition at line 83 of file GhostTrackFitter.h.
Referenced by fit(), GhostTrackFitter(), and setFitterImpl().
std::auto_ptr<PredictionUpdater> reco::GhostTrackFitter::updater [private] |
Definition at line 84 of file GhostTrackFitter.h.
Referenced by fit(), and GhostTrackFitter().