Ignore:
Timestamp:
08/19/07 22:40:04 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8671 r8679  
    6666// histograms
    6767#include "../mhflux/MHEnergyEst.h"
     68#include "../mtools/MChisqEval.h"
    6869
    6970// tasks
     
    108109    MHMatrix m("M");
    109110    AddRulesToMatrix(m);
     111    const Int_t map = m.AddColumn("MMcEvt.fEnergy");
    110112    parlist.AddToList(&m);
    111113
     
    136138        fill.SetWeight();
    137139
     140    MChisqEval eval;
     141    eval.SetY1(fOptimLog?Form("log10(MEnergyEst.fVal/M[%d])", map):Form("MEnergyEst.fVal-M[%d]", map));
     142    if (weights)
     143        eval.SetNameWeight();
     144
    138145    MMatrixLoop loop(&m);
    139146
     
    143150        tasklist.AddToList(weights);
    144151    tasklist.AddToList(&fill);
     152    tasklist.AddToList(&eval);
    145153
    146154    // Optimize with the tasklist in this parameterlist
Note: See TracChangeset for help on using the changeset viewer.