Ignore:
Timestamp:
04/26/06 11:17:05 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/macros/fillstar.C

    r7657 r7660  
    211211    {
    212212        cout << "WARNING - Reading of NumStars failed." << endl;
    213         return 2;
    214     }
    215 
    216     Double_t numstarmean = g->GetMean(2);
     213//        return 2;
     214    }
     215
     216    Double_t numstarmean = g ? g->GetMean(2) : -1;
    217217    TString numstarsmean = Form("%5.1f", numstarmean);
    218     Double_t numstarrms = g->GetRMS(2);
     218    Double_t numstarrms = g ? g->GetRMS(2) : -1;
    219219    TString numstarsrms = Form("%5.1f", numstarrms);
    220220
     
    223223    {
    224224        cout << "WARNING - Reading of SkyBrightness failed." << endl;
    225         return 2;
    226     }
    227 
    228     Double_t brightnessmean = g->GetMean(2);
     225//        return 2;
     226    }
     227
     228    Double_t brightnessmean = g ? g->GetMean(2) : -1;
    229229    TString skybrightnessmean = Form("%5.1f", brightnessmean);
    230     Double_t brightnessrms = g->GetRMS(2);
     230    Double_t brightnessrms = g ? g->GetRMS(2) : -1;
    231231    TString skybrightnessrms = Form("%5.1f", brightnessrms);
    232232
Note: See TracChangeset for help on using the changeset viewer.