Changeset 7184
- Timestamp:
- 07/13/05 15:34:23 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MTaskInteractive.cc
r7178 r7184 75 75 // 76 76 MTaskInteractive::MTaskInteractive(const char *name, const char *title) : 77 fPreProcess(NULL), fProcess(NULL), fPostProcess(NULL) 77 fPreProcess(NULL), fProcess(NULL), fPostProcess(NULL), fReInit(NULL) 78 78 { 79 79 fName = name ? name : "MTaskInteractive"; -
trunk/MagicSoft/Mars/mbase/MTaskInteractive.h
r7178 r7184 22 22 Int_t Process() { if (fCall[1]) return Return(1); return fProcess ? (*fProcess)() : kTRUE; } 23 23 Int_t PostProcess() { if (fCall[2]) return Return(2); return fPostProcess ? (*fPostProcess)() : kTRUE; } 24 Bool_t ReInit(MParList *list) { if (fCall[3]) return Return(3, &list); return f PostProcess ? (*fPostProcess)(): kTRUE; }24 Bool_t ReInit(MParList *list) { if (fCall[3]) return Return(3, &list); return fReInit ? (*fReInit)(list) : kTRUE; } 25 25 26 26 Int_t Return(Int_t no, void *param=NULL); … … 33 33 34 34 // This is to be used in compiled code 35 void SetPreProcess(Int_t (*func)(MParList *list)) { fPreProcess = func;Free(0); }36 void SetProcess(Int_t (*func)()) { fProcess = func;Free(1); }35 void SetPreProcess(Int_t (*func)(MParList *list)) { fPreProcess = func; Free(0); } 36 void SetProcess(Int_t (*func)()) { fProcess = func; Free(1); } 37 37 void SetPostProcess(Int_t (*func)()) { fPostProcess = func; Free(2); } 38 void SetReInit(Bool_t (*func)(MParList *list)) { fReInit = func;Free(3); }38 void SetReInit(Bool_t (*func)(MParList *list)) { fReInit = func; Free(3); } 39 39 40 40 // This is for usage in CINT -
trunk/MagicSoft/Mars/sinope.cc
r7001 r7184 135 135 //MStatusDisplay *d = new MStatusDisplay; 136 136 d->AddTab("Time"); 137 h1.DrawC lone();137 h1.DrawCopy(); 138 138 l.DrawLine(h1.GetMaximumBin()-1, 0, h1.GetMaximumBin()-1, h1.GetMaximum()); 139 139 const Int_t fwhm1 = GetFWHM(h1, min, max); … … 141 141 l.DrawLine(min-1, h1.GetMaximum()/2, max-1, h1.GetMaximum()/2); 142 142 gPad->Update(); 143 143 144 d->AddTab("Pulse"); 144 h2.DrawC lone();145 h2.DrawCopy(); 145 146 l.DrawLine(h2.GetMaximumBin()-1, 0, h2.GetMaximumBin()-1, h2.GetMaximum()); 146 147 const Int_t fwhm2 = GetFWHM(h2, min, max); … … 170 171 fout << "HeightAsym: " << (asym2?"Yes":"No") << endl; 171 172 fout << endl; 172 173 173 174 174 return kTRUE; … … 428 428 } 429 429 430 tlist.PrintStatistics();431 432 430 if (kBatch || kQuit) 433 431 delete d;
Note:
See TracChangeset
for help on using the changeset viewer.