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

Last change on this file since 3986 was 3973, checked in by rico, 21 years ago
*** empty log message ***
File size: 1.5 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 UInt_t fNEvts; // Number of events in file
32 UInt_t fFirstEvt; // Event index for first event in file
33 MTime fIniTime; // Run initial time
34 MTime fFinTime; // Run final time
35 Double_t fDeltaT; // DeltaT between two events
36 UInt_t fRunNumber; // Current run number
37
38 Int_t PreProcess(MParList *plist);
39 Int_t Process();
40
41public:
42 MSrcRotate(const char* src="MSrcPosCam", const char* dca="MDCA",
43 const char* name=NULL, const char* title=NULL);
44
45 void SetRAandDEC(Double_t ra, Double_t dec) {fRA=ra;fDEC=dec;};
46
47 ClassDef(MSrcRotate, 0) // task to rotate the position of the source as a function of Azimuth and Zenith angles
48};
49
50#endif
51
Note: See TracBrowser for help on using the repository browser.