Changeset 7550 for trunk/MagicSoft/Mars/mpointing
- Timestamp:
- 03/01/06 10:05:14 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mpointing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpointing/MPointingPos.cc
r7517 r7550 46 46 #include "MTime.h" 47 47 #include "MAstro.h" 48 #include "MString.h" 48 49 #include "MObservatory.h" 49 50 #include "MPointingDev.h" … … 85 86 } 86 87 87 void MPointingPos::Print(Option_t *o) const88 TString MPointingPos::GetString(Option_t *o) const 88 89 { 89 90 TString opt(o); … … 92 93 opt = "radeczdaz"; 93 94 94 *fLog << GetDescriptor() << ":";95 TString rc; 95 96 96 97 if (opt.Contains("ra", TString::kIgnoreCase)) 97 *fLog << " Ra=" << MAstro::GetStringHor(fRa); 98 rc += MString::Form(" Ra=%s", MAstro::GetStringHor(fRa).Data()); 99 98 100 if (opt.Contains("ha", TString::kIgnoreCase)) 99 *fLog << " Ha=" << MAstro::GetStringHor(fHa); 101 rc += MString::Form(" Ha=%s", MAstro::GetStringHor(fHa).Data()); 102 100 103 if (opt.Contains("dec", TString::kIgnoreCase)) 101 *fLog << " Dec=" << MAstro::GetStringDeg(fDec); 104 rc += MString::Form(" Dec=%s", MAstro::GetStringDeg(fDec).Data()); 105 102 106 if (opt.Contains("zd", TString::kIgnoreCase)) 103 *fLog << " Zd=" << MAstro::GetStringDeg(fZd); 107 rc += MString::Form(" Zd=%s", MAstro::GetStringDeg(fZd).Data()); 108 104 109 if (opt.Contains("az", TString::kIgnoreCase)) 105 *fLog << " Az=" << MAstro::GetStringDeg(fAz);110 rc += MString::Form(" Az=%s", MAstro::GetStringDeg(fAz).Data()); 106 111 107 112 if (fTitle!=gsDefTitle) 108 *fLog << " <" << fTitle << ">";113 rc += MString::Form(" <%s>", fTitle.Data()); 109 114 110 *fLog << endl;115 return rc.Strip(TString::kBoth); 111 116 } 117 118 void MPointingPos::Print(Option_t *o) const 119 { 120 *fLog << GetDescriptor() << ": " << GetString(o) << endl; 121 } -
trunk/MagicSoft/Mars/mpointing/MPointingPos.h
r7517 r7550 39 39 } 40 40 41 Bool_t IsInitialized() const { return !(fZd==0 && fAz==0 && fRa==0 && fHa==0 && fDec==0); } 42 41 43 void Print(Option_t *o="") const; 44 45 TString GetString(Option_t *o="") const; 42 46 43 47 void SetLocalPosition(Double_t zd, Double_t az) { fZd=zd; fAz=az; }
Note:
See TracChangeset
for help on using the changeset viewer.