CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_1/src/Alignment/CocoaModel/interface/MeasurementTiltmeter.h

Go to the documentation of this file.
00001 // COCOA class header file
00002 // Id:  MeasurementTiltmeter.h
00003 // CAT: Model
00004 //
00005 // Class for measurements
00006 // 
00007 // History: v1.0 
00008 // Authors:
00009 //   Pedro Arce
00010 
00011 #ifndef _MEASUREMENTTILTMETER_HH
00012 #define _MEASUREMENTTILTMETER_HH
00013 
00014 #include <vector>
00015 #include "Alignment/CocoaModel/interface/Measurement.h"
00016 #include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
00017 
00018 class MeasurementTiltmeter : public Measurement
00019 { 
00020 public:
00021   MeasurementTiltmeter( const ALIint measdim, ALIstring& type, ALIstring& name ) : Measurement( measdim, type, name ), theFactor(1.), theFactorSigma(0.), theConstantTerm(0.), theConstantTermSigma(0.), thePedestal(0.), thePedestalSigma(0.)
00022 { };
00023   MeasurementTiltmeter(){ };   
00024   ~MeasurementTiltmeter(){ };
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   ALIdouble theConstantTerm;
00039   ALIdouble theConstantTermSigma;
00040   ALIdouble thePedestal;
00041   ALIdouble thePedestalSigma;
00042 };
00043 
00044 #endif