2 #include "convenience.h"
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)
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
))
32 _computeThetaAndHphi(h
, k
, l
, UB
, theta
, hphi
);
34 _geometry
.omega()->set_current(theta
);
35 _geometry
.tth()->set_current(2.*theta
);
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)
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
))
59 _computeThetaAndHphi(h
, k
, l
, UB
, theta
, hphi
);
61 _geometry
.tth()->set_current(2.*theta
);
65 } // namespace vertical