Changeset 4050 for trunk/MagicSoft/Mars/mtemp/mifae/library
- Timestamp:
- 05/11/04 19:32:07 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp/mifae/library
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/library/MSrcRotate.cc
r3984 r4050 180 180 // de-rotate the source position 181 181 const MAstroSky2Local Observation(eventTime, *fObservatory); 182 Double_t rotationAngle = Observation.RotationAngle(fRA,fDEC); 182 const MAstroSky2Local RefObservation(fRefMJD, *fObservatory); 183 Double_t rotationAngle = Observation.RotationAngle(fRA,fDEC)-RefObservation.RotationAngle(fRA,fDEC); 183 184 184 185 Float_t c = TMath::Cos(rotationAngle); -
trunk/MagicSoft/Mars/mtemp/mifae/library/MSrcRotate.h
r3973 r4050 27 27 TString fDCAName; 28 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 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 37 38 38 39 Int_t PreProcess(MParList *plist); … … 43 44 const char* name=NULL, const char* title=NULL); 44 45 45 void SetRAandDEC (Double_t ra, Double_t dec) {fRA=ra;fDEC=dec;};46 void SetRAandDECandRefMJD(Double_t ra, Double_t dec, Double_t ref) {fRA=ra;fDEC=dec;fRefMJD=ref;} 46 47 47 48 ClassDef(MSrcRotate, 0) // task to rotate the position of the source as a function of Azimuth and Zenith angles
Note:
See TracChangeset
for help on using the changeset viewer.