Changeset 9857 for trunk/Mars


Ignore:
Timestamp:
08/13/10 11:38:10 (14 years ago)
Author:
tbretz
Message:
If the number of selected events in MFEventSelector is negative, select all events.
Location:
trunk/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/Changelog

    r9856 r9857  
    3131   * mhist/MHHadronness.cc:
    3232     - fixed min/max of the intgral histogram
     33
     34   * mfbase/MFEventSelector.cc:
     35     - if the number of events to be selected is negative select all events
    3336
    3437
  • trunk/Mars/mfbase/MFEventSelector.cc

    r7804 r9857  
    150150    }
    151151
     152    if (fNumSelectEvts<0)
     153    {
     154        fSelRatio = 1;
     155        *fLog << inf << "No selection will be done - all events selected." << endl;
     156        return kTRUE;
     157    }
     158
    152159    // Calculate selection probability
    153160    fSelRatio = (Double_t)fNumSelectEvts/fNumTotalEvts;
    154161
    155     *fLog << inf << "MFEventSelector:  Selection probability = " << fNumSelectEvts;
    156     *fLog << "/" << fNumTotalEvts << " = " << Form("%.2f", fSelRatio) << endl;
     162    *fLog << inf << "Selection probability = " << fNumSelectEvts << "/";
     163    *fLog << fNumTotalEvts << " = " << Form("%.2f", fSelRatio) << endl;
    157164
    158165    return kTRUE;
Note: See TracChangeset for help on using the changeset viewer.