Ignore:
Timestamp:
06/28/06 08:55:29 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter/macros
Files:
2 edited

Legend:

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

    r7681 r7756  
    214214    }
    215215
    216     Double_t numstarmean = g ? TMath::Median(g->GetN(), g->GetY()) : -1;
    217     TString numstarsmean = Form("%5.1f", numstarmean);
     216    Double_t numstarmed = g ? TMath::Median(g->GetN(), g->GetY()) : -1;
     217    TString numstarsmed = Form("%5.1f", numstarmed);
    218218    Double_t numstarrms = g ? g->GetRMS(2) : -1;
    219219    TString numstarsrms = Form("%5.1f", numstarrms);
    220220
     221    g = (TGraph*)arr.FindObjectInCanvas("NumStarsCor", "TGraph", "MHPointing");
     222    if (!g)
     223    {
     224        cout << "WARNING - Reading of NumStarsCor failed." << endl;
     225//        return 2;
     226    }
     227
     228    Double_t numcormed = g ? TMath::Median(g->GetN(), g->GetY()) : -1;
     229    TString numcorsmed = Form("%5.1f", numcormed);
     230    Double_t numcorrms = g ? g->GetRMS(2) : -1;
     231    TString numcorsrms = Form("%5.1f", numcorrms);
     232
    221233    g = (TGraph*)arr.FindObjectInCanvas("Brightness", "TGraph", "MHPointing");
    222234    if (!g)
     
    226238    }
    227239
    228     Double_t brightnessmean = g ? TMath::Median(g->GetN(), g->GetY()) : -1;
    229     TString skybrightnessmean = Form("%5.1f", brightnessmean);
     240    Double_t brightnessmed = g ? TMath::Median(g->GetN(), g->GetY()) : -1;
     241    TString skybrightnessmed = Form("%5.1f", brightnessmed);
    230242    Double_t brightnessrms = g ? g->GetRMS(2) : -1;
    231243    TString skybrightnessrms = Form("%5.1f", brightnessrms);
     
    252264    cout << "  Rate after ImgCl [Hz] " << datarate  << endl;
    253265    cout << "  Maximum Humidity [%]  " << maxhum    << endl;
    254     cout << "  Number of Stars       " << numstarsmean      << " +/- " << numstarsrms       << endl;
    255     cout << "  Skybrightness         " << skybrightnessmean << " +/- " << skybrightnessrms  << endl;
     266    cout << "  Number of Stars       " << numstarsmed      << " +/- " << numstarsrms       << endl;
     267    cout << "  Number of cor. Stars  " << numcormed        << " +/- " << numcorrms         << endl;
     268    cout << "  Skybrightness         " << skybrightnessmed << " +/- " << skybrightnessrms  << endl;
    256269
    257270    TString query;
     
    268281                     " fDataRate=%d, "
    269282                     " fMaxHumidity=%s ,"
    270                      " fNumStarsMean=%s ,"
     283                     " fNumStarsMed=%s ,"
    271284                     " fNumStarsRMS=%s ,"
    272                      " fBrightnessMean=%s ,"
     285                     " fNumStarsCorMed=%s ,"
     286                     " fNumStarsCorRMS=%s ,"
     287                     " fBrightnessMed=%s ,"
    273288                     " fBrightnessRMS=%s ,"
    274289                     " fInhomogeneity=%s ",
     
    277292                     muonrate.Data(), PSF.Data(),
    278293                     datarate, maxhum.Data(),
    279                      numstarsmean.Data(), numstarsrms.Data(),
    280                      skybrightnessmean.Data(), skybrightnessrms.Data(),
     294                     numstarsmed.Data(), numstarsrms.Data(),
     295                     numcorsmed.Data(), numcorsrms.Data(),
     296                     skybrightnessmed.Data(), skybrightnessrms.Data(),
    281297                     inhomogen.Data());
    282298    }
     
    292308                     " fDataRate=%d, "
    293309                     " fMaxHumidity=%s, "
    294                      " fNumStarsMean=%s ,"
     310                     " fNumStarsMed=%s ,"
    295311                     " fNumStarsRMS=%s ,"
     312                     " fNumStarsCorMed=%s ,"
     313                     " fNumStarsCorRMS=%s ,"
    296314                     " fBrightnessMean=%s ,"
    297315                     " fBrightnessRMS=%s ,"
     
    302320                     muonrate.Data(), PSF.Data(),
    303321                     datarate, maxhum.Data(),
    304                      numstarsmean.Data(), numstarsrms.Data(),
    305                      skybrightnessmean.Data(), skybrightnessrms.Data(),
     322                     numstarsmed.Data(), numstarsrms.Data(),
     323                     numcorsmed.Data(), numcorsrms.Data(),
     324                     skybrightnessmed.Data(), skybrightnessrms.Data(),
    306325                     inhomogen.Data(), seq);
    307326    }
  • trunk/MagicSoft/Mars/datacenter/macros/plotdb.C

    r7703 r7756  
    449449
    450450    plot.SetDescription("Median No. Stars recognized by the starguider;N", "StarsMed");
    451     plot.Plot("Star.fNumStarsMean",             0,  70, 1);
     451    plot.Plot("Star.fNumStarsMed",              0,  70, 1);
    452452    plot.SetDescription("RMS No. Stars recognized by the starguider;\\sigma_{N}", "StarsRMS");
    453453    plot.Plot("Star.fNumStarsRMS",              0,  25, 1);
     454    plot.SetDescription("Median No. Stars correlated by the starguider;N", "StarsMed");
     455    plot.Plot("Star.fNumCorMed",                0,  70, 1);
     456    plot.SetDescription("RMS No. Stars correlated by the starguider;\\sigma_{N}", "StarsRMS");
     457    plot.Plot("Star.fNumCorRMS",                0,  25, 1);
    454458    plot.SetDescription("Median skbrightess measured by the starguider;B [au]", "BrightMed");
    455459    plot.Plot("Star.fBrightnessMean",           0, 111, 1);
Note: See TracChangeset for help on using the changeset viewer.