1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// COCOA class header file
// Id: MeasurementSensor2D.h
// CAT: Model
//
// Class for measurements
//
// History: v1.0
// Authors:
// Pedro Arce
#ifndef _MEASUREMENTSENSOR2D_HH
#define _MEASUREMENTSENSOR2D_HH
#include <vector>
#include "Alignment/CocoaModel/interface/Measurement.h"
#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
class MeasurementSensor2D : public Measurement {
public:
MeasurementSensor2D(const ALIint measdim, ALIstring& type, ALIstring& name) : Measurement(measdim, type, name) {}
MeasurementSensor2D() {}
~MeasurementSensor2D() override {}
// Get simulated value (called every time a parameter is displaced)
void calculateSimulatedValue(ALIbool firstTime) override;
//---------- Add any correction between the measurement data and the default format in COCOA
void correctValueAndSigma() override;
//---------- Convert from V to rad
void setConversionFactor(const std::vector<ALIstring>& wordlist) override;
private:
ALIdouble theDisplaceX, theDisplaceY;
ALIdouble theMultiplyX, theMultiplyY;
};
#endif
|