Changeset 3973 for trunk/MagicSoft/Mars/mtemp/mifae/library
- Timestamp:
- 05/05/04 15:59:50 (21 years ago)
- 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 9 9 #pragma link C++ class MPSFFitCalc+; 10 10 #pragma link C++ class MSrcPosFromFile+; 11 #pragma link C++ class MSrcRotate+; 12 #pragma link C++ class MSrcTranslate+; 11 13 12 14 #endif -
trunk/MagicSoft/Mars/mtemp/mifae/library/MSrcRotate.cc
r3947 r3973 48 48 #include "MDCA.h" 49 49 50 #include "MAstroSky2Local.h" 50 51 #include "MObservatory.h" 51 #include "MAstroSky2Local.h"52 #include "MAstro.h"53 52 54 53 #include "MLog.h" … … 94 93 return kFALSE; 95 94 } 96 fIniSrcPos = *fSrcPos;97 95 98 96 // look for/create MDCA … … 181 179 182 180 // 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); 184 183 185 184 Float_t c = TMath::Cos(rotationAngle); 186 185 Float_t s = TMath::Sin(rotationAngle); 187 186 // perform a rotation of -rotationAngle to move the source back to the "initial" position 188 Float_t newX = c*f IniSrcPos.GetX()+s*fIniSrcPos.GetY();189 Float_t newY = -s*f IniSrcPos.GetX()+c*fIniSrcPos.GetY();187 Float_t newX = c*fSrcPos->GetX()+s*fSrcPos->GetY(); 188 Float_t newY = -s*fSrcPos->GetX()+c*fSrcPos->GetY(); 190 189 191 190 #ifdef DEBUG -
trunk/MagicSoft/Mars/mtemp/mifae/library/MSrcRotate.h
r3947 r3973 27 27 TString fDCAName; 28 28 29 MSrcPosCam fIniSrcPos; // Copy of the initial source position30 29 Double_t fRA; // [rad] Right ascention 31 30 Double_t fDEC; // [rad] Declination -
trunk/MagicSoft/Mars/mtemp/mifae/library/Makefile
r3965 r3973 49 49 MPSFFit.cc \ 50 50 MPSFFitCalc.cc \ 51 MSrcPosFromFile.cc 52 # MSrcRotate.cc 51 MSrcPosFromFile.cc \ 52 MSrcRotate.cc \ 53 MSrcTranslate.cc 53 54 54 55
Note:
See TracChangeset
for help on using the changeset viewer.