Ignore:
Timestamp:
04/12/05 17:05:49 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
2 edited

Legend:

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

    r6924 r6932  
    109109#include "MFilterList.h"
    110110#include "../mfilter/MFMagicCuts.h"
     111#include "../mfilter/MFMagicCuts2.h"
    111112#include "MContinue.h"
    112113#include "MGeomCamMagic.h"
     
    333334void MJOptimize::AddPreCut(const char *rule)
    334335{
    335     fPreCuts.Add(new MF(rule));
     336    MFilter *f = new MF(rule);
     337    f->SetBit(kCanDelete);
     338    AddPreCut(f);
     339}
     340
     341//------------------------------------------------------------------------
     342//
     343// Add a cut which is used to fill the matrix. If kCanDelete is set
     344// MJOptimize takes the ownership.
     345//
     346void MJOptimize::AddPreCut(MFilter *f)
     347{
     348    fPreCuts.Add(f);
    336349}
    337350
     
    823836    if (filter && filter->InheritsFrom(MFMagicCuts::Class()))
    824837        ((MFMagicCuts*)filter)->InitMapping(&m);
     838    if (filter && filter->InheritsFrom(MFMagicCuts2::Class()))
     839        ((MFMagicCuts2*)filter)->InitMapping(&m);
    825840
    826841    MReadTree read("Events");
     
    898913    if (filter && filter->InheritsFrom(MFMagicCuts::Class()))
    899914        ((MFMagicCuts*)filter)->InitMapping(&m);
     915    if (filter && filter->InheritsFrom(MFMagicCuts2::Class()))
     916        ((MFMagicCuts2*)filter)->InitMapping(&m);
    900917
    901918    parlist.AddToList(&histon);
     
    10251042        return kFALSE;
    10261043
     1044    hist.Print();
     1045
    10271046    TObjArray cont;
    10281047    cont.Add(&est);
  • trunk/MagicSoft/Mars/mjobs/MJOptimize.h

    r6924 r6932  
    101101    void AddFilter(const char *rule);
    102102    void AddPreCut(const char *rule);
     103    void AddPreCut(MFilter *f);
    103104
    104105    // Steering of optimization
Note: See TracChangeset for help on using the changeset viewer.