Changeset 7287 for trunk/MagicSoft/Mars/mpointing
- Timestamp:
- 08/16/05 15:38:01 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mpointing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc
r7220 r7287 168 168 if (!fSourcePos) 169 169 { 170 *fLog << warn;170 *fLog << inf; 171 171 *fLog << "MSourcePos [MPointPos] not found... The source position" << endl; 172 *fLog << "set in MSrcPosCam (camera center if not set explicitely)" << endl;173 *fLog << " will be left unchanged if not wobble mode Monte Carlo." << endl;172 *fLog << "set in MSrcPosCam will be set to (0/0) or in the case" << endl; 173 *fLog << "of Monte Carlo set to the appropriate wobble position." << endl; 174 174 return kTRUE; 175 175 } … … 278 278 v.Set(-120., 0.); 279 279 280 281 280 SetSrcPos(v); 282 281 … … 338 337 { 339 338 if (fRunType==MRawRunHeader::kRTMonteCarlo || !fSourcePos || !fTime || !fObservatory || fMode==kOffData) 340 return kTRUE; 339 { 340 // If this is MC data do not change source position 341 if (fRunType==MRawRunHeader::kRTMonteCarlo) 342 return kTRUE; 343 344 // For real data reset source position to 0/0 345 SetSrcPos(); 346 return kTRUE; 347 } 341 348 342 349 // Set Sky coordinates of source, taken from container "MSourcePos" -
trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.h
r7214 r7287 45 45 46 46 // MSrcPosCalc 47 void SetSrcPos(TVector2 v ) const;47 void SetSrcPos(TVector2 v=TVector2()) const; 48 48 TVector2 CalcXYinCamera(const MVector3 &pos0, const MVector3 &pos) const; 49 49 TString GetRaDec(const MPointingPos &pos) const;
Note:
See TracChangeset
for help on using the changeset viewer.