Changeset 3226 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
02/18/04 15:36:57 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3225 r3226  
    1515   * manalysis/MPedestalCam.h
    1616     - Changed order of derivements - seems to be VERY important!
     17
     18   * mfileio/MReadReports.cc:
     19     - skip trees with no entries
     20
     21   * mgui/MCamEvent.cc:
     22     - added a comment
     23
     24   * mhbase/MFillH.cc:
     25     - in case SetupFill returns kFALSE and kCanSkip is set
     26       Skip task
     27
     28   * mraw/MRawFileRead.cc:
     29     - don't print warning in case of none executions
    1730
    1831
  • trunk/MagicSoft/Mars/mfileio/MReadReports.cc

    r3144 r3226  
    205205        }
    206206
     207        if (tree->GetEntries()==0)
     208        {
     209            *fLog << warn << "No events in tree '" << tree->GetName() << "'... skipped." << endl;
     210            fTrees->RemoveFromList(tree);
     211            continue;
     212        }
     213
    207214        TString tn(tree->GetTitle());
    208215        if (tn.IsNull())
  • trunk/MagicSoft/Mars/mgui/MCamEvent.cc

    r2440 r3226  
    3131// If GetPixelContent returns kFALSE, it must not touch 'val'.
    3232//
     33// You can derive a class in addition to TObject from MCamEvent, too.
     34//
     35// MCamEvent MUST be after TObject:
     36//  ALLOWED:   class MyClass : public TObject, public MCamEvent
     37//  FORBIDDEN: class MyClass : public MCamEvent, public TObject
     38//
    3339//////////////////////////////////////////////////////////////////////////////
    3440#include "MCamEvent.h"
  • trunk/MagicSoft/Mars/mhbase/MFillH.cc

    r3144 r3226  
    449449    if (!fH->SetupFill(pList))
    450450    {
    451         *fLog << err << "ERROR - Calling SetupFill for ";
    452         *fLog << fH->GetDescriptor() << "... aborting." << endl;
    453         return kFALSE;
     451        *fLog << (TestBit(kCanSkip) ? warn : err);
     452        *fLog << (TestBit(kCanSkip) ? "WARNING" : "ERROR");
     453        *fLog << " Calling SetupFill for " << fH->GetDescriptor() << "...";
     454        *fLog << (TestBit(kCanSkip) ? "skipped." : "aborting.");
     455
     456        return TestBit(kCanSkip) ? kSKIP : kFALSE;
    454457    }
    455458
  • trunk/MagicSoft/Mars/mraw/MRawFileRead.cc

    r3183 r3226  
    199199    // Sanity check for the number of events
    200200    //
    201     if (fRawRunHeader->GetNumEvents() == GetNumExecutions()-1)
     201    if (fRawRunHeader->GetNumEvents()==GetNumExecutions()-1 || GetNumExecutions()==0)
    202202        return kTRUE;
    203203
    204     *fLog << warn << "Warning - number of read events (" << GetNumExecutions()-1;
     204    *fLog << warn << dec;
     205    *fLog << "Warning - number of read events (" << GetNumExecutions()-1;
    205206    *fLog << ") doesn't match number in run header (";
    206207    *fLog << fRawRunHeader->GetNumEvents() << ")." << endl;
Note: See TracChangeset for help on using the changeset viewer.