- Timestamp:
- 06/14/08 17:21:48 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8957 r8958 105 105 - removed an old obsolete workaround (ProjectionX/Y) 106 106 107 * mimage/Makefile, mimage/I MageLinkDef.h:107 * mimage/Makefile, mimage/ImageLinkDef.h: 108 108 - removed MCameraSmooth 109 110 * mbase/MAGIC.h: 111 - added a new namespace UTF8 with double char characters 112 113 * mbase/BaseLinkDef.h: 114 - added the new namespace UTF8 115 116 * mimage/MNewImagePar.cc, mpointing/MPointing.cc, 117 datacenter/macros/fillstar.C: 118 - some characters replaced by the new UTF8 characters 109 119 110 120 -
trunk/MagicSoft/Mars/datacenter/macros/fillstar.C
r8940 r8958 265 265 cout << " Average Humidity [%] " << avghum << endl; 266 266 cout << " Average WindSpeed [km/h] " << avgwind << endl; 267 cout << " Average Temp [ °C] " << avgtemp << endl;267 cout << " Average Temp [" << UTF8::kDeg << "C] " << avgtemp << endl; 268 268 cout << " Average Sky Temp [K] " << avgsky << endl; 269 269 cout << " Cloundiness [%] " << avgclouds << " +/- " << rmsclouds << endl; -
trunk/MagicSoft/Mars/mbase/BaseLinkDef.h
r8892 r8958 26 26 #pragma link C++ namespace MARS; 27 27 #pragma link C++ namespace MMath; 28 //#pragma link C++ namespace UTF8; 28 #pragma link C++ namespace UTF8; 29 29 30 #pragma link C++ class MString+; 30 31 #pragma link C++ class MEnv+; -
trunk/MagicSoft/Mars/mbase/MAGIC.h
r8011 r8958 40 40 } 41 41 42 // Check for example: http://www.utf8-zeichentabelle.de 43 namespace UTF8 44 { 45 const char *const kCent = "\xc2\xa2"; 46 const char *const kPound = "\xc2\xa3"; 47 const char *const kYen = "\xc2\xa5"; 48 const char *const kParagraph = "\xc2\xa7"; 49 const char *const kCopyright = "\xc2\xa9"; 50 const char *const kRegistered = "\xc2\xae"; 51 const char *const kDeg = "\xc2\xb0"; 52 const char *const kPlusMinus = "\xc2\xb1"; 53 const char *const kSquare = "\xc2\xb2"; 54 const char *const kThird = "\xc2\xb3"; 55 const char *const kMu = "\xc2\xb5"; 56 const char *const kDot = "\xc2\xb7"; 57 const char *const kQuarter = "\xc2\xbc"; 58 const char *const kHalf = "\xc2\xbd"; 59 const char *const kSmaller = "\xc2\xab"; 60 const char *const kLarger = "\xc2\xbb"; 61 const char *const kThreeFourth = "\xc2\xbe"; 62 const char *const kTimes = "\xc3\x97"; 63 const char *const kCapGamma = "\xce\x93"; 64 const char *const kCapDelta = "\xce\x94"; 65 const char *const kCapSigma = "\xce\xa3"; 66 const char *const kCapTheta = "\xce\x98"; 67 const char *const kCapLambda = "\xce\x9b"; 68 const char *const kCapXi = "\xce\x9e"; 69 const char *const kCapPi = "\xce\xa0"; 70 const char *const kCapPhi = "\xce\xa6"; 71 const char *const kCapPsi = "\xce\xa8"; 72 const char *const kCapOmega = "\xce\xa9"; 73 const char *const kAlpha = "\xce\xb1"; 74 const char *const kBata = "\xce\xb2"; 75 const char *const kGamma = "\xce\xb3"; 76 const char *const kDelta = "\xce\xb4"; 77 const char *const kEpsilon = "\xce\xb5"; 78 const char *const kZeta = "\xce\xb6"; 79 const char *const kEta = "\xce\xb7"; 80 const char *const kTheta = "\xce\xb8"; 81 const char *const kIota = "\xce\xb9"; 82 const char *const kKappa = "\xce\xba"; 83 const char *const kLambda = "\xce\xbb"; 84 const char *const kNu = "\xce\xbd"; 85 const char *const kXi = "\xce\xbe"; 86 const char *const kOmicron = "\xce\xbf"; 87 const char *const kPi = "\xce\xc0"; 88 const char *const kRho = "\xce\xc1"; 89 const char *const kSigma = "\xce\xc3"; 90 const char *const kTau = "\xce\xc4"; 91 const char *const kPhi = "\xce\xc6"; 92 const char *const kChi = "\xce\xc7"; 93 const char *const kPsi = "\xce\xc8"; 94 const char *const kOmega = "\xce\xc9"; 95 const char *const kEuro = "\xe2\x82\xac"; 96 } 97 42 98 #endif -
trunk/MagicSoft/Mars/mimage/MNewImagePar.cc
r8695 r8958 295 295 *fLog << " - Num Used Pixels [#] = " << fNumUsedPixels << endl; 296 296 *fLog << " - Num Core Pixels [#] = " << fNumCorePixels << endl; 297 *fLog << " - Used Area [mm^2] = " << fUsedArea << endl;298 *fLog << " - Core Area [mm^2] = " << fCoreArea << endl;297 *fLog << " - Used Area [mm" << UTF8::kSquare << "] = " << fUsedArea << endl; 298 *fLog << " - Core Area [mm" << UTF8::kSquare << "] = " << fCoreArea << endl; 299 299 } 300 300 … … 316 316 *fLog << " - Num Used Pixels [#] = " << fNumUsedPixels << endl; 317 317 *fLog << " - Num Core Pixels [#] = " << fNumCorePixels << endl; 318 *fLog << " - Used Area [deg^2] = " << fUsedArea*geom.GetConvMm2Deg()*geom.GetConvMm2Deg() << endl;319 *fLog << " - Core Area [deg^2] = " << fCoreArea*geom.GetConvMm2Deg()*geom.GetConvMm2Deg() << endl;320 } 318 *fLog << " - Used Area [deg" << UTF8::kSquare << "] = " << fUsedArea*geom.GetConvMm2Deg()*geom.GetConvMm2Deg() << endl; 319 *fLog << " - Core Area [deg" << UTF8::kSquare << "] = " << fCoreArea*geom.GetConvMm2Deg()*geom.GetConvMm2Deg() << endl; 320 } -
trunk/MagicSoft/Mars/mpointing/MPointing.cc
r8915 r8958 282 282 283 283 fin >> val; 284 sout += Form("%9f °", val);284 sout += Form("%9f%s", val, UTF8::kDeg); 285 285 286 286 if (*fCoeff[n]!=0 || val>0) … … 829 829 cout << setprecision(3); 830 830 831 Double_t par, er r;831 Double_t par, er; 832 832 833 833 while (n--) 834 834 { 835 m.GetParameter(n, par, er r);835 m.GetParameter(n, par, er); 836 836 cout << Form(" %2d %6s: ", n, (const char*)fNames[n]); 837 cout << setw(8) << par << " \xb1 " << setw(6) << er r<< endl;838 } 839 } 837 cout << setw(8) << par << " \xb1 " << setw(6) << er << endl; 838 } 839 } -
trunk/MagicSoft/Mars/mtools/MCalendar.cc
r8750 r8958 916 916 } 917 917 918 void MCalendar::Paint(Option_t *o )918 void MCalendar::Paint(Option_t *opt) 919 919 { 920 920 /* … … 1267 1267 void MCalendar::Remove(Int_t align) 1268 1268 { 1269 const TString cont = fEnv->GetValue("Contents", ""); 1270 TObjArray *arr = cont.Tokenize(" "); 1269 TObjArray *arr = TString(fEnv->GetValue("Contents", "")).Tokenize(" "); 1271 1270 1272 1271 TIter Next(arr);
Note:
See TracChangeset
for help on using the changeset viewer.