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

Last change on this file since 4050 was 4050, checked in by rico, 21 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MARS_MSrcRotate
2#define MARS_MSrcRotate
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 MSrcRotate : public MTask
18{
19private:
20 MSrcPosCam* fSrcPos; //! Pointer to the source position
21 MDCA* fDCA; //! Pointer to the MDCA object
22 MRawEvtHeader* fEvtHeader; //! Pointer to the event header
23 MRawRunHeader* fRunHeader; //! Pointer to the run header
24 MObservatory* fObservatory; //! Pointer to the MObservatory
25
26 TString fSrcPosName;
27 TString fDCAName;
28
29 Double_t fRA; // [rad] Right ascention
30 Double_t fDEC; // [rad] Declination
31 Double_t fRefMJD; // [MJ date] reference time for rotation
32 UInt_t fNEvts; // Number of events in file
33 UInt_t fFirstEvt; // Event index for first event in file
34 MTime fIniTime; // Run initial time
35 MTime fFinTime; // Run final time
36 Double_t fDeltaT; // DeltaT between two events
37 UInt_t fRunNumber; // Current run number
38
39 Int_t PreProcess(MParList *plist);
40 Int_t Process();
41
42public:
43 MSrcRotate(const char* src="MSrcPosCam", const char* dca="MDCA",
44 const char* name=NULL, const char* title=NULL);
45
46 void SetRAandDECandRefMJD(Double_t ra, Double_t dec, Double_t ref) {fRA=ra;fDEC=dec;fRefMJD=ref;}
47
48 ClassDef(MSrcRotate, 0) // task to rotate the position of the source as a function of Azimuth and Zenith angles
49};
50
51#endif
52
Note: See TracBrowser for help on using the repository browser.