00001 // COCOA class header file 00002 // Id: MeasurementDistancemeter.h 00003 // CAT: Model 00004 // 00005 // Class for measurements 00006 // 00007 // History: v1.0 00008 // Authors: 00009 // Pedro Arce 00010 00011 #ifndef _MEASUREMENTDISTANCEMETER_HH 00012 #define _MEASUREMENTDISTANCEMETER_HH 00013 00014 #include <vector> 00015 #include "Alignment/CocoaModel/interface/Measurement.h" 00016 #include "Alignment/CocoaUtilities/interface/CocoaGlobals.h" 00017 00018 class MeasurementDistancemeter : public Measurement 00019 { 00020 public: 00021 MeasurementDistancemeter( const ALIint measdim, ALIstring& type, ALIstring& name ) 00022 : Measurement( measdim, type, name ), theFactor(1.), theFactorSigma(0.){}; 00023 MeasurementDistancemeter(){ }; 00024 ~MeasurementDistancemeter(){ }; 00025 00026 // Get simulated value (called every time a parameter is displaced) 00027 virtual void calculateSimulatedValue( ALIbool firstTime ); 00028 00029 //---------- Convert from V to rad 00030 virtual void setConversionFactor( const std::vector<ALIstring>& wordlist ); 00031 00032 //---------- Add any correction between the measurement data and the default format in COCOA 00033 virtual void correctValueAndSigma(); 00034 00035 private: 00036 ALIdouble theFactor; 00037 ALIdouble theFactorSigma; 00038 }; 00039 00040 #endif