CMS 3D CMS Logo

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 
19 {
20 public:
22 : Measurement( measdim, type, name ){
23  for(unsigned int ii=0; ii<4; ii++) theXlaserLine[ii] = -1;
24  };
26  ~MeasurementCOPS() override{ };
27 
28  // Get simulated value (called every time a parameter is displaced)
29  void calculateSimulatedValue( ALIbool firstTime ) override;
30 
31  //---------- Add any correction between the measurement data and the default format in COCOA
32  void correctValueAndSigma() override;
33 
34  //---------- Convert from V to rad
35  void setConversionFactor( const std::vector<ALIstring>& wordlist ) override;
36  int xlaserLine( unsigned int ii) override {
37  return theXlaserLine[ii];
38  }
39  void setXlaserLine( unsigned int ii, int val) override {
41 
42  private:
43 
45  ALIint theXlaserLine[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
46 
47 };
48 
49 #endif
type
Definition: HCALResponse.h:21
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
bool ALIbool
Definition: CocoaGlobals.h:19
void correctValueAndSigma() override
ii
Definition: cuy.py:590
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:90
int xlaserLine(unsigned int ii) override