Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-09-07 04:34:26

0001 // COCOA class header file

0002 // Id:  MeasurementCOPS.h

0003 // CAT: Model

0004 //

0005 // Class for measurements

0006 //

0007 // History: v1.0

0008 // Authors:

0009 //   Pedro Arce

0010 
0011 #ifndef _MeasurementCOPS_h
0012 #define _MeasurementCOPS_h
0013 
0014 #include <vector>
0015 #include "Alignment/CocoaModel/interface/Measurement.h"
0016 #include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
0017 
0018 class MeasurementCOPS : public Measurement {
0019 public:
0020   MeasurementCOPS(const ALIint measdim, ALIstring& type, ALIstring& name) : Measurement(measdim, type, name) {
0021     for (unsigned int ii = 0; ii < 4; ii++)
0022       theXlaserLine[ii] = -1;
0023   };
0024   MeasurementCOPS() {}
0025   ~MeasurementCOPS() override {}
0026 
0027   // Get simulated value (called every time a parameter is displaced)

0028   void calculateSimulatedValue(ALIbool firstTime) override;
0029 
0030   //---------- Add any correction between the measurement data and the default format in COCOA

0031   void correctValueAndSigma() override;
0032 
0033   //---------- Convert from V to rad

0034   void setConversionFactor(const std::vector<ALIstring>& wordlist) override;
0035   int xlaserLine(unsigned int ii) override { return theXlaserLine[ii]; }
0036   void setXlaserLine(unsigned int ii, int val) override { theXlaserLine[ii] = val; };
0037 
0038 private:
0039   ALIdouble theDisplace[4];
0040   ALIint theXlaserLine
0041       [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

0042 };
0043 
0044 #endif