Changeset 8958 for trunk


Ignore:
Timestamp:
06/14/08 17:21:48 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8957 r8958  
    105105     - removed an old obsolete workaround (ProjectionX/Y)
    106106
    107    * mimage/Makefile, mimage/IMageLinkDef.h:
     107   * mimage/Makefile, mimage/ImageLinkDef.h:
    108108     - 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
    109119
    110120
  • trunk/MagicSoft/Mars/datacenter/macros/fillstar.C

    r8940 r8958  
    265265    cout << "  Average Humidity [%]     " << avghum    << endl;
    266266    cout << "  Average WindSpeed [km/h] " << avgwind   << endl;
    267     cout << "  Average Temp [°C]        " << avgtemp   << endl;
     267    cout << "  Average Temp [" << UTF8::kDeg << "C]        " << avgtemp   << endl;
    268268    cout << "  Average Sky Temp [K]     " << avgsky    << endl;
    269269    cout << "  Cloundiness [%]          " << avgclouds        << " +/- " << rmsclouds        << endl;
  • trunk/MagicSoft/Mars/mbase/BaseLinkDef.h

    r8892 r8958  
    2626#pragma link C++ namespace MARS;
    2727#pragma link C++ namespace MMath;
    28 //#pragma link C++ namespace UTF8;
     28#pragma link C++ namespace UTF8;
     29
    2930#pragma link C++ class MString+;
    3031#pragma link C++ class MEnv+;
  • trunk/MagicSoft/Mars/mbase/MAGIC.h

    r8011 r8958  
    4040}
    4141
     42// Check for example: http://www.utf8-zeichentabelle.de
     43namespace 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
    4298#endif
  • trunk/MagicSoft/Mars/mimage/MNewImagePar.cc

    r8695 r8958  
    295295    *fLog << " - Num Used Pixels  [#] = " << fNumUsedPixels << endl;
    296296    *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;
    299299}
    300300
     
    316316    *fLog << " - Num Used Pixels  [#] = " << fNumUsedPixels << endl;
    317317    *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  
    282282
    283283        fin >> val;
    284         sout += Form("%9f°", val);
     284        sout += Form("%9f%s", val, UTF8::kDeg);
    285285
    286286        if (*fCoeff[n]!=0 || val>0)
     
    829829    cout << setprecision(3);
    830830
    831     Double_t par, err;
     831    Double_t par, er;
    832832
    833833    while (n--)
    834834    {
    835         m.GetParameter(n, par, err);
     835        m.GetParameter(n, par, er);
    836836        cout << Form(" %2d %6s: ", n, (const char*)fNames[n]);
    837         cout << setw(8) << par << " \xb1 " << setw(6) <<  err << endl;
    838     }
    839 }
     837        cout << setw(8) << par << " \xb1 " << setw(6) <<  er << endl;
     838    }
     839}
  • trunk/MagicSoft/Mars/mtools/MCalendar.cc

    r8750 r8958  
    916916}
    917917
    918 void MCalendar::Paint(Option_t *o)
     918void MCalendar::Paint(Option_t *opt)
    919919{
    920920    /*
     
    12671267void MCalendar::Remove(Int_t align)
    12681268{
    1269     const TString cont = fEnv->GetValue("Contents", "");
    1270     TObjArray *arr = cont.Tokenize(" ");
     1269    TObjArray *arr = TString(fEnv->GetValue("Contents", "")).Tokenize(" ");
    12711270
    12721271    TIter Next(arr);
Note: See TracChangeset for help on using the changeset viewer.