* add all the pseudoAxes to bouml.
[hkl.git] / src / mode_twoC.cpp
blob19718ae08afab3fb914c8a306cb999b33b2b06da
1 #include "mode_twoC.h"
2 #include "convenience.h"
4 namespace hkl
6 namespace mode
8 namespace twoC
10 namespace vertical
13 /*****************/
14 /* SYMETRIC MODE */
15 /*****************/
16 Symetric::Symetric(MyString const & name, MyString const & description,
17 geometry::twoC::Vertical & geometry) :
18 ModeTemp<geometry::twoC::Vertical>(name, description , geometry)
21 Symetric::~Symetric(void)
24 void
25 Symetric::computeAngles(Value const & h, Value const & k, Value const & l,
26 smatrix const & UB) const throw (HKLException)
28 if (_parametersAreOk(h, k, l, UB))
30 double theta;
31 svector hphi;
32 _computeThetaAndHphi(h, k, l, UB, theta, hphi);
34 _geometry.omega()->set_current(theta);
35 _geometry.tth()->set_current(2.*theta);
39 /*****************/
40 /* FIX INCIDENCE */
41 /*****************/
43 Fix_Incidence::Fix_Incidence(MyString const & name, MyString const & description,
44 geometry::twoC::Vertical & geometry) :
45 ModeTemp<geometry::twoC::Vertical>(name, description, geometry)
48 Fix_Incidence::~Fix_Incidence(void)
51 void
52 Fix_Incidence::computeAngles(Value const & h, Value const & k, Value const & l,
53 smatrix const & UB) const throw (HKLException)
55 if (_parametersAreOk(h, k, l, UB))
57 double theta;
58 svector hphi;
59 _computeThetaAndHphi(h, k, l, UB, theta, hphi);
61 _geometry.tth()->set_current(2.*theta);
65 } // namespace vertical
66 } // namespace twoC
67 } // namespace mode
68 } // namespace hkl