Ignore:
Timestamp:
05/05/04 15:59:50 (21 years ago)
Author:
rico
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mtemp/mifae/library
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/mifae/library/IFAELinkDef.h

    r3947 r3973  
    99#pragma link C++ class MPSFFitCalc+;
    1010#pragma link C++ class MSrcPosFromFile+;
     11#pragma link C++ class MSrcRotate+;
     12#pragma link C++ class MSrcTranslate+;
    1113
    1214#endif
  • trunk/MagicSoft/Mars/mtemp/mifae/library/MSrcRotate.cc

    r3947 r3973  
    4848#include "MDCA.h"
    4949
     50#include "MAstroSky2Local.h"
    5051#include "MObservatory.h"
    51 #include "MAstroSky2Local.h"
    52 #include "MAstro.h"
    5352
    5453#include "MLog.h"
     
    9493        return kFALSE;
    9594    }
    96   fIniSrcPos = *fSrcPos;
    9795
    9896  // look for/create MDCA
     
    181179 
    182180  // de-rotate the source position
    183   Double_t rotationAngle = fObservatory->RotationAngle(fRA,fDEC,eventTime);
     181  const MAstroSky2Local Observation(eventTime, *fObservatory);
     182  Double_t rotationAngle = Observation.RotationAngle(fRA,fDEC);
    184183 
    185184  Float_t c = TMath::Cos(rotationAngle);
    186185  Float_t s = TMath::Sin(rotationAngle);
    187186  // perform a rotation of -rotationAngle to move the source back to the "initial" position
    188   Float_t newX = c*fIniSrcPos.GetX()+s*fIniSrcPos.GetY();
    189   Float_t newY = -s*fIniSrcPos.GetX()+c*fIniSrcPos.GetY();
     187  Float_t newX = c*fSrcPos->GetX()+s*fSrcPos->GetY();
     188  Float_t newY = -s*fSrcPos->GetX()+c*fSrcPos->GetY();
    190189
    191190#ifdef DEBUG
  • trunk/MagicSoft/Mars/mtemp/mifae/library/MSrcRotate.h

    r3947 r3973  
    2727    TString     fDCAName;
    2828
    29     MSrcPosCam fIniSrcPos;  //  Copy of the initial source position
    3029    Double_t   fRA;         //  [rad] Right ascention
    3130    Double_t   fDEC;        //  [rad] Declination
  • trunk/MagicSoft/Mars/mtemp/mifae/library/Makefile

    r3965 r3973  
    4949        MPSFFit.cc \
    5050        MPSFFitCalc.cc \
    51         MSrcPosFromFile.cc
    52 #       MSrcRotate.cc
     51        MSrcPosFromFile.cc \
     52        MSrcRotate.cc \
     53        MSrcTranslate.cc
    5354
    5455
Note: See TracChangeset for help on using the changeset viewer.