Changeset 5921 for trunk/MagicSoft/Mars
- Timestamp:
- 01/21/05 10:54:30 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5917 r5921 21 21 -*-*- END OF LINE -*-*- 22 22 23 2005/01/20 Thomas Bretz 24 25 * mpointing/MSrcPosFromModel.cc: 26 - fixed crash in Process if no pointing model available 27 28 29 23 30 2005/01/20 Markus Gaug 24 31 25 32 * mcalib/MCalibrationIntensityChargeCam.[h,cc] 26 - added function to display flu yctuations of a variable33 - added function to display fluctuations of a variable 27 34 28 35 * mcalib/MCalibrationPix.cc … … 31 38 * msignal/MExtractTimeAndCharge.[h,cc] 32 39 - introduced high-gain maximum limit before extracting the low-gain 40 41 33 42 34 43 2005/01/20 Thomas Bretz -
trunk/MagicSoft/Mars/mpointing/MSrcPosFromModel.cc
r4966 r5921 130 130 conv = fPoint0405; 131 131 132 MVector3 sky; 133 sky.SetRaDec(fPointPos->GetRaRad(), fPointPos->GetDecRad()); 132 TVector2 d; 134 133 135 // Get current star position (off center)136 MVector3 vl2 = MAstroSky2Local(*fTime, *fObservatory)*sky;137 // Get corrected position camera center)138 TVector3 vl1 = conv->Correct(vl2);134 if (conv) 135 { 136 MVector3 sky; 137 sky.SetRaDec(fPointPos->GetRaRad(), fPointPos->GetDecRad()); 139 138 140 // Calculate x,y of za2 141 TVector2 d = MAstro::GetDistOnPlain(vl1, vl2, fGeom->GetCameraDist()*1000); 139 // Get current star position (off center) 140 MVector3 vl2 = MAstroSky2Local(*fTime, *fObservatory)*sky; 141 // Get corrected position camera center) 142 TVector3 vl1 = conv->Correct(vl2); 143 144 // Calculate x,y of za2 145 d = MAstro::GetDistOnPlain(vl1, vl2, fGeom->GetCameraDist()*1000); 146 } 142 147 143 148 // Set Source position
Note:
See TracChangeset
for help on using the changeset viewer.