Ignore:
Timestamp:
04/21/05 16:38:03 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtrigger/MFTriggerPattern.cc

    r5903 r6968  
    5050MFTriggerPattern::MFTriggerPattern(const char *name, const char *title)
    5151    : fPattern(0), fMaskRequiredPrescaled(0), fMaskRequiredUnprescaled(0),
    52       fMaskDeniedPrescaled(0), fMaskDeniedUnprescaled(0)
     52      fMaskDeniedPrescaled(0), fMaskDeniedUnprescaled(0), fDefault(kTRUE)
    5353{
    5454    fName  = name  ? name  : "MFTriggerPattern";
     
    8686Int_t MFTriggerPattern::Process()
    8787{
    88     fResult = kFALSE;
    89 
    9088    const Byte_t p = fPattern->GetPrescaled();
    9189    const Byte_t u = fPattern->GetUnprescaled();
     90    if (p==0 && u==0)
     91    {
     92        fResult = fDefault;
     93        return kTRUE;
     94    }
     95
     96    fResult = kFALSE;
    9297
    9398    // Check whether all the bits required are ON
     
    99104    if ( (p & fMaskDeniedPrescaled) || (u & fMaskDeniedUnprescaled) )
    100105      fResult = kFALSE;
    101    
     106
    102107    return kTRUE;
    103108}
Note: See TracChangeset for help on using the changeset viewer.