Changeset 9857 for trunk/Mars/mfbase


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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.