Ignore:
Timestamp:
03/01/06 17:20:46 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
3 edited

Legend:

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

    r5875 r7554  
    2222class MTask : public MInputStreamID
    2323{
     24public:
     25    enum {
     26        kAccStandard  = 0,
     27        kAccDontCount = BIT(1),
     28        kAccDontTime  = BIT(2),
     29        kAccDontReset = BIT(3)
     30    };
     31
    2432private:
    2533    TList *fListOfBranches; //! List of Branch names for auto enabeling scheme
     
    3240    TStopwatch *fStopwatch; //! Count the execution time and number of executions
    3341    UInt_t      fNumExec0;  //! Total number of executions at PreProcess
     42    Byte_t      fAccelerator; //!
    3443
    3544    virtual Int_t PreProcess(MParList *pList);
     
    8089    void SetDisplay(MStatusDisplay *d);
    8190
     91    // Acceleration Control
     92    virtual void SetAccelerator(Byte_t acc=kAccStandard) { fAccelerator=acc; }
     93    Byte_t GetAccelerator() const { return fAccelerator; }
     94    Bool_t HasAccelerator(Byte_t acc) const { return fAccelerator&acc; }
     95
    8296    // Function for parallel executions
    8397    static TString AddSerialNumber(const char *str, UInt_t num) { TString s(str); if (num==0) return s; s += ";"; s += num; return s; }
  • trunk/MagicSoft/Mars/mbase/MTaskList.cc

    r7064 r7554  
    158158}
    159159
     160void MTaskList::SetAccelerator(Byte_t acc)
     161{
     162    fTasks->ForEach(MTask, SetAccelerator)(acc);
     163    MTask::SetAccelerator(acc);
     164}
     165
    160166// --------------------------------------------------------------------------
    161167//
     
    553559    {
    554560        fParList->SetBit(MParList::kIsProcessing);
    555         fParList->Reset();
     561        if (!HasAccelerator(kAccDontReset))
     562            fParList->Reset();
    556563    }
    557564
  • trunk/MagicSoft/Mars/mbase/MTaskList.h

    r7064 r7554  
    4242    void SetLogStream(MLog *log);
    4343    void SetDisplay(MStatusDisplay *d);
     44    void SetAccelerator(Byte_t acc=kAccStandard);
    4445
    4546    Bool_t AddToListBefore(MTask *task, const MTask *where, const char *tType="All");
Note: See TracChangeset for help on using the changeset viewer.