CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/RecoTracker/TkSeedGenerator/interface/FastLine.h

Go to the documentation of this file.
00001 #ifndef TR_FastLine_H_
00002 #define TR_FastLine_H_
00003 
00004 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
00005 
00015 class FastLine {
00016 
00017 public:
00018   
00019   FastLine(const GlobalPoint& outerHit,
00020            const GlobalPoint& innerHit);
00021 
00022   FastLine(const GlobalPoint& outerHit,
00023            const GlobalPoint& innerHit,
00024            double rho);
00025   
00026   ~FastLine() {}
00027   
00028   double n1() const {return theN1;}
00029   
00030   double n2() const {return theN2;}
00031   
00032   double c() const {return theC;}
00033 
00034   bool isValid() const {return theValid;}
00035     
00036 private:
00037 
00038   GlobalPoint theOuterHit; 
00039   GlobalPoint theInnerHit; 
00040   double theRho;
00041   
00042   double theN1;
00043   double theN2;
00044   double theC;
00045   
00046   bool theValid;
00047   
00048   void createLineParameters();
00049   
00050 };
00051 
00052 #endif //TR_FastLine_H_