Ignore:
Timestamp:
10/15/02 17:02:46 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/BaseLinkDef.h

    r1492 r1540  
    3535#pragma link C++ class MClone+;
    3636#pragma link C++ class MPrint+;
     37#pragma link C++ class MContinue+;
    3738
    3839#pragma link C++ class MArray;
  • trunk/MagicSoft/Mars/mbase/MClone.h

    r1014 r1540  
    3030    Bool_t Process();
    3131
    32     TObject *GetClone() const { return fClone; }
     32    TObject *GetClone() const  { return fClone; }
     33    const TObject *GetObject() const { return fObject; }
    3334
    3435    void Clear(Option_t *opt=NULL);
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.cc

    r1528 r1540  
    8686#ifdef __MARS__
    8787#include "MReadTree.h"       // for setting progress bar
     88#include "MProgressBar.h"    // MProgressBar::GetBar
    8889#endif
    8990
     
    126127    enable ? SetBit(kIsOwner) : ResetBit(kIsOwner);
    127128}
     129
     130#ifdef __MARS__
     131// --------------------------------------------------------------------------
     132//
     133//  Specify an existing MProgressBar object. It will display the progress
     134//  graphically. This will make thing about 1-2% slower.
     135//
     136void MEvtLoop::SetProgressBar(MProgressBar *bar)
     137{
     138    fProgress = bar->GetBar();
     139}
     140#endif
    128141
    129142// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.h

    r1526 r1540  
    1717class MTaskList;
    1818class TGProgressBar;
     19#ifdef __MARS__
     20class MProgressBar;
     21#endif
    1922
    2023class MEvtLoop : public MParContainer
     
    4447
    4548    void SetProgressBar(TGProgressBar *bar) { fProgress = bar; }
     49#ifdef __MARS__
     50    void SetProgressBar(MProgressBar *bar);
     51#endif
    4652
    4753    Bool_t PreProcess(const char *tlist="MTaskList");
  • trunk/MagicSoft/Mars/mbase/MTask.cc

    r1501 r1540  
    252252// --------------------------------------------------------------------------
    253253//
    254 // Prints the number of times this task has been processed.
    255 // For convinience the lvl argument results in a number of spaces at the
    256 // beginning of the line. So that the structur of a tasklist can be
    257 // identified.
     254//  Prints the number of times all the tasks in the list has been.
     255//  For convinience the lvl argument results in a number of spaces at the
     256//  beginning of the line. So that the structur of a tasklist can be
     257//  identified. If a Tasklist or task has filter applied the name of the
     258//  filter is printer in <>-brackets behind the number of executions.
     259//  Use MTaskList::PrintStatistics without an argument.
    258260//
    259261void MTask::PrintStatistics(const Int_t lvl, Bool_t title) const
     
    261263    *fLog << all << setw(lvl) << " " << GetDescriptor() << "\t";
    262264    *fLog << dec << fNumExecutions;
     265    if (fFilter)
     266        *fLog << " <" << fFilter->GetName() << ">";
    263267    if (title)
    264268        *fLog << "\t" << fTitle;
     
    280284    /*
    281285     If we don't stream filter which are not in the task list itself
    282      (which means: alrteady streamed) we may be able to use the
    283      primitive streamer as some kind of validity check for the macros
     286     (which means: already streamed) we may be able to use
     287     SavePrimitive as some kind of validity check for the macros
    284288
    285289     fFilter->SavePrimitive(out);
  • trunk/MagicSoft/Mars/mbase/MTaskList.cc

    r1527 r1540  
    6666#include "MLogManip.h"
    6767
     68#include "MFilter.h"
    6869#include "MParList.h"
    6970#include "MInputStreamID.h"
     
    7172ClassImp(MTaskList);
    7273
    73 static const TString gsDefName  = "MTaskList";
    74 static const TString gsDefTitle = "A list for tasks to be executed";
     74const TString MTaskList::gsDefName  = "MTaskList";
     75const TString MTaskList::gsDefTitle = "A list for tasks to be executed";
     76
    7577// --------------------------------------------------------------------------
    7678//
     
    492494//  For convinience the lvl argument results in a number of spaces at the
    493495//  beginning of the line. So that the structur of a tasklist can be
    494 //  identified. Use MTaskList::PrintStatistics without an argument.
     496//  identified. If a Tasklist or task has filter applied the name of the
     497//  filter is printer in <>-brackets behind the number of executions.
     498//  Use MTaskList::PrintStatistics without an argument.
    495499//
    496500void MTaskList::PrintStatistics(const Int_t lvl, Bool_t title) const
     
    502506        *fLog << "---------------------" << endl;
    503507        *fLog << GetDescriptor();
     508        if (GetFilter())
     509            *fLog << " <" << GetFilter()->GetName() << ">";
    504510        if (title)
    505511            *fLog << "\t" << fTitle;
  • trunk/MagicSoft/Mars/mbase/MTaskList.h

    r1501 r1540  
    2121{
    2222private:
    23     TList    *fTasks;       // Container for the ordered list of different tasks
    24     TList    fTasksProcess; //!
    25     MParList *fParList;     //!
     23    static const TString gsDefName;  // default name
     24    static const TString gsDefTitle; // default title
    2625
    27     UInt_t *fCntContinue;   //!
    28     UInt_t *fCntTrue;       //!
     26    TList    *fTasks;        // Container for the ordered list of different tasks
     27    TList     fTasksProcess; //! Task which overload the Process function
     28    MParList *fParList;      //! The parameter list given in PreProcess
    2929
    3030    enum { kIsOwner = BIT(14) };
  • trunk/MagicSoft/Mars/mbase/Makefile

    r1528 r1540  
    2020# @endcode
    2121
    22 INCLUDES = -I. -I../mraw -I../MRawFormat -I../mmc -I../mfileio
     22INCLUDES = -I. -I../mraw -I../MRawFormat -I../mmc -I../mfileio -I../mmain
    2323
    2424# @code
     
    4848           MTime.cc \
    4949           MClone.cc \
     50           MContinue.cc \
    5051           MPrint.cc \
    5152           MLogManip.cc
Note: See TracChangeset for help on using the changeset viewer.