Changeset 7026 for trunk/MagicSoft


Ignore:
Timestamp:
05/13/05 13:51:38 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7024 r7026  
    2121
    2222                                                 -*-*- END OF LINE -*-*-
     23 2005/05/13 Thomas Bretz
     24
     25   * mreport/MReportCC.cc:
     26     - fixed reading of rep-files for versions newer than V200404070
     27
     28
     29
    2330 2005/05/13 Daniela Dorner
    2431
  • trunk/MagicSoft/Mars/NEWS

    r7022 r7026  
    9191     + MHCalibrationChargeCam.NumHiGainSaturationLimit
    9292     + MHCalibrationChargeCam.NumLoGainSaturationLimit
     93
     94   - fixed reading of CC-REPORTS (weather data) for Arehucas file versions
     95     newer than V200404070
    9396
    9497
  • trunk/MagicSoft/Mars/mreport/MReportCC.cc

    r4575 r7026  
    6060Int_t MReportCC::InterpreteBody(TString &str, Int_t ver)
    6161{
    62     // Remove the 30 tokens of the subsystem status
    63     //  table 12.1 p59
    64     for (int i=0; i<30; i++)
     62    if (ver<200404070)
     63    {
     64        *fLog << err << "ERROR - MReportCC::InterpreteBody not prepared for ";
     65        *fLog << " report-files with version<200404070" << endl;
     66        return kFALSE;
     67    }
     68
     69    const Int_t skip = ver<200407270 ? 30 : 31;
     70
     71    for (int i=0; i<skip; i++)
    6572        str.Remove(0, str.First(' ')+1);
    6673
     
    7582        return kCONTINUE;
    7683    }
    77     /*
     84
    7885    str.Remove(0, len);
    7986
    80     *fLog << dbg << str << endl;
     87    for (int i=0; i<4; i++)  // 2*UPS, TH, 577%x, TD, 577%x
     88        str.Remove(0, str.First(' ')+1);
    8189
    82     if (str!=(TString)"OVER")
     90    if (str.Strip(TString::kBoth)!=(TString)"OVER")
    8391    {
    8492        *fLog << err << "ERROR - Termination (OVER) too far away." << endl;
    85         return kFALSE;
     93        return kCONTINUE;
    8694    }
    87     */
     95
    8896    return kTRUE;
    8997}
     98
     99// --------------------------------------------------------------------------
     100//
     101// Print contents of report
     102//
     103void MReportCC::Print(Option_t *opt) const
     104{
     105    *fLog << all << GetDescriptor() << ":  Status=" << (int)GetState();
     106    *fLog << "   Hum=" << Form("%3.0f", fHumidity);
     107    *fLog << "%  Temp=" << Form("%+3.0f", fTemperature);
     108    *fLog << "°C  Wind=" << Form("%3.0f", fWindSpeed);
     109    *fLog << "km/h  SolarRad=" << Form("%4.0f", fSolarRadiation) << "W/m^2" << endl;
     110}
Note: See TracChangeset for help on using the changeset viewer.