Changeset 3973
- Timestamp:
- 05/05/04 15:59:50 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp/mifae
- Files:
-
- 8 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/Changelog
r3965 r3973 20 20 21 21 2004/05/03: Javier Rico 22 * library/MSrcTranslate.[h,cc] 23 - added 24 25 * library/Makefile, library/IFAELinkDef.h 26 - add MSrcTranslate 27 28 * library/MSrcRotate.[h.cc] 29 - adapted to changes in MObservatory and MAstro 30 31 * programs/falseSource.cc programs/falsesource.datacard 32 programs/srcPos.cc programs/srcpos.datacard 33 - added 34 35 * programs/Makefile 36 - add falseSource and srcPos 37 38 * macros/signal.C macros/signalPoint.C 39 - added 40 41 2004/05/03: Javier Rico 22 42 * makeHillas.cc 23 43 - put back Jobs for pedestal and calibration parts … … 29 49 * library,programs,macros,*: 30 50 - new directories added 31 - directory macros contains macros (.C C) and scripts (.sh)51 - directory macros contains macros (.C) and scripts (.sh) 32 52 - directory programs contains root compilables and associated 33 53 [input] files -
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 -
trunk/MagicSoft/Mars/mtemp/mifae/programs/Makefile
r3947 r3973 18 18 include ../../../Makefile.conf.general 19 19 20 PROGRAMS = makeHillas psffit 20 PROGRAMS = makeHillas psffit falseSource srcPos 21 21 SOLIB = ../../../libmars.so 22 22 -
trunk/MagicSoft/Mars/mtemp/mifae/programs/makehillas.datacard
r3965 r3973 1 1 2 2 // Maximun number of (data) events to be processed) 3 NEVENTS 1003 NEVENTS 9999999 4 4 5 5 // data file directory
Note:
See TracChangeset
for help on using the changeset viewer.