CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SMS.h
Go to the documentation of this file.
1 #ifndef SMS_H
2 #define SMS_H
3 
4 #include <cmath>
5 #include <cstdlib>
6 #include <vector>
7 #include <algorithm>
8 #include <iostream>
10 
16 class SMS {
17 public:
18  enum SMSType { None = 0, Interpolate = 1, Iterate = 2, Weighted = 4 };
25  SMS(SMSType tp = (SMSType)(Interpolate | Iterate | Weighted), float q = 0.5);
26 
27  GlobalPoint location(const std::vector<GlobalPoint>&) const;
28  GlobalPoint location(const std::vector<std::pair<GlobalPoint, float> >&) const;
29 
30 private:
32  float theRatio;
33 };
34 
35 #endif /* def SMS */
Definition: SMS.h:18
SMSType theType
Definition: SMS.h:31
Definition: SMS.h:16
SMS(SMSType tp=(SMSType)(Interpolate|Iterate|Weighted), float q=0.5)
Definition: SMS.cc:55
float theRatio
Definition: SMS.h:32
GlobalPoint location(const std::vector< GlobalPoint > &) const
Definition: SMS.cc:57
SMSType
Definition: SMS.h:18