CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/Alignment/CocoaModel/interface/DeviationSensor2D.h

Go to the documentation of this file.
00001 //   COCOA class header file
00002 //Id:  DeviationSensor2D.h
00003 //CAT: Model
00004 //
00005 //   Base class to describe Optical Objects of type sensor 2D
00006 // 
00007 //   History: v1.0 
00008 //   Pedro Arce
00009 
00010 #ifndef _DEVIATIONSensor2D_HH
00011 #define _DEVIATIONSensor2D_HH
00012 
00013 #include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
00014 #include <vector>
00015 
00016 class DeviationSensor2D
00017 {
00018 
00019 public:
00020   //---------- Constructors / Destructor
00021   DeviationSensor2D(){ };
00022   DeviationSensor2D( ALIdouble posDimFactor, ALIdouble angDimFactor );
00023   ~DeviationSensor2D(){ };
00024  
00025   // read file
00026   void fillData( const std::vector<ALIstring>& wl );
00027 
00028   // Access data
00029   const ALIdouble& posX() {
00030     return thePosX;
00031   }
00032   const ALIdouble& posY() {
00033     return thePosY;
00034   }
00035   const ALIdouble& posErrX() {
00036     return thePosErrX;
00037   }
00038   const ALIdouble& posErrY() {
00039     return thePosErrY;
00040   }
00041   const ALIdouble& devX() {
00042     return theDevX;
00043   }
00044   const ALIdouble& devY() {
00045     return theDevY;
00046   }
00047   const ALIdouble& devErrX() {
00048     return theDevErrX;
00049   }
00050   const ALIdouble& devErrY() {
00051     return theDevErrY;
00052   }
00053   
00054  private:
00055   ALIdouble thePosX, thePosY;
00056   ALIdouble thePosErrX, thePosErrY;
00057   ALIdouble theDevX, theDevY;
00058   ALIdouble theDevErrX, theDevErrY;
00059   ALIdouble thePosDimFactor, theAngDimFactor;
00060 };
00061 
00062 #endif