Changeset 4040 for trunk


Ignore:
Timestamp:
05/10/04 18:36:04 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4039 r4040  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20 2004/05/10: Thomas Bretz
     21
     22   * mraw/MRawEvtHeader.[h,cc]:
     23     - changed return type of ReadEvt from int to Int_t
     24     - Enhanced output in case of invalid time
     25
     26   * mraw/MRawRead.cc:
     27     - fixed the return type of ReadEvt (was bool instead of int)
     28       which confused merpp completely in case of invalid times
     29
     30
     31
    2032 2004/05/10: Markus Gaug
    2133
    2234   * macros/calibrate_data.C
    2335     - updated setting of arr. time extractor
     36
     37
    2438
    2539 2004/05/09: Thomas Bretz
  • trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc

    r4023 r4040  
    293293    // with the start-date/time of the run (after reading the run header)
    294294    //
    295     return fTime->UpdMagicTime(h, m, s, ns);
     295    if (fTime->UpdMagicTime(h, m, s, ns))
     296        return kTRUE;
     297
     298    *fLog << warn << "WARNING - Time (" << Form("%2d:%02d:%02d,%09d", h, m, s, ns);
     299    *fLog << ") in header of event #" << dec << fDAQEvtNumber << " invalid..." << endl;
     300 
     301    return kFALSE;
    296302}
    297303
     
    309315// Remark: This 'feature' disallows single runs of more than 11h!
    310316//
    311 int MRawEvtHeader::ReadEvt(istream &fin, UShort_t ver)
     317Int_t MRawEvtHeader::ReadEvt(istream &fin, UShort_t ver)
    312318{
    313319    fin.read((char*)&fDAQEvtNumber, 4);  // Total=4
     
    319325        if (!DecodeTime(abstime))
    320326        {
    321             *fLog << warn << "WARNING - Event time in event header invalid..." << endl;
    322327            // Skip the rest of the header in case of merpps force-mode
    323328            fin.seekg(GetNumBytes()-12, ios::cur);
  • trunk/MagicSoft/Mars/mraw/MRawEvtHeader.h

    r4023 r4040  
    6767    UInt_t GetTriggerID() const;
    6868
    69     int ReadEvt(istream& fin, UShort_t ver);
     69    Int_t ReadEvt(istream& fin, UShort_t ver);
    7070    void SkipEvt(istream& fin, UShort_t ver);
    7171
  • trunk/MagicSoft/Mars/mraw/MRawRead.cc

    r3800 r4040  
    165165    // if there is no next event anymore stop eventloop
    166166    //
    167     const Bool_t rc = fRawEvtHeader->ReadEvt(fin, ver);
     167    const Int_t rc = fRawEvtHeader->ReadEvt(fin, ver);
    168168    if (rc==kCONTINUE && fForceMode==kFALSE)
    169169    {
Note: See TracChangeset for help on using the changeset viewer.