Line | |
---|
1 | #ifndef MARS_MSrcTranslate
|
---|
2 | #define MARS_MSrcTranslate
|
---|
3 |
|
---|
4 | #ifndef MARS_MTask
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #include <TArrayF.h>
|
---|
9 | #include "MTime.h"
|
---|
10 | #include "MSrcPosCam.h"
|
---|
11 |
|
---|
12 | class MDCA;
|
---|
13 | class MObservatory;
|
---|
14 | class MRawEvtHeader;
|
---|
15 | class MRawRunHeader;
|
---|
16 |
|
---|
17 | class MSrcTranslate : public MTask
|
---|
18 | {
|
---|
19 | private:
|
---|
20 | MSrcPosCam* fSrcPos; //! Pointer to the source position
|
---|
21 | MDCA* fDCA; //! Pointer to the MDCA object
|
---|
22 |
|
---|
23 | TString fSrcPosName;
|
---|
24 | TString fDCAName;
|
---|
25 |
|
---|
26 | Double_t fShiftX;
|
---|
27 | Double_t fShiftY;
|
---|
28 | Bool_t fTranslationIsRelative;
|
---|
29 |
|
---|
30 | Int_t PreProcess(MParList *plist);
|
---|
31 | Int_t Process();
|
---|
32 |
|
---|
33 | public:
|
---|
34 | MSrcTranslate(const char* src="MSrcPosCam", const char* dca="MDCA",
|
---|
35 | const char* name=NULL, const char* title=NULL);
|
---|
36 |
|
---|
37 | void SetTranslation(Double_t x=0.,Double_t y=0) {fShiftX=x,fShiftY=y;};
|
---|
38 | void SetRelativeTranslation(Bool_t inp=kTRUE) {fTranslationIsRelative=inp;};
|
---|
39 |
|
---|
40 | ClassDef(MSrcTranslate, 0) // task to rotate the position of the source as a function of Azimuth and Zenith angles
|
---|
41 | };
|
---|
42 |
|
---|
43 | #endif
|
---|
44 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.