template<class T>
class FsmwClusterizer1D< T >
Fraction-of sample mode with weights clustering
Definition at line 17 of file FsmwClusterizer1D.h.
Implements Clusterizer1D< T >.
Definition at line 161 of file FsmwClusterizer1D.h.
166 std::vector<const T*> unusedtracks;
172 std::pair<std::vector<Cluster1D>, std::vector<const T*> >
ret(ov, unusedtracks);
176 std::vector<Cluster1D>
v = ov;
178 std::vector<Cluster1D> sols;
180 std::pair<typename std::vector<Cluster1D>::const_iterator,
typename std::vector<Cluster1D>::const_iterator> estors =
183 double weight = estors.first->weight() + estors.second->weight();
184 double est = (estors.first->weight() * estors.first->position().value() +
185 estors.second->weight() * estors.second->position().value()) /
188 double sigma =
sqrt(
square(estors.first->position().value() - est) +
square(estors.second->position().value() - est));
197 std::vector<const T*>
trks;
200 for (
typename std::vector<Cluster1D>::iterator
i =
v.begin();
i !=
v.end(); ++
i) {
206 if (fabs(
i->position().value() - est) <
theNSigmaIn * sigma) {
212 add(
i->tracks(), unusedtracks);
215 err /= (inliers - 1);
221 std::pair<std::vector<Cluster1D>, std::vector<const T*> >
ret(sols, unusedtracks);
References Clusterizer1DCommons::add(), submitPVResolutionJobs::err, FsmwClusterizer1DNameSpace::fsmw(), mps_fire::i, runTheMatrix::ret, jetUpdater_cfi::sort, mathSSE::sqrt(), Clusterizer1DCommons::square(), hltEgammaHLTExtra_cfi::trks, and findQualityFiles::v.