- Timestamp:
- 03/01/06 17:20:46 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7553 r7554 40 40 - added MHSrcPosCam 41 41 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 42 55 43 56 -
trunk/MagicSoft/Mars/mbase/MTask.h
r5875 r7554 22 22 class MTask : public MInputStreamID 23 23 { 24 public: 25 enum { 26 kAccStandard = 0, 27 kAccDontCount = BIT(1), 28 kAccDontTime = BIT(2), 29 kAccDontReset = BIT(3) 30 }; 31 24 32 private: 25 33 TList *fListOfBranches; //! List of Branch names for auto enabeling scheme … … 32 40 TStopwatch *fStopwatch; //! Count the execution time and number of executions 33 41 UInt_t fNumExec0; //! Total number of executions at PreProcess 42 Byte_t fAccelerator; //! 34 43 35 44 virtual Int_t PreProcess(MParList *pList); … … 80 89 void SetDisplay(MStatusDisplay *d); 81 90 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 82 96 // Function for parallel executions 83 97 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 158 158 } 159 159 160 void MTaskList::SetAccelerator(Byte_t acc) 161 { 162 fTasks->ForEach(MTask, SetAccelerator)(acc); 163 MTask::SetAccelerator(acc); 164 } 165 160 166 // -------------------------------------------------------------------------- 161 167 // … … 553 559 { 554 560 fParList->SetBit(MParList::kIsProcessing); 555 fParList->Reset(); 561 if (!HasAccelerator(kAccDontReset)) 562 fParList->Reset(); 556 563 } 557 564 -
trunk/MagicSoft/Mars/mbase/MTaskList.h
r7064 r7554 42 42 void SetLogStream(MLog *log); 43 43 void SetDisplay(MStatusDisplay *d); 44 void SetAccelerator(Byte_t acc=kAccStandard); 44 45 45 46 Bool_t AddToListBefore(MTask *task, const MTask *where, const char *tType="All"); -
trunk/MagicSoft/Mars/mimage/MImagePar.cc
r6869 r7554 110 110 *fLog << " - Sat.Pixels (HG) [#] = " << fNumSatPixelsHG << " Pixels" << endl; 111 111 *fLog << " - Sat.Pixels (LG) [#] = " << fNumSatPixelsLG << " Pixels" << endl; 112 *fLog << " - N um rmvd CorePix[#] = " << fNumSinglePixels << " Pixels" << endl;113 *fLog << " - Sz rmvd CorePix [#] = " << fSizeSinglePixels << " CerPhot"<< endl;114 *fLog << " - S ize Sub Islands [#] = " << fSizeSubIslands << " CerPhot"<< endl;115 *fLog << " - S ize 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; 116 116 }
Note:
See TracChangeset
for help on using the changeset viewer.