Changeset 9277 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
01/27/09 12:46:53 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r9275 r9277  
    6262   * mjobs/Makefile, mjobs/JobsLinkDef.h:
    6363     - added MJSimulation
     64
     65   * ceres.cc, showlog.cc, callisto.cc, star.cc, ganymed.cc, sponde.cc:
     66     - added parenthesis suggested by compiler
     67
     68   * mbase/MParEnv.cc:
     69     - included TClass for newwer root versions
     70
     71   * msimreflector/MReflector.cc:
     72     - fixed return if read file was not existing
     73
     74   * msimrelfector/MSimReflector.cc:
     75     - added sanity check if reflector is valid
    6476
    6577
  • trunk/MagicSoft/Mars/msimreflector/MReflector.cc

    r9262 r9277  
    121121{
    122122    SetTitle(fname);
     123    fMirrors.Delete();
    123124
    124125    gSystem->ExpandPathName(fname);
     
    129130        *fLog << err << "Cannot open file " << fname << ": ";
    130131        *fLog << (errno!=0?strerror(errno):"Insufficient memory for decompression") << endl;
     132        return kFALSE;
    131133    }
    132134
     
    140142    */
    141143
    142     fMirrors.Delete();
    143 
    144144    while (1)
    145145    {
  • trunk/MagicSoft/Mars/msimreflector/MSimReflector.cc

    r9260 r9277  
    102102    }
    103103
     104    if (fReflector->GetNumMirrors()==0)
     105    {
     106        *fLog << err << "ERROR - Reflector doesn't contain a single mirror." << endl;
     107        return kFALSE;
     108    }
     109
    104110    fGeomCam = (MGeomCam*)pList->FindObject(fNameGeomCam, "MGeomCam");
    105111    if (!fGeomCam)
Note: See TracChangeset for help on using the changeset viewer.