Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:44:27

0001 // COCOA class header file

0002 // Id:  MeasurementTiltmeter.h

0003 // CAT: Model

0004 //

0005 // Class for measurements

0006 //

0007 // History: v1.0

0008 // Authors:

0009 //   Pedro Arce

0010 
0011 #ifndef _MEASUREMENTTILTMETER_HH
0012 #define _MEASUREMENTTILTMETER_HH
0013 
0014 #include <vector>
0015 #include "Alignment/CocoaModel/interface/Measurement.h"
0016 #include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
0017 
0018 class MeasurementTiltmeter : public Measurement {
0019 public:
0020   MeasurementTiltmeter(const ALIint measdim, ALIstring& type, ALIstring& name)
0021       : Measurement(measdim, type, name),
0022         theFactor(1.),
0023         theFactorSigma(0.),
0024         theConstantTerm(0.),
0025         theConstantTermSigma(0.),
0026         thePedestal(0.),
0027         thePedestalSigma(0.){};
0028   MeasurementTiltmeter(){};
0029   ~MeasurementTiltmeter() override{};
0030 
0031   // Get simulated value (called every time a parameter is displaced)

0032   void calculateSimulatedValue(ALIbool firstTime) override;
0033 
0034   //---------- Convert from V to rad

0035   void setConversionFactor(const std::vector<ALIstring>& wordlist) override;
0036 
0037   //---------- Add any correction between the measurement data and the default format in COCOA

0038   void correctValueAndSigma() override;
0039 
0040 private:
0041   ALIdouble theFactor;
0042   ALIdouble theFactorSigma;
0043   ALIdouble theConstantTerm;
0044   ALIdouble theConstantTermSigma;
0045   ALIdouble thePedestal;
0046   ALIdouble thePedestalSigma;
0047 };
0048 
0049 #endif