Ignore:
Timestamp:
07/24/07 14:36:39 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjoptim
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjoptim/MJOptimize.cc

    r8643 r8644  
    647647
    648648    // Setup eventloop
    649     MEvtLoop evtloop;
     649    MEvtLoop evtloop(fTitle);
    650650    evtloop.SetParList(&parlist);
    651651    evtloop.SetDisplay(fDisplay); // set display for evtloop and all childs
     
    734734    tlist.SetAccelerator(MTask::kAccDontReset|MTask::kAccDontTime);
    735735
    736     MEvtLoop fillloop;
     736    MEvtLoop fillloop(fTitle);
    737737    fillloop.SetParList(&parlist);
    738738    fillloop.SetDisplay(fDisplay);
  • trunk/MagicSoft/Mars/mjoptim/MJOptimizeCuts.cc

    r8374 r8644  
    8585#include "MLog.h"
    8686#include "MLogManip.h"
     87#include "MStatusDisplay.h"
    8788
    8889// Eventloop
     
    138139Bool_t MJOptimizeCuts::RunOnOffCore(MHAlpha &histon, MHAlpha &histof, const char *fname, MFilter *filter, MAlphaFitter *fit, const char *tree)
    139140{
     141    SetTitle(Form("OptimizeCuts: %s", fname));
     142
     143    if (fDisplay)
     144        fDisplay->SetTitle(fTitle);
     145
    140146    fLog->Separator("Preparing On/Off-optimization");
    141147
     
    162168    histof.InitMapping(&m, 1);
    163169
    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    }
    166180
    167181    parlist.AddToList(&histon);
     
    249263Bool_t MJOptimizeCuts::RunOnCore(MHAlpha &hist, const char *fname, MFilter *filter, MAlphaFitter *fit)
    250264{
     265    SetTitle(Form("OptimizeCuts: %s", fname));
     266
     267    if (fDisplay)
     268        fDisplay->SetTitle(fTitle);
     269
    251270    fLog->Separator("Preparing On-only-optimization");
    252271
  • trunk/MagicSoft/Mars/mjoptim/MJOptimizeDisp.cc

    r8636 r8644  
    6060#include "MLog.h"
    6161#include "MLogManip.h"
     62#include "MStatusDisplay.h"
    6263
    6364// eventloop
     
    9798Bool_t MJOptimizeDisp::RunDisp(const char *fname, const char *rule, MTask *weights)
    9899{
     100    SetTitle(Form("OptimizeDisp: %s", fname));
     101
     102    if (fDisplay)
     103        fDisplay->SetTitle(fTitle);
     104
    99105    fLog->Separator("Preparing Disp optimization");
    100106
  • trunk/MagicSoft/Mars/mjoptim/MJOptimizeEnergy.cc

    r8223 r8644  
    5353#include "MLog.h"
    5454#include "MLogManip.h"
     55#include "MStatusDisplay.h"
    5556
    5657// eventloop
     
    8687Bool_t MJOptimizeEnergy::RunEnergy(const char *fname, const char *rule, MTask *weights)
    8788{
     89    SetTitle(Form("OptimizeEnergy: %s", fname));
     90
     91    if (fDisplay)
     92        fDisplay->SetTitle(fTitle);
     93
    8894    fLog->Separator("Preparing Energy optimization");
    8995
Note: See TracChangeset for help on using the changeset viewer.