Changeset 7660 for trunk


Ignore:
Timestamp:
04/26/06 11:17:05 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter
Files:
2 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
  • trunk/MagicSoft/Mars/datacenter/scripts/fillstar

    r7659 r7660  
    8989   setstatus "start" >> $scriptlog 2>&1
    9090
    91    check2=`root -q -b $macrospath/fillstar.C+\("\"$starfile\""\,kFALSE\) | tee $fillstarlog | grep int | sed -e 's/.*\(int\)//'`
     91   check2=`root -q -b $macrospath/fillstar.C+\("\"$starfile\""\,kFALSE\) | tee $fillstarlog | grep \(int\) | sed -e 's/.*\(int\)//'`
    9292   case $check2 in
    9393      1)   echo "check2=$check2 -> everything ok " >> $scriptlog 2>&1 ;;
Note: See TracChangeset for help on using the changeset viewer.