Changeset 6968
- Timestamp:
- 04/21/05 16:38:03 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6966 r6968 21 21 22 22 -*-*- END OF LINE -*-*- 23 24 2005/04/21 Thomas Bretz 25 26 * mjobs/MJCalibrateSignal.cc: 27 - fixed usage of MFTriggerPattern 28 29 * mtrigger/MFTriggerPattern.[h,cc]: 30 - allow to set default from outside in case no pattern 31 could be decoded 32 33 23 34 24 35 2005/04/20 Thomas Bretz -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r6958 r6968 498 498 499 499 MFTriggerPattern ftp; 500 ftp.SetDefault(kTRUE); 500 501 // ftp.RequireCalibration(); 501 502 ftp.DenyCalibration(); … … 581 582 582 583 MFTriggerPattern fcalib("CalibFilter"); 584 fcalib.SetDefault(kFALSE); 583 585 fcalib.RequireCalibration(); 584 586 -
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 } -
trunk/MagicSoft/Mars/mtrigger/MFTriggerPattern.h
r5903 r6968 23 23 Byte_t fMaskDeniedPrescaled; // Mask for filtering Trigger Pattern denied 24 24 Byte_t fMaskDeniedUnprescaled; // Mask for filtering Trigger Pattern denied 25 25 26 Bool_t fDefault; // Default which is used if trigger pattern has default value (p==0&&u==0) 26 27 Bool_t fResult; //! 27 28 … … 49 50 void Require(TString patt, Prescale_t prescaled=kUnPrescaled); 50 51 void Deny(TString patt, Prescale_t prescaled=kUnPrescaled); 51 52 53 void SetDefault(Bool_t b) { fDefault=b; } 54 52 55 // Low level settings. USE THESE ONLY IF YOU ARE AN EXPERT! 53 56 void SetMaskRequired(const Byte_t mask, Prescale_t prescaled=kUnPrescaled);
Note:
See TracChangeset
for help on using the changeset viewer.