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

Last change on this file since 4407 was 4117, checked in by rico, 20 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MARS_MSrcRotate
2#define MARS_MSrcRotate
3
4#ifndef MARS_MSrcPlace
5#include "MSrcPlace.h"
6#endif
7
8#include "MTime.h"
9
10class MObservatory;
11class MRawEvtHeader;
12class MRawRunHeader;
13
14class MSrcRotate : public MSrcPlace
15{
16 private:
17 MRawEvtHeader* fEvtHeader; // Pointer to the event header
18 MRawRunHeader* fRunHeader; // Pointer to the run header
19 MObservatory* fObservatory; // Pointer to the MObservatory
20
21 Double_t fRA; // [rad] Right ascenssion
22 Double_t fDEC; // [rad] Declination
23 Double_t fRefMJD; // [MJ date] reference time for rotation
24 UInt_t fNEvts; // Number of events in file
25 MTime fIniTime; // Run initial time
26 MTime fFinTime; // Run final time
27 Double_t fDeltaT; // DeltaT between two events
28 UInt_t fRunNumber; // Current run number
29
30 virtual Int_t PreProcess(MParList *plist);
31
32 public:
33 MSrcRotate(const char* srcIn="MSrcPosCam",const char* srcOut="MSrcPosCam",
34 const char* name=NULL, const char* title=NULL);
35
36 void SetRAandDECandRefMJD(Double_t ra, Double_t dec, Double_t ref=0) {fRA=ra;fDEC=dec;fRefMJD=ref;}
37 void SetRAandDEC(Double_t ra, Double_t dec){SetRAandDECandRefMJD(ra,dec);}
38 virtual Int_t ComputeNewSrcPosition();
39
40 ClassDef(MSrcRotate, 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.