Changeset 18043 for trunk/Mars/mjoptim


Ignore:
Timestamp:
12/20/14 15:38:14 (10 years ago)
Author:
tbretz
Message:
Only write the events from the test sample.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mjoptim/MJOptimizeDisp.cc

    r18042 r18043  
    235235
    236236    MFilterList flist;
     237    fPreCuts.Add(&filter);
    237238    flist.AddToList(fPreCuts);
    238239    flist.SetName("PreCuts");
     
    241242    MContinue cont(&flist);
    242243    tlist.AddToList(&cont);
     244
     245    MParameterCalc calcx("0", "CountEvents");
     246    tlist.AddToList(&calcx);
     247
     248    // FIXME: Handle fTestTrain<0
     249    MContinue contt("TMath::Odd(CountEvents.fNumExecutions)>0.5", "ContTrain");
     250    plist.AddToList(&calcx);
     251    tlist.AddToList(&contt);
    243252
    244253    TString r(rule);
     
    287296    loop2.SetDisplay(fDisplay);
    288297    loop2.SetParList(&plist);
    289     if (!oop2.Eventloop())
    290         return;
     298    if (!loop2.Eventloop())
     299        return kFALSE;
    291300
    292301    // Store result if requested
Note: See TracChangeset for help on using the changeset viewer.