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 
18 class MeasurementCOPS : public Measurement {
19 public:
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
MeasurementCOPS::setXlaserLine
void setXlaserLine(unsigned int ii, int val) override
Definition: MeasurementCOPS.h:36
ALIbool
bool ALIbool
Definition: CocoaGlobals.h:19
MeasurementCOPS::theDisplace
ALIdouble theDisplace[4]
Definition: MeasurementCOPS.h:36
ALIstring
std::string ALIstring
Definition: CocoaGlobals.h:9
MeasurementCOPS
Definition: MeasurementCOPS.h:18
MeasurementCOPS::MeasurementCOPS
MeasurementCOPS()
Definition: MeasurementCOPS.h:24
MeasurementCOPS::setConversionFactor
void setConversionFactor(const std::vector< ALIstring > &wordlist) override
Definition: MeasurementCOPS.cc:110
MeasurementCOPS::theXlaserLine
ALIint theXlaserLine[4]
Definition: MeasurementCOPS.h:41
MeasurementCOPS::calculateSimulatedValue
void calculateSimulatedValue(ALIbool firstTime) override
Definition: MeasurementCOPS.cc:25
Measurement
Definition: Measurement.h:27
Measurement.h
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
ALIdouble
long double ALIdouble
Definition: CocoaGlobals.h:11
MeasurementCOPS::xlaserLine
int xlaserLine(unsigned int ii) override
Definition: MeasurementCOPS.h:35
heppy_batch.val
val
Definition: heppy_batch.py:351
Measurement::name
const ALIstring & name() const
Definition: Measurement.h:86
ALIint
int ALIint
Definition: CocoaGlobals.h:15
MeasurementCOPS::correctValueAndSigma
void correctValueAndSigma() override
Definition: MeasurementCOPS.cc:134
MeasurementCOPS::~MeasurementCOPS
~MeasurementCOPS() override
Definition: MeasurementCOPS.h:25
CocoaGlobals.h
MeasurementCOPS::MeasurementCOPS
MeasurementCOPS(const ALIint measdim, ALIstring &type, ALIstring &name)
Definition: MeasurementCOPS.h:20
cuy.ii
ii
Definition: cuy.py:590