Changeset 5903 for trunk/MagicSoft/Mars/mtrigger
- Timestamp:
- 01/19/05 14:44:48 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mtrigger
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtrigger/MFTriggerPattern.cc
r5900 r5903 92 92 93 93 // Check whether all the bits required are ON 94 if ( ((p & fMaskRequiredPrescaled) == fMaskRequiredPrescaled)95 &&((u & fMaskRequiredUnprescaled) == fMaskRequiredUnprescaled))94 if ( ((p & fMaskRequiredPrescaled) == fMaskRequiredPrescaled) && 95 ((u & fMaskRequiredUnprescaled) == fMaskRequiredUnprescaled)) 96 96 fResult = kTRUE; 97 97 … … 105 105 void MFTriggerPattern::RequireTriggerLvl1(Prescale_t prescaled) 106 106 { 107 prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kTriggerLvl1) : (fMaskRequiredUnprescaled |= MTriggerPattern::kTriggerLvl1);107 prescaled==kPrescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kTriggerLvl1) : (fMaskRequiredUnprescaled |= MTriggerPattern::kTriggerLvl1); 108 108 } 109 109 110 110 void MFTriggerPattern::RequireTriggerLvl2(Prescale_t prescaled) 111 111 { 112 prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kTriggerLvl2) : (fMaskRequiredUnprescaled |= MTriggerPattern::kTriggerLvl2);112 prescaled==kPrescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kTriggerLvl2) : (fMaskRequiredUnprescaled |= MTriggerPattern::kTriggerLvl2); 113 113 } 114 114 115 115 void MFTriggerPattern::RequireCalibration(Prescale_t prescaled) 116 116 { 117 prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kCalibration) : (fMaskRequiredUnprescaled |= MTriggerPattern::kCalibration);117 prescaled==kPrescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kCalibration) : (fMaskRequiredUnprescaled |= MTriggerPattern::kCalibration); 118 118 } 119 119 120 120 void MFTriggerPattern::RequirePedestal(Prescale_t prescaled) 121 121 { 122 prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kPedestal) : (fMaskRequiredUnprescaled |= MTriggerPattern::kPedestal);122 prescaled==kPrescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kPedestal) : (fMaskRequiredUnprescaled |= MTriggerPattern::kPedestal); 123 123 } 124 124 125 125 void MFTriggerPattern::RequirePinDiode(Prescale_t prescaled) 126 126 { 127 prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kPinDiode) : (fMaskRequiredUnprescaled |= MTriggerPattern::kPinDiode);127 prescaled==kPrescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kPinDiode) : (fMaskRequiredUnprescaled |= MTriggerPattern::kPinDiode); 128 128 } 129 129 … … 131 131 void MFTriggerPattern::DenyTriggerLvl1(Prescale_t prescaled) 132 132 { 133 prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kTriggerLvl1) : (fMaskDeniedUnprescaled |= MTriggerPattern::kTriggerLvl1);133 prescaled==kPrescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kTriggerLvl1) : (fMaskDeniedUnprescaled |= MTriggerPattern::kTriggerLvl1); 134 134 } 135 135 136 136 void MFTriggerPattern::DenyTriggerLvl2(Prescale_t prescaled) 137 137 { 138 prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kTriggerLvl2) : (fMaskDeniedUnprescaled |= MTriggerPattern::kTriggerLvl2);138 prescaled==kPrescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kTriggerLvl2) : (fMaskDeniedUnprescaled |= MTriggerPattern::kTriggerLvl2); 139 139 } 140 140 141 141 void MFTriggerPattern::DenyCalibration(Prescale_t prescaled) 142 142 { 143 prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kCalibration) : (fMaskDeniedUnprescaled |= MTriggerPattern::kCalibration);143 prescaled==kPrescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kCalibration) : (fMaskDeniedUnprescaled |= MTriggerPattern::kCalibration); 144 144 } 145 145 146 146 void MFTriggerPattern::DenyPedestal(Prescale_t prescaled) 147 147 { 148 prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kPedestal) : (fMaskDeniedUnprescaled |= MTriggerPattern::kPedestal);148 prescaled==kPrescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kPedestal) : (fMaskDeniedUnprescaled |= MTriggerPattern::kPedestal); 149 149 } 150 150 151 151 void MFTriggerPattern::DenyPinDiode(Prescale_t prescaled) 152 152 { 153 prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kPinDiode) : (fMaskDeniedUnprescaled |= MTriggerPattern::kPinDiode);153 prescaled==kPrescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kPinDiode) : (fMaskDeniedUnprescaled |= MTriggerPattern::kPinDiode); 154 154 } 155 155 … … 176 176 void MFTriggerPattern::SetMaskRequired(const Byte_t mask, Prescale_t prescaled) 177 177 { 178 prescaled ? (fMaskRequiredPrescaled = mask) : (fMaskRequiredUnprescaled = mask);178 prescaled==kPrescaled ? (fMaskRequiredPrescaled = mask) : (fMaskRequiredUnprescaled = mask); 179 179 } 180 180 … … 201 201 void MFTriggerPattern::SetMaskDenied(const Byte_t mask, Prescale_t prescaled) 202 202 { 203 prescaled ? (fMaskDeniedPrescaled = mask) : (fMaskDeniedUnprescaled = mask);203 prescaled==kPrescaled ? (fMaskDeniedPrescaled = mask) : (fMaskDeniedUnprescaled = mask); 204 204 } 205 205 -
trunk/MagicSoft/Mars/mtrigger/MFTriggerPattern.h
r5900 r5903 10 10 class MFTriggerPattern : public MFilter 11 11 { 12 private: 12 public: 13 enum Prescale_t { 14 kUnPrescaled, 15 kPrescaled 16 }; 17 18 private: 13 19 MTriggerPattern *fPattern; //! 14 20 … … 25 31 Bool_t IsExpressionTrue() const; 26 32 27 public: 28 enum Prescale_t { 29 kUnPrescaled = kFALSE, 30 kPrescaled = kTRUE }; 31 33 public: 32 34 MFTriggerPattern(const char *name=NULL, const char *title=NULL); 33 35 MFTriggerPattern(MFTriggerPattern &trigpatt);
Note:
See TracChangeset
for help on using the changeset viewer.