Changeset 8644 for trunk/MagicSoft/Mars/mjoptim
- Timestamp:
- 07/24/07 14:36:39 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mjoptim
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjoptim/MJOptimize.cc
r8643 r8644 647 647 648 648 // Setup eventloop 649 MEvtLoop evtloop ;649 MEvtLoop evtloop(fTitle); 650 650 evtloop.SetParList(&parlist); 651 651 evtloop.SetDisplay(fDisplay); // set display for evtloop and all childs … … 734 734 tlist.SetAccelerator(MTask::kAccDontReset|MTask::kAccDontTime); 735 735 736 MEvtLoop fillloop ;736 MEvtLoop fillloop(fTitle); 737 737 fillloop.SetParList(&parlist); 738 738 fillloop.SetDisplay(fDisplay); -
trunk/MagicSoft/Mars/mjoptim/MJOptimizeCuts.cc
r8374 r8644 85 85 #include "MLog.h" 86 86 #include "MLogManip.h" 87 #include "MStatusDisplay.h" 87 88 88 89 // Eventloop … … 138 139 Bool_t MJOptimizeCuts::RunOnOffCore(MHAlpha &histon, MHAlpha &histof, const char *fname, MFilter *filter, MAlphaFitter *fit, const char *tree) 139 140 { 141 SetTitle(Form("OptimizeCuts: %s", fname)); 142 143 if (fDisplay) 144 fDisplay->SetTitle(fTitle); 145 140 146 fLog->Separator("Preparing On/Off-optimization"); 141 147 … … 162 168 histof.InitMapping(&m, 1); 163 169 164 if (filter && filter->InheritsFrom(MFMagicCuts::Class())) 165 ((MFMagicCuts*)filter)->InitMapping(&m); 170 if (filter) 171 { 172 if (filter->InheritsFrom(MFMagicCuts::Class())) 173 ((MFMagicCuts*)filter)->InitMapping(&m); 174 else 175 { 176 *fLog << err << "ERROR - Currently only MFMagicCuts is supported." << endl; 177 return kFALSE; 178 } 179 } 166 180 167 181 parlist.AddToList(&histon); … … 249 263 Bool_t MJOptimizeCuts::RunOnCore(MHAlpha &hist, const char *fname, MFilter *filter, MAlphaFitter *fit) 250 264 { 265 SetTitle(Form("OptimizeCuts: %s", fname)); 266 267 if (fDisplay) 268 fDisplay->SetTitle(fTitle); 269 251 270 fLog->Separator("Preparing On-only-optimization"); 252 271 -
trunk/MagicSoft/Mars/mjoptim/MJOptimizeDisp.cc
r8636 r8644 60 60 #include "MLog.h" 61 61 #include "MLogManip.h" 62 #include "MStatusDisplay.h" 62 63 63 64 // eventloop … … 97 98 Bool_t MJOptimizeDisp::RunDisp(const char *fname, const char *rule, MTask *weights) 98 99 { 100 SetTitle(Form("OptimizeDisp: %s", fname)); 101 102 if (fDisplay) 103 fDisplay->SetTitle(fTitle); 104 99 105 fLog->Separator("Preparing Disp optimization"); 100 106 -
trunk/MagicSoft/Mars/mjoptim/MJOptimizeEnergy.cc
r8223 r8644 53 53 #include "MLog.h" 54 54 #include "MLogManip.h" 55 #include "MStatusDisplay.h" 55 56 56 57 // eventloop … … 86 87 Bool_t MJOptimizeEnergy::RunEnergy(const char *fname, const char *rule, MTask *weights) 87 88 { 89 SetTitle(Form("OptimizeEnergy: %s", fname)); 90 91 if (fDisplay) 92 fDisplay->SetTitle(fTitle); 93 88 94 fLog->Separator("Preparing Energy optimization"); 89 95
Note:
See TracChangeset
for help on using the changeset viewer.