Changeset 7220 for trunk/MagicSoft
- Timestamp:
- 07/25/05 18:44:24 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7218 r7220 42 42 * mpointing/MPointingPos.[h,cc]: 43 43 - added option to calculate Rotation angle using MPointingDev 44 45 * ganymed_onoff.rc, ganymed_wobble.rc: 46 - added example for MPointingDevCalc 47 48 * mjobs/MDataSet.cc: 49 - fixed an endless loop when a sequence is added twice 50 51 * mjobs/MSequence.cc: 52 - fixed an endless loop when a run is added twice 53 54 * mjobs/MJPedestal.cc: 55 - CheckEnv doesn't return kERROR, test for kFALSE instead 56 57 * mpointing/MPointingDev.h: 58 - added fDevX 59 - added fDevY 60 61 * mpointing/MPointingDevCalc.cc: 62 - call SetDevXY instead of the starguider calibration in zd/az 63 64 * mpointing/MSrcPosCalc.cc: 65 - added the DevXY to the source position if fDeviation!=NULL 44 66 45 67 -
trunk/MagicSoft/Mars/NEWS
r7216 r7220 155 155 when calculating the source position. This is especially important 156 156 for wobble data at high zenith angles and culmination data. 157 158 - ganymed: If available the starguider data is taken into account as 159 good as it is possible without a starguider calibration. To switch 160 it off add 161 MPointingDevCalc.MaxAbsDev: -1 162 to your ganymed.rc 157 163 158 164 - sponde: the zenith angle distribution is now weighted instead of -
trunk/MagicSoft/Mars/ganymed_onoff.rc
r7204 r7220 39 39 BinningDist.Raw: 25 0 2 40 40 BinningMaxDist.Raw: 25 0 2 41 42 # ------------------------------------------------------------------------- 43 # Using the starguider for pointing correction. 44 # To switch it off use "MPointingDevCalc.MaxAbsDev: -1" 45 # ------------------------------------------------------------------------- 46 #MPointingDevCalc.MaxAbsDev: 15 47 #MPointingDevCalc.NumMinStars: 8 48 #MPointingDevCalc.NsbLevel: 3.0 49 #MPointingDevCalc.NsbMin: 30 50 #MPointingDevCalc.NsbMax: 60 51 #MPointingDevCalc.MaxAbsDev: 15 41 52 42 53 # ------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/ganymed_wobble.rc
r7216 r7220 39 39 BinningDist.Raw: 25 0 2 40 40 BinningMaxDist.Raw: 25 0 2 41 42 # ------------------------------------------------------------------------- 43 # Using the starguider for pointing correction. 44 # To switch it off use "MPointingDevCalc.MaxAbsDev: -1" 45 # ------------------------------------------------------------------------- 46 #MPointingDevCalc.MaxAbsDev: 15 47 #MPointingDevCalc.NumMinStars: 8 48 #MPointingDevCalc.NsbLevel: 3.0 49 #MPointingDevCalc.NsbMin: 30 50 #MPointingDevCalc.NsbMax: 60 51 #MPointingDevCalc.MaxAbsDev: 15 41 52 42 53 # ------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mjobs/MDataSet.cc
r7179 r7220 122 122 123 123 if (i<n) 124 *fLog << warn << "WARNING - Sequence #" << seq << " alraedy in list... skipped." << endl; 125 else 124 126 { 125 *fLog << warn << "WARNING - Sequence #" << seq << " alraedy in list... skipped." << endl; 126 continue; 127 // set new entry 128 data.Set(n+1); 129 data[n] = seq; 127 130 } 128 129 // set new entry130 data.Set(n+1);131 data[n] = seq;132 131 133 132 // remove entry from string -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r7189 r7220 800 800 801 801 // check the resource file for it 802 if ( CheckEnv(tenv)==kERROR)802 if (!CheckEnv(tenv)) 803 803 return kFALSE; 804 804 … … 1105 1105 1106 1106 // The requested setup might have been overwritten 1107 if ( CheckEnv(*fExtractor)==kERROR)1107 if (!CheckEnv(*fExtractor)) 1108 1108 return kFALSE; 1109 1109 -
trunk/MagicSoft/Mars/mjobs/MSequence.cc
r7179 r7220 178 178 179 179 if (i<n) 180 *fLog << warn << "WARNING - Run #" << run << " alraedy in list... skipped." << endl; 181 else 180 182 { 181 *fLog << warn << "WARNING - Run #" << run << " alraedy in list... skipped." << endl; 182 continue; 183 // set new entry 184 data.Set(n+1); 185 data[n] = run; 183 186 } 184 185 // set new entry186 data.Set(n+1);187 data[n] = run;188 187 189 188 runs.Remove(0, runs.First(num)+num.Length()); -
trunk/MagicSoft/Mars/mpointing/MPointingDev.h
r7203 r7220 4 4 #ifndef MARS_MParContainer 5 5 #include "MParContainer.h" 6 #endif 7 #ifndef ROOT_TVector2 8 #include <TVector2.h> 6 9 #endif 7 10 … … 11 14 Double_t fDevZd; // [deg] Pointing offset zenith distance as calculated from starguider data 12 15 Double_t fDevAz; // [deg] Pointing offset azimuth as calculated from starguider dat 16 17 Double_t fDevX; // [mm] 18 Double_t fDevY; // [mm] 13 19 14 20 public: … … 20 26 21 27 void SetDevZdAz(Double_t devzd, Double_t devaz) { fDevZd=devzd; fDevAz=devaz; } 28 void SetDevXY(Double_t dx, Double_t dy) { fDevX=dx; fDevY=dy; } 22 29 23 30 Double_t GetDevZd() const { return fDevZd; } 24 31 Double_t GetDevAz() const { return fDevAz; } 32 33 Double_t GetDevX() const { return fDevX; } 34 Double_t GetDevY() const { return fDevY; } 35 36 TVector2 GetDevXY() const { return TVector2(fDevX, fDevY); } 25 37 26 38 Double_t GetDevZdRad() const { return fDevZd*TMath::DegToRad(); } -
trunk/MagicSoft/Mars/mpointing/MPointingDevCalc.cc
r7214 r7220 176 176 } 177 177 178 // Calculate absolute deviation 179 const Double_t dev = MAstro::GetDevAbs(fReport->GetNominalZd(), devzd, devaz); 180 181 // Sanity check... larger deviation are strange and ignored 182 if (dev*60>fMaxAbsDev) 183 { 184 fSkip[4]++; 185 return kTRUE; 186 } 187 188 fDeviation->SetDevZdAz(devzd, devaz); 189 178 190 // Linear starguider calibration taken from April/May data 179 191 // For calibration add MDriveReport::GetErrorZd/Az ! 180 devzd -= 2.686/60; // 1arcmin ~ 5mm 181 devaz -= 2.840/60; 182 183 // Calculate absolute deviation 184 const Double_t dev = MAstro::GetDevAbs(fReport->GetNominalZd(), devzd, devaz); 185 186 // Sanity check... larger deviation are strange and ignored 187 if (dev*60>fMaxAbsDev) 188 { 189 fSkip[4]++; 190 return kTRUE; 191 } 192 193 fDeviation->SetDevZdAz(devzd, devaz); 192 fDeviation->SetDevXY(-7.0, 16); 193 //devzd -= 2.686/60; // 1arcmin ~ 5mm 194 //devaz -= 2.840/60; 195 194 196 fSkip[0]++; 195 197 -
trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc
r7216 r7220 371 371 if (fDeviation) 372 372 { 373 vx = CalcXYinCamera(pos0, pos)*fGeom->GetCameraDist()*1000;373 //vx = CalcXYinCamera(pos0, pos)*fGeom->GetCameraDist()*1000; 374 374 pos0.SetZdAz(pos0.Theta()-fDeviation->GetDevZdRad(), 375 375 pos0.Phi() -fDeviation->GetDevAzRad()); … … 378 378 // Calculate source position in camera, and convert to mm: 379 379 TVector2 v = CalcXYinCamera(pos0, pos)*fGeom->GetCameraDist()*1000; 380 381 if (fDeviation) 382 v -= fDeviation->GetDevXY(); 383 380 384 SetSrcPos(v); 381 385
Note:
See TracChangeset
for help on using the changeset viewer.