Changeset 8924 for trunk


Ignore:
Timestamp:
06/06/08 16:44:02 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8916 r8924  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21
     22 2008/06/06 Thomas Bretz
     23
     24   * datacenter/macros/fillstar.C:
     25     - added windspeed and temperature
     26
     27
     28
     29 2008/06/03 Thomas Bretz
     30
     31   * mbase/MStatusDisplay.cc:
     32     - added missing inclusion of TMath (root 5.18)
     33     - initialize gClient in batch mode to repair broken
     34       batch-mode in root 5.18. Fortunately this doesn't
     35       break root 5.12
     36     - added a SaveAs(const char *c, const Option_t *o)
     37       based on the new SaveAs from TGObject
     38
     39   * mcalib/MCalibrationChargePix.[h,cc],
     40     mextralgo/MExtralgoDigitalFilter.[h,cc]:
     41     - moved some code to source file to prevent TMath inclusion in
     42       header (root 5.18)
     43
     44   * mcalib/MCalibrationChargeCam.cc,
     45     mcalib/MCalibrationChargePINDiode.cc:
     46     - added the missing inclusion of TMath
     47
     48   * mgeom/MGeomCam.[h,cc]:
     49     - for sanity (a bug in root < 5.18) filling fPixels is now
     50       done via AddAt. This "repairs" the functionality of the
     51       Streamer which before didn't store any contants of fPixels
     52       nor read any contents.
     53     - Removed the custom Clone function. It is now obsolete,
     54       because it works through the fixed Streamer
     55     - a Copy-member function has been implemented
     56     - a custom Streamer has been implemented allowing to read
     57       files containing MGeomCamMagic written with root 5.12
     58       with root 5.18
     59     - A member function containing the workaround has been implemented
     60     - Print got an option ("simple")
     61
     62   * mgeom/GeomLinkDef.h:
     63     - suppress root-Streamer
     64
     65   * manalysis/MGeomApply.cc:
     66     - added the newly necessary call to the StreamerWorkaround
     67
     68   * mgeom/MGeomPix.[h,cc]:
     69     - because with the IgnoreTObjectStreamer set for MParContainer
     70       the bits for the outer rings cannot be stored. This was no
     71       problem before because in reality they have never been written
     72       or read. To store the bits a new data-member fUserBits
     73       has been introduced.
     74     - accordingly all calles to set or remove the bits have been
     75       changed to use fUserBits instead
     76     - the class version number has been increased due to the new
     77       data member
     78     - improved Print-output
     79
    2080
    2181
  • 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.