Ignore:
Timestamp:
05/11/04 19:32:07 (21 years ago)
Author:
rico
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mtemp/mifae/library
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/mifae/library/MSrcRotate.cc

    r3984 r4050  
    180180  // de-rotate the source position
    181181  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);
    183184 
    184185  Float_t c = TMath::Cos(rotationAngle);
  • trunk/MagicSoft/Mars/mtemp/mifae/library/MSrcRotate.h

    r3973 r4050  
    2727    TString     fDCAName;
    2828
    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
    3738
    3839    Int_t PreProcess(MParList *plist);
     
    4344               const char* name=NULL, const char* title=NULL);
    4445
    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;}
    4647
    4748    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.