Changeset 4050
- Timestamp:
- 05/11/04 19:32:07 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp/mifae
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/Changelog
r4048 r4050 18 18 19 19 -*-*- END OF LINE -*-*- 20 2004/05/11: Javier Rico 21 * programs/optimizeCuts.cc, programs/optimizecuts.datacard 22 - added 20 23 21 2004/05/11: Ester Aliu 24 * programs/Makefile 25 - include optimizeCuts 26 27 * programs/srcPos.cc, programs/srcpos.datacard 28 - add reference rotation angle 29 30 31 2004/05/11: Ester Aliu 22 32 * macros/signal.cc 23 33 - change some things … … 27 37 - add <stdlib.h> library 28 38 29 2004/05/11: Ester Aliu39 2004/05/11: Ester Aliu 30 40 * programs/makeHillas.cc, programs/makehillas.datacard 31 41 - add island calculations 32 42 33 2004/05/11: Javier Rico43 2004/05/11: Javier Rico 34 44 * programs/makeHillas.cc 35 45 - prevent it from bombing because of the mjobs -
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 -
trunk/MagicSoft/Mars/mtemp/mifae/programs/Makefile
r4036 r4050 18 18 include ../../../Makefile.conf.general 19 19 20 PROGRAMS = makeHillas psffit falseSource srcPos 20 PROGRAMS = makeHillas psffit falseSource srcPos optimizeCuts 21 21 SOLIB = $(MARSSYS)/libmars.so 22 22 -
trunk/MagicSoft/Mars/mtemp/mifae/programs/makehillas.datacard
r4044 r4050 1 1 2 2 // Maximun number of (data) events to be processed) 3 NEVENTS 99999993 NEVENTS 10 4 4 5 5 // data file directory -
trunk/MagicSoft/Mars/mtemp/mifae/programs/srcPos.cc
r3973 r4050 44 44 Float_t xsrcpos=0.; 45 45 Float_t ysrcpos=0.; 46 Float_t mjdpos=53050; 46 47 Bool_t kRotate=1; 47 48 Bool_t kSrcPolicy=kTRUE; … … 116 117 117 118 MSrcRotate srcrotate; 118 srcrotate.SetRAandDEC (fRA,fDEC);119 srcrotate.SetRAandDECandRefMJD(fRA,fDEC,mjdpos); 119 120 120 121 MHillasSrcCalc csrc1; … … 194 195 ifun >> xsrcpos; 195 196 ifun >> ysrcpos; 197 ifun >> mjdpos; 196 198 } 197 199 -
trunk/MagicSoft/Mars/mtemp/mifae/programs/srcpos.datacard
r3973 r4050 4 4 5 5 // Input file name pattern 6 INPUTFILES ./srposPrueba.root6 INPUTFILES /mnt/users/jrico/magic/mars/Mars_Standard02/mtemp/mifae/hillas/mrk20040215OnB.root 7 7 8 8 // output file name 9 OUTFILE ./sr posPrueba2.root9 OUTFILE ./srcPosPrueba.root 10 10 11 // X and Y position of the source in degrees 12 SRCPOS 0.2 -0.111 // X and Y position of the source in degrees for a MJ date (days) -important only in case of rotation 12 SRCPOS 0.21 0.176 53050.0773 13 13 14 // Flag to determine whet er source position is absolute (0) or relative to previous position (1)15 SRCABS 114 // Flag to determine whether source position is absolute (0) or relative to previous position (1) 15 SRCABS 0 16 16 17 17 // rotation flag: … … 21 21 22 22 // source coordinates (RA DEC in rads) 23 SRCCOORDS 1.46 0.384 23 // SRCCOORDS 1.46 0.384 // (Crab) 24 SRCCOORDS 2.899 0.667 // (Mrk 421) 24 25
Note:
See TracChangeset
for help on using the changeset viewer.