13 static inline double sqr(
double arg) {
return arg *
arg; }
24 std::vector<GhostTrackState> &states)
26 for(std::vector<GhostTrackState>::iterator state =
27 states.begin(); state != states.end(); ++state) {
29 if (!state->isValid())
37 state->setWeight(
annealing->weight(chi2));
virtual void postFit(const GhostTrackFitter::PredictionUpdater &updater, const GhostTrackPrediction &pred, std::vector< GhostTrackState > &states)
virtual void contribution(const GhostTrackPrediction &pred, const GhostTrackState &state, double &ndof, double &chi2, bool withPredError=false) const =0
AnnealingGhostTrackFitter()
std::auto_ptr< AnnealingSchedule > annealing
Square< F >::type sqr(const F &f)