Changeset 4569 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
08/10/04 18:36:28 (20 years ago)
Author:
rwagner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4567 r4569  
    1919
    2020                                                 -*-*- END OF LINE -*-*-
     21
     22  2004/08/10: Robert Wagner
     23
     24   * mreports/MReportCamera.[h,cc]
     25     - added function InterpreteHOT which interprete the HOT* part of
     26       the report. The variable HVs_modified_by_HOT_Pixels is
     27       extracted, but not yet written in the corresponding MARS
     28       parameter container
     29
    2130
    2231  2004/08/10: Markus Gaug
  • trunk/MagicSoft/Mars/mreport/MReportCamera.cc

    r2892 r4569  
    379379// --------------------------------------------------------------------------
    380380//
     381// Interprete the HOT* part of the report
     382//
     383Bool_t MReportCamera::InterpreteHOT(TString &str)
     384{
     385
     386    if (!CheckTag(str, "HOT "))
     387        return kFALSE;
     388
     389    Int_t len;
     390    Int_t hot;
     391
     392    const Int_t n=sscanf(str.Data(), "%hd %n", &hot, &len);
     393    if (n!=1)
     394    {
     395        *fLog << warn << "WARNING - Reading information of 'HOT' section." << endl;
     396        return kFALSE;
     397    }
     398
     399    str.Remove(0, len);
     400    str=str.Strip(TString::kBoth);
     401    return kTRUE;
     402
     403}
     404
     405
     406// --------------------------------------------------------------------------
     407//
    381408// Interprete the CAMERA-REPORT part
    382409//
     
    449476        return kCONTINUE;
    450477
     478    if (!InterpreteHOT(str))
     479        return kCONTINUE;
     480
    451481    if (str!="OVER")
    452482    {
  • trunk/MagicSoft/Mars/mreport/MReportCamera.h

    r3066 r4569  
    3838    Bool_t InterpreteAUX(TString &str);
    3939    Bool_t InterpreteCAL(TString &str);
     40    Bool_t InterpreteHOT(TString &str);
    4041
    4142    Int_t  InterpreteBody(TString &str);
Note: See TracChangeset for help on using the changeset viewer.