Changeset 7554 for trunk/MagicSoft/Mars


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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7553 r7554  
    4040     - added MHSrcPosCam
    4141
     42   * mbase/MTask.[h,cc]:
     43     - implemented a new data-meber fAccelerator which allows
     44       to switch off counting and timing analysis which can be very
     45       time-consuming in some circumstances
     46
     47   * mbase/MTaskList.[h,cc]:
     48     - implemented the usabe of MTask::fAccelerator to switch off resetting
     49       of all parameter containers which can be very time-consuming
     50
     51   * mimage/MImagePar.cc:
     52     - updated how the units are printed in Print()
     53
     54
    4255
    4356
  • 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");
  • trunk/MagicSoft/Mars/mimage/MImagePar.cc

    r6869 r7554  
    110110    *fLog << " - Sat.Pixels (HG)  [#] = " << fNumSatPixelsHG   << " Pixels" << endl;
    111111    *fLog << " - Sat.Pixels (LG)  [#] = " << fNumSatPixelsLG   << " Pixels" << endl;
    112     *fLog << " - Num rmvd CorePix [#] = " << fNumSinglePixels  << " Pixels" << endl;
    113     *fLog << " - Sz  rmvd CorePix [#] = " << fSizeSinglePixels << " CerPhot" << endl;
    114     *fLog << " - Size Sub Islands [#] = " << fSizeSubIslands   << " CerPhot" << endl;
    115     *fLog << " - Size Main Island [#] = " << fSizeMainIsland   << " CerPhot" << endl;
     112    *fLog << " - No rmvd CorePx  [#] = " << fNumSinglePixels  << " Pixels" << endl;
     113    *fLog << " - Sz rmvd CorePx [phe] = " << fSizeSinglePixels << endl;
     114    *fLog << " - Sz Sub Islands [phe] = " << fSizeSubIslands  << endl;
     115    *fLog << " - Sz Main Island [phe] = " << fSizeMainIsland  << endl;
    116116}
Note: See TracChangeset for help on using the changeset viewer.