| Line | |
|---|
| 1 | #ifndef COSY_MPointing
|
|---|
| 2 | #define COSY_MPointing
|
|---|
| 3 |
|
|---|
| 4 | #include "coord.h"
|
|---|
| 5 | #include "log.h"
|
|---|
| 6 |
|
|---|
| 7 | #ifndef ROOT_TObject
|
|---|
| 8 | #include <TObject.h>
|
|---|
| 9 | #endif
|
|---|
| 10 |
|
|---|
| 11 | class Macs;
|
|---|
| 12 | class MCosy;
|
|---|
| 13 |
|
|---|
| 14 | class MPointing : public Log, public TObject
|
|---|
| 15 | {
|
|---|
| 16 | protected:
|
|---|
| 17 | MCosy *fCosy;
|
|---|
| 18 |
|
|---|
| 19 | bool SetAccDec(Macs *mac, Float_t acc, Float_t dec);
|
|---|
| 20 | bool Break();
|
|---|
| 21 |
|
|---|
| 22 | private:
|
|---|
| 23 | Float_t fVel;
|
|---|
| 24 | Float_t fAcc;
|
|---|
| 25 | Float_t fDec;
|
|---|
| 26 |
|
|---|
| 27 | void DoRelPos(const ZdAz &rd, const Bool_t axe1, const Bool_t axe2);
|
|---|
| 28 | void SetPosVelocity(const Float_t ratio, Float_t vel);
|
|---|
| 29 |
|
|---|
| 30 | public:
|
|---|
| 31 | MPointing(MCosy *cosy, const Log &log) : Log(log), fCosy(cosy), fVel(0.1), fAcc(0.2), fDec(0.1) { }
|
|---|
| 32 |
|
|---|
| 33 | void SetPointAccDec(Float_t acc, Float_t dec) { fAcc = acc; fDec = dec; }
|
|---|
| 34 | void SetPointVelocity(Float_t vel) { fVel = vel; }
|
|---|
| 35 | int SetPosition(const ZdAz &dst, Bool_t track=kFALSE);
|
|---|
| 36 |
|
|---|
| 37 | ClassDef(MPointing, 0)
|
|---|
| 38 | };
|
|---|
| 39 |
|
|---|
| 40 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.