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
40
41
42
43
44
45
46
47
48
49
50
|
// COCOA class header file
// Id: MeasurementTiltmeter.h
// CAT: Model
//
// Class for measurements
//
// History: v1.0
// Authors:
// Pedro Arce
#ifndef _MEASUREMENTTILTMETER_HH
#define _MEASUREMENTTILTMETER_HH
#include <vector>
#include "Alignment/CocoaModel/interface/Measurement.h"
#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
class MeasurementTiltmeter : public Measurement {
public:
MeasurementTiltmeter(const ALIint measdim, ALIstring& type, ALIstring& name)
: Measurement(measdim, type, name),
theFactor(1.),
theFactorSigma(0.),
theConstantTerm(0.),
theConstantTermSigma(0.),
thePedestal(0.),
thePedestalSigma(0.) {}
MeasurementTiltmeter() {}
~MeasurementTiltmeter() override {}
// Get simulated value (called every time a parameter is displaced)
void calculateSimulatedValue(ALIbool firstTime) override;
//---------- Convert from V to rad
void setConversionFactor(const std::vector<ALIstring>& wordlist) override;
//---------- Add any correction between the measurement data and the default format in COCOA
void correctValueAndSigma() override;
private:
ALIdouble theFactor;
ALIdouble theFactorSigma;
ALIdouble theConstantTerm;
ALIdouble theConstantTermSigma;
ALIdouble thePedestal;
ALIdouble thePedestalSigma;
};
#endif
|