CMS 3D CMS Logo

Classes | Public Member Functions | Protected Member Functions | Private Attributes

reco::GhostTrackFitter Class Reference

#include <GhostTrackFitter.h>

List of all members.

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< FitterImplfitter
std::auto_ptr< PredictionUpdaterupdater

Detailed Description

Definition at line 19 of file GhostTrackFitter.h.


Constructor & Destructor Documentation

GhostTrackFitter::GhostTrackFitter ( )

Definition at line 23 of file GhostTrackFitter.cc.

References fitter, and updater.

GhostTrackFitter::~GhostTrackFitter ( ) [virtual]

Definition at line 29 of file GhostTrackFitter.cc.

{
}

Member Function Documentation

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 ExpressReco_HICollisions_FallBack::chi2, 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.

{
        std::vector<GhostTrackState> states;
        for(std::vector<TransientTrack>::const_iterator iter = tracks.begin();
            iter != tracks.end(); ++iter) {
                GhostTrackState state(*iter);
                state.linearize(prior, true);
                states.push_back(state);
        }

        return fit(*fitter, prior, states);
}
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()); }

Member Data Documentation

std::auto_ptr<FitterImpl> reco::GhostTrackFitter::fitter [private]

Definition at line 83 of file GhostTrackFitter.h.

Referenced by fit(), GhostTrackFitter(), and setFitterImpl().

Definition at line 84 of file GhostTrackFitter.h.

Referenced by fit(), and GhostTrackFitter().