Changeset 6968 for trunk/MagicSoft/Mars/mtrigger/MFTriggerPattern.cc
- Timestamp:
- 04/21/05 16:38:03 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtrigger/MFTriggerPattern.cc
r5903 r6968 50 50 MFTriggerPattern::MFTriggerPattern(const char *name, const char *title) 51 51 : fPattern(0), fMaskRequiredPrescaled(0), fMaskRequiredUnprescaled(0), 52 fMaskDeniedPrescaled(0), fMaskDeniedUnprescaled(0) 52 fMaskDeniedPrescaled(0), fMaskDeniedUnprescaled(0), fDefault(kTRUE) 53 53 { 54 54 fName = name ? name : "MFTriggerPattern"; … … 86 86 Int_t MFTriggerPattern::Process() 87 87 { 88 fResult = kFALSE;89 90 88 const Byte_t p = fPattern->GetPrescaled(); 91 89 const Byte_t u = fPattern->GetUnprescaled(); 90 if (p==0 && u==0) 91 { 92 fResult = fDefault; 93 return kTRUE; 94 } 95 96 fResult = kFALSE; 92 97 93 98 // Check whether all the bits required are ON … … 99 104 if ( (p & fMaskDeniedPrescaled) || (u & fMaskDeniedUnprescaled) ) 100 105 fResult = kFALSE; 101 106 102 107 return kTRUE; 103 108 }
Note:
See TracChangeset
for help on using the changeset viewer.