source: trunk/MagicSoft/Mars/mtemp/mifae/library/MSrcTranslate.h@ 4050

Last change on this file since 4050 was 3973, checked in by rico, 21 years ago
*** empty log message ***
File size: 1.0 KB
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
12class MDCA;
13class MObservatory;
14class MRawEvtHeader;
15class MRawRunHeader;
16
17class MSrcTranslate : public MTask
18{
19private:
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
33public:
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.