CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MeasurementCOPS.h
Go to the documentation of this file.
1 // COCOA class header file
2 // Id: MeasurementCOPS.h
3 // CAT: Model
4 //
5 // Class for measurements
6 //
7 // History: v1.0
8 // Authors:
9 // Pedro Arce
10 
11 #ifndef _MeasurementCOPS_h
12 #define _MeasurementCOPS_h
13 
14 #include <vector>
17 
18 class MeasurementCOPS : public Measurement {
19 public:
20  MeasurementCOPS(const ALIint measdim, ALIstring& type, ALIstring& name) : Measurement(measdim, type, name) {
21  for (unsigned int ii = 0; ii < 4; ii++)
22  theXlaserLine[ii] = -1;
23  };
25  ~MeasurementCOPS() override{};
26 
27  // Get simulated value (called every time a parameter is displaced)
28  void calculateSimulatedValue(ALIbool firstTime) override;
29 
30  //---------- Add any correction between the measurement data and the default format in COCOA
31  void correctValueAndSigma() override;
32 
33  //---------- Convert from V to rad
34  void setConversionFactor(const std::vector<ALIstring>& wordlist) override;
35  int xlaserLine(unsigned int ii) override { return theXlaserLine[ii]; }
36  void setXlaserLine(unsigned int ii, int val) override { theXlaserLine[ii] = val; };
37 
38 private:
41  [4]; // which x-hair laser line is measuring the CCD (0: X for UP and DOWN, Y for LEFT and RIGHT; 1: Y for UP and DOWN, X for LEFT and RIGHT ). Initialised at -1
42 };
43 
44 #endif
long double ALIdouble
Definition: CocoaGlobals.h:11
MeasurementCOPS(const ALIint measdim, ALIstring &type, ALIstring &name)
void calculateSimulatedValue(ALIbool firstTime) override
int ALIint
Definition: CocoaGlobals.h:15
void setXlaserLine(unsigned int ii, int val) override
int ii
Definition: cuy.py:589
bool ALIbool
Definition: CocoaGlobals.h:19
void correctValueAndSigma() override
void setConversionFactor(const std::vector< ALIstring > &wordlist) override
~MeasurementCOPS() override
ALIdouble theDisplace[4]
std::string ALIstring
Definition: CocoaGlobals.h:9
ALIint theXlaserLine[4]
const ALIstring & name() const
Definition: Measurement.h:86
int xlaserLine(unsigned int ii) override