CMS 3D CMS Logo

SMS.h

Go to the documentation of this file.
00001 #ifndef SMS_H
00002 #define SMS_H
00003 
00004 #include <cmath>
00005 #include <cstdlib>
00006 #include <vector>
00007 #include <algorithm>
00008 #include <iostream>
00009 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
00010 
00011 using namespace std;
00012 
00018 class SMS
00019 {
00020 public:
00021   enum SMSType { None        = 0,
00022                  Interpolate = 1,
00023                  Iterate     = 2,
00024                  Weighted    = 4 };
00031   SMS ( SMSType tp = (SMSType) (Interpolate | Iterate | Weighted), float q=0.5 );
00032 
00033   GlobalPoint location ( const vector < GlobalPoint > & ) const;
00034   GlobalPoint location ( const vector < pair < GlobalPoint, float > > & ) const;
00035 
00036 private:
00037   SMSType theType;
00038   float theRatio;
00039 
00040 };
00041 
00042 #endif /* def SMS */

Generated on Tue Jun 9 17:46:13 2009 for CMSSW by  doxygen 1.5.4