CMS 3D CMS Logo

SmsModeFinder3d.cc
Go to the documentation of this file.
2 
4 
5 GlobalPoint SmsModeFinder3d::operator()(const std::vector<PointAndDistance>& values) const {
6  std::vector<std::pair<GlobalPoint, float> > weighted;
7  for (std::vector<PointAndDistance>::const_iterator i = values.begin(); i != values.end(); ++i) {
8  float weight = pow(10 + 10000 * i->second, -2);
9  weighted.push_back(std::pair<GlobalPoint, float>(i->first, weight));
10  };
11  return theAlgo.location(weighted);
12 }
13 
mps_fire.i
i
Definition: mps_fire.py:428
SmsModeFinder3d::operator()
GlobalPoint operator()(const std::vector< PointAndDistance > &values) const override
Definition: SmsModeFinder3d.cc:5
SMS
Definition: SMS.h:16
cmsdt::algo
algo
Definition: constants.h:171
contentValuesCheck.values
values
Definition: contentValuesCheck.py:38
SmsModeFinder3d.h
Point3DBase< float, GlobalTag >
SmsModeFinder3d
Definition: SmsModeFinder3d.h:9
plotBeamSpotDB.weighted
weighted
Definition: plotBeamSpotDB.py:303
SMS::location
GlobalPoint location(const std::vector< GlobalPoint > &) const
Definition: SMS.cc:57
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29
SmsModeFinder3d::SmsModeFinder3d
SmsModeFinder3d(const SMS &algo=SMS())
Definition: SmsModeFinder3d.cc:3
SmsModeFinder3d::theAlgo
SMS theAlgo
Definition: SmsModeFinder3d.h:16
weight
Definition: weight.py:1
SmsModeFinder3d::clone
SmsModeFinder3d * clone() const override
Definition: SmsModeFinder3d.cc:14