Ignore:
Timestamp:
06/06/08 16:44:02 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8694 r8924  
    1919!   Author(s): Daniela Dorner, 05/2005 <mailto:dorner@astro.uni-wuerzburg.de>
    2020!
    21 !   Copyright: MAGIC Software Development, 2000-2006
     21!   Copyright: MAGIC Software Development, 2000-2008
    2222!
    2323!
     
    223223    Double_t max = TMath::MaxElement(g->GetN(), g->GetY());
    224224    TString maxhum = Form("%6.1f", max);
     225
     226    g = (TGraph*)arr.FindObjectInCanvas("Temperature", "TGraph", "MHWeather");
     227    if (!g)
     228    {
     229        cout << "WARNING - Reading of Temperature failed." << endl;
     230        return 2;
     231    }
     232
     233    Double_t temp = g->GetMean(2);
     234    TString avgtemp = Form("%6.1f", temp);
     235
     236    g = (TGraph*)arr.FindObjectInCanvas("WindSpeed", "TGraph", "MHWeather");
     237    if (!g)
     238    {
     239        cout << "WARNING - Reading of WindSpeed failed." << endl;
     240        return 2;
     241    }
     242
     243    Double_t wind = g->GetMean(2);
     244    TString avgwind = Form("%6.1f", wind);
    225245
    226246
     
    284304    cout << "  Rate of sparks [Hz]      " << sparkrate << endl;
    285305    cout << "  Maximum Humidity [%]     " << maxhum    << endl;
     306    cout << "  Average Temp [°C]        " << avgtemp   << endl;
     307    cout << "  Average WindSpeed [km/h] " << avgwind   << endl;
    286308    cout << "  Number of Stars          " << numstarsmed      << " +/- " << numstarsrms       << endl;
    287309    cout << "  Number of cor. Stars     " << numcormed        << " +/- " << numcorrms         << endl;
     
    302324                     " fSparkRate=%s, "
    303325                     " fMaxHumidity=%s ,"
     326                     " fAvgTemperature=%s ,"
     327                     " fAvgWindSpeed=%s ,"
    304328                     " fNumStarsMed=%s ,"
    305329                     " fNumStarsRMS=%s ,"
     
    313337                     muonrate.Data(), PSF.Data(),
    314338                     datarate, sparkrate.Data(), maxhum.Data(),
     339                     avgtemp.Data(), avgwind.Data(),
    315340                     numstarsmed.Data(), numstarsrms.Data(),
    316341                     numcorsmed.Data(), numcorsrms.Data(),
Note: See TracChangeset for help on using the changeset viewer.