CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
19 {
20 public:
22 : Measurement( measdim, type, name ){
23  for(unsigned int ii=0; ii<4; ii++) theXlaserLine[ii] = -1;
24  };
27 
28  // Get simulated value (called every time a parameter is displaced)
30 
31  //---------- Add any correction between the measurement data and the default format in COCOA
32  virtual void correctValueAndSigma();
33 
34  //---------- Convert from V to rad
35  virtual void setConversionFactor( const std::vector<ALIstring>& wordlist );
36  virtual int xlaserLine( unsigned int ii) {
37  return theXlaserLine[ii];
38  }
39  virtual void setXlaserLine( unsigned int ii, int val) {
40  theXlaserLine[ii] = val;};
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)
virtual void calculateSimulatedValue(ALIbool firstTime)
int ALIint
Definition: CocoaGlobals.h:15
int ii
Definition: cuy.py:588
bool ALIbool
Definition: CocoaGlobals.h:19
virtual int xlaserLine(unsigned int ii)
bool firstTime
Definition: QTestHandle.cc:18
virtual void setConversionFactor(const std::vector< ALIstring > &wordlist)
virtual void correctValueAndSigma()
ALIdouble theDisplace[4]
std::string ALIstring
Definition: CocoaGlobals.h:9
ALIint theXlaserLine[4]
const ALIstring & name() const
Definition: Measurement.h:90
virtual void setXlaserLine(unsigned int ii, int val)