Changeset 9414 for trunk/MagicSoft


Ignore:
Timestamp:
03/30/09 09:07:40 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r9413 r9414  
    3030     - added an additional sanity check
    3131
     32   * mhbase/MH.cc:
     33     - added "temp" to palette
    3234
    3335
  • trunk/MagicSoft/Mars/NEWS

    r9413 r9414  
    22
    33== <cvs> ==
     4
     5 ;general:
     6
     7   * Added a new palette "temp" to MH::SetPalette which should resample
     8     a temperature
    49
    510 ;showplot:
  • trunk/MagicSoft/Mars/manalysis/MMcCalibrationUpdate.cc

    r9337 r9414  
    135135    if (!run)
    136136    {
    137         *fLog << warn << dbginf << "Warning - cannot check file type, MRawRunHeader not found." << endl;
     137        *fLog << warn << dbginf << "WARNING - cannot check file type, MRawRunHeader not found." << endl;
    138138        return kTRUE;
    139139    }
     
    143143    //
    144144    fGeom = 0;
    145     if (run->IsMonteCarloRun())
     145    if (!run->IsMonteCarloRun())
    146146    {
    147147        *fLog << inf << "This is no MC file... skipping." << endl;
  • trunk/MagicSoft/Mars/mgeom/MGeomCamSquare.cc

    r9385 r9414  
    8989    for (Short_t x=0; x<nx; x++)
    9090        for (Short_t y=0; y<ny; y++)
    91             SetAt(x*ny+y, MGeomRectangle((0.5*nx-x)*diameter, (0.5*ny-y)*diameter, diameter));
     91            SetAt(x*ny+y, MGeomRectangle((0.5*nx-x-0.5)*diameter, (0.5*ny-y-0.5)*diameter, diameter));
    9292}
  • trunk/MagicSoft/Mars/mhbase/MH.cc

    r9410 r9414  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MH.cc,v 1.48 2009-03-23 13:13:42 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MH.cc,v 1.49 2009-03-30 08:06:41 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    17001700        double b[5] = {0.2, 0.7, 0.0, 0.3, 0.9 };
    17011701        CreateGradientColorTable(5, s, r, g, b, ncol);
     1702        found=kTRUE;
     1703    }
     1704    if (paletteName.Contains("temp"))
     1705    {
     1706        Double_t s[7] = { 0.00, 0.30, 0.45, 0.75, 0.88, 0.95, 1.00 };
     1707        Double_t r[7] = { 0.00, 0.00, 0.30, 0.60, 1.00, 1.00, 1.00 };
     1708        Double_t g[7] = { 0.00, 0.00, 0.00, 0.00, 0.20, 1.00, 1.00 };
     1709        Double_t b[7] = { 0.10, 0.60, 0.30, 0.00, 0.20, 0.00, 1.00 };
     1710        CreateGradientColorTable(7, s, r, g, b, ncol);
    17021711        found=kTRUE;
    17031712    }
Note: See TracChangeset for help on using the changeset viewer.