Changeset 5880 for trunk/MagicSoft
- Timestamp:
- 01/18/05 12:40:11 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5877 r5880 20 20 21 21 -*-*- END OF LINE -*-*- 22 23 2005/01/18 Nicola Galante 24 25 * mtrigger/MFTriggerPattern.cc: 26 - added parentesis to ensure bitwise operators priority 27 with respect to logical operators. 28 22 29 23 30 2005/01/17 Thomas Bretz -
trunk/MagicSoft/Mars/mtrigger/MFTriggerPattern.cc
r5869 r5880 92 92 93 93 // Check whether at least one bit fits our neeeds 94 if ( p & fMaskRequiredPrescaled== fMaskRequiredPrescaled)94 if ( (p & fMaskRequiredPrescaled) == fMaskRequiredPrescaled) 95 95 fResult = kTRUE; 96 96 97 if ( u & fMaskRequiredUnprescaled== fMaskRequiredUnprescaled)97 if ( (u & fMaskRequiredUnprescaled) == fMaskRequiredUnprescaled) 98 98 fResult = kTRUE; 99 99 … … 110 110 void MFTriggerPattern::RequireTriggerLvl1(Bool_t prescaled) 111 111 { 112 prescaled ? fMaskRequiredPrescaled |= MTriggerPattern::kTriggerLvl1 : fMaskRequiredUnprescaled |= MTriggerPattern::kTriggerLvl1;112 prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kTriggerLvl1) : (fMaskRequiredUnprescaled |= MTriggerPattern::kTriggerLvl1); 113 113 } 114 114 115 115 void MFTriggerPattern::RequireTriggerLvl2(Bool_t prescaled) 116 116 { 117 prescaled ? fMaskRequiredPrescaled |= MTriggerPattern::kTriggerLvl2 : fMaskRequiredUnprescaled |= MTriggerPattern::kTriggerLvl2;117 prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kTriggerLvl2) : (fMaskRequiredUnprescaled |= MTriggerPattern::kTriggerLvl2); 118 118 } 119 119 120 120 void MFTriggerPattern::RequireCalibration(Bool_t prescaled) 121 121 { 122 prescaled ? fMaskRequiredPrescaled |= MTriggerPattern::kCalibration : fMaskRequiredUnprescaled |= MTriggerPattern::kCalibration;122 prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kCalibration) : (fMaskRequiredUnprescaled |= MTriggerPattern::kCalibration); 123 123 } 124 124 125 125 void MFTriggerPattern::RequirePedestal(Bool_t prescaled) 126 126 { 127 prescaled ? fMaskRequiredPrescaled |= MTriggerPattern::kPedestal : fMaskRequiredUnprescaled |= MTriggerPattern::kPedestal;127 prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kPedestal) : (fMaskRequiredUnprescaled |= MTriggerPattern::kPedestal); 128 128 } 129 129 130 130 void MFTriggerPattern::RequirePinDiode(Bool_t prescaled) 131 131 { 132 prescaled ? fMaskRequiredPrescaled |= MTriggerPattern::kPinDiode : fMaskRequiredUnprescaled |= MTriggerPattern::kPinDiode;132 prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kPinDiode) : (fMaskRequiredUnprescaled |= MTriggerPattern::kPinDiode); 133 133 } 134 134 … … 136 136 void MFTriggerPattern::DenyTriggerLvl1(Bool_t prescaled) 137 137 { 138 prescaled ? fMaskDeniedPrescaled |= MTriggerPattern::kTriggerLvl1 : fMaskDeniedUnprescaled |= MTriggerPattern::kTriggerLvl1;138 prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kTriggerLvl1) : (fMaskDeniedUnprescaled |= MTriggerPattern::kTriggerLvl1); 139 139 } 140 140 141 141 void MFTriggerPattern::DenyTriggerLvl2(Bool_t prescaled) 142 142 { 143 prescaled ? fMaskDeniedPrescaled |= MTriggerPattern::kTriggerLvl2 : fMaskDeniedUnprescaled |= MTriggerPattern::kTriggerLvl2;143 prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kTriggerLvl2) : (fMaskDeniedUnprescaled |= MTriggerPattern::kTriggerLvl2); 144 144 } 145 145 146 146 void MFTriggerPattern::DenyCalibration(Bool_t prescaled) 147 147 { 148 prescaled ? fMaskDeniedPrescaled |= MTriggerPattern::kCalibration : fMaskDeniedUnprescaled |= MTriggerPattern::kCalibration;148 prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kCalibration) : (fMaskDeniedUnprescaled |= MTriggerPattern::kCalibration); 149 149 } 150 150 151 151 void MFTriggerPattern::DenyPedestal(Bool_t prescaled) 152 152 { 153 prescaled ? fMaskDeniedPrescaled |= MTriggerPattern::kPedestal : fMaskDeniedUnprescaled |= MTriggerPattern::kPedestal;153 prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kPedestal) : (fMaskDeniedUnprescaled |= MTriggerPattern::kPedestal); 154 154 } 155 155 156 156 void MFTriggerPattern::DenyPinDiode(Bool_t prescaled) 157 157 { 158 prescaled ? fMaskDeniedPrescaled |= MTriggerPattern::kPinDiode : fMaskDeniedUnprescaled |= MTriggerPattern::kPinDiode;158 prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kPinDiode) : (fMaskDeniedUnprescaled |= MTriggerPattern::kPinDiode); 159 159 } 160 160 … … 181 181 void MFTriggerPattern::SetMaskRequired(const Byte_t mask, Bool_t prescaled) 182 182 { 183 prescaled ? fMaskRequiredPrescaled = mask : fMaskRequiredUnprescaled = mask;183 prescaled ? (fMaskRequiredPrescaled = mask) : (fMaskRequiredUnprescaled = mask); 184 184 } 185 185 … … 206 206 void MFTriggerPattern::SetMaskDenied(const Byte_t mask, Bool_t prescaled) 207 207 { 208 prescaled ? fMaskDeniedPrescaled = mask : fMaskDeniedUnprescaled = mask;208 prescaled ? (fMaskDeniedPrescaled = mask) : (fMaskDeniedUnprescaled = mask); 209 209 } 210 210
Note:
See TracChangeset
for help on using the changeset viewer.