#include <AnnealingGhostTrackFitter.h>
Public Member Functions | |
AnnealingGhostTrackFitter () | |
AnnealingGhostTrackFitter (const AnnealingGhostTrackFitter &orig) | |
~AnnealingGhostTrackFitter () | |
Private Member Functions | |
virtual FitterImpl * | clone () const |
virtual void | postFit (const GhostTrackFitter::PredictionUpdater &updater, const GhostTrackPrediction &pred, std::vector< GhostTrackState > &states) |
virtual void | reset () |
virtual bool | stable (const GhostTrackPrediction &before, const GhostTrackPrediction &after) const |
Private Attributes | |
std::auto_ptr< AnnealingSchedule > | annealing |
bool | firstStep |
Definition at line 17 of file AnnealingGhostTrackFitter.h.
AnnealingGhostTrackFitter::AnnealingGhostTrackFitter | ( | ) |
Definition at line 16 of file AnnealingGhostTrackFitter.cc.
References annealing.
Referenced by clone().
{ annealing.reset(new GeometricAnnealing(3.0, 64.0, 0.25)); }
reco::AnnealingGhostTrackFitter::AnnealingGhostTrackFitter | ( | const AnnealingGhostTrackFitter & | orig | ) | [inline] |
Definition at line 20 of file AnnealingGhostTrackFitter.h.
reco::AnnealingGhostTrackFitter::~AnnealingGhostTrackFitter | ( | ) | [inline] |
Definition at line 23 of file AnnealingGhostTrackFitter.h.
{}
virtual FitterImpl* reco::AnnealingGhostTrackFitter::clone | ( | void | ) | const [inline, private, virtual] |
Reimplemented from reco::SequentialGhostTrackFitter.
Definition at line 26 of file AnnealingGhostTrackFitter.h.
References AnnealingGhostTrackFitter().
{ return new AnnealingGhostTrackFitter(*this); }
void AnnealingGhostTrackFitter::postFit | ( | const GhostTrackFitter::PredictionUpdater & | updater, |
const GhostTrackPrediction & | pred, | ||
std::vector< GhostTrackState > & | states | ||
) | [private, virtual] |
Reimplemented from reco::SequentialGhostTrackFitter.
Definition at line 21 of file AnnealingGhostTrackFitter.cc.
References annealing, reco::GhostTrackFitter::PredictionUpdater::contribution(), firstStep, and evf::utils::state.
{ for(std::vector<GhostTrackState>::iterator state = states.begin(); state != states.end(); ++state) { if (!state->isValid()) continue; double ndof, chi2; updater.contribution(pred, *state, ndof, chi2); if (ndof == 0. || firstStep) continue; state->setWeight(annealing->weight(chi2)); } if (firstStep) firstStep = false; else annealing->anneal(); }
virtual void reco::AnnealingGhostTrackFitter::reset | ( | void | ) | [inline, private, virtual] |
Reimplemented from reco::SequentialGhostTrackFitter.
Definition at line 36 of file AnnealingGhostTrackFitter.h.
virtual bool reco::AnnealingGhostTrackFitter::stable | ( | const GhostTrackPrediction & | before, |
const GhostTrackPrediction & | after | ||
) | const [inline, private, virtual] |
Reimplemented from reco::SequentialGhostTrackFitter.
Definition at line 29 of file AnnealingGhostTrackFitter.h.
References annealing.
{ return SequentialGhostTrackFitter::stable(before, after) && annealing->isAnnealed(); }
std::auto_ptr<AnnealingSchedule> reco::AnnealingGhostTrackFitter::annealing [private] |
Definition at line 42 of file AnnealingGhostTrackFitter.h.
Referenced by AnnealingGhostTrackFitter(), postFit(), reset(), and stable().
bool reco::AnnealingGhostTrackFitter::firstStep [private] |
Definition at line 43 of file AnnealingGhostTrackFitter.h.