Changeset 3817


Ignore:
Timestamp:
04/23/04 09:29:51 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3810 r3817  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20 2004/04/23: Thomas Bretz
     21
     22  * */Makefile:
     23    - added some more mpedestal
     24
     25  * mreport/MReportRun.cc:
     26    - changed to work with the latest version of report-files
     27      --> This will make it incompatible with older report files
     28          (for this use older Mars versions for merpping)
     29
     30
     31
    2032 2004/04/22: Nadia Tonello
    2133
  • trunk/MagicSoft/Mars/mfileio/Makefile

    r3579 r3817  
    2121
    2222INCLUDES = -I. -I../mbase -I../mraw -I../mmc -I../mreflector -I../mgui \
    23            -I../mdata -I../manalysis -I../mgeom -I../mhbase -I../mpointing
     23           -I../mdata -I../manalysis -I../mgeom -I../mhbase            \
     24           -I../mpointing -I../mpedestal
    2425#mraw:       MRawRunHeader (MReadMaraFile)
    2526#mmc:        MMcRunHeader  (MReadMarsFile)
     
    3132#mhbase:     MBinning      (MCT1ReadPreProc)
    3233#mpointing:  MPointingPos  (MCT1ReadPreProc)
     34#mpedestal:  MPedestalCam  (MCT1ReadAscii)
    3335
    3436# @code
     
    4244
    4345SRCFILES = MRead.cc \
     46           MReadFiles.cc \
    4447           MChain.cc \
    4548           MReadTree.cc \
     
    5154           MWriteRootFile.cc \
    5255           MCT1ReadAscii.cc \
    53            MCT1ReadPreProc.cc
     56           MCT1ReadPreProc.cc \
     57           MCheckMagicFile.cc
    5458
    5559SRCS    = $(SRCFILES)
  • trunk/MagicSoft/Mars/mreport/MReportRun.cc

    r2892 r3817  
    5959Int_t MReportRun::InterpreteBody(TString &str)
    6060{
    61     Int_t len;
    62     const Int_t n=sscanf(str.Data(), "%d %n", &fRunNumber, &len);
     61    const Int_t pos = str.First(' ');
     62    if (pos<0)
     63    {
     64        *fLog << warn << "WARNING - Token not found." << endl;
     65        return kCONTINUE;
     66    }
     67    const TString tok=str(0, pos);
     68
     69    str.Remove(0, pos);
     70    str = str.Strip(TString::kBoth);
     71
     72    Int_t len, run;
     73    const Int_t n=sscanf(str.Data(), "%d %n", &run, &len);
    6374    if (n!=1)
    6475    {
     
    6879    str.Remove(0, len);
    6980
    70     if (str.BeginsWith("END"))
     81    if (tok=="START")
     82    {
     83        if (fRunNumber!=-1)
     84            *fLog << warn << "WARNING - RUN-REPORT STOP missing." << endl;
     85        fRunNumber = run;
     86    }
     87    if (tok=="STOP")
     88    {
     89        if (fRunNumber==-1)
     90            *fLog << warn << "WARNING - RUN-REPORT START missing." << endl;
    7191        fRunNumber = -1;
     92    }
    7293
    73     str.Remove(0, 6);
    74     str = str.Strip(TString::kBoth);
    7594    Ssiz_t pos = str.First(' ');
    7695    if (pos<0)
Note: See TracChangeset for help on using the changeset viewer.