Ignore:
Timestamp:
01/18/05 12:40:11 (20 years ago)
Author:
galante
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r5869 r5880  
    9292
    9393    // Check whether at least one bit fits our neeeds
    94     if (p & fMaskRequiredPrescaled == fMaskRequiredPrescaled)
     94    if ( (p & fMaskRequiredPrescaled) == fMaskRequiredPrescaled)
    9595        fResult = kTRUE;
    9696
    97     if (u & fMaskRequiredUnprescaled == fMaskRequiredUnprescaled)
     97    if ( (u & fMaskRequiredUnprescaled) == fMaskRequiredUnprescaled)
    9898        fResult = kTRUE;
    9999
     
    110110void MFTriggerPattern::RequireTriggerLvl1(Bool_t prescaled)
    111111{
    112     prescaled ? fMaskRequiredPrescaled |= MTriggerPattern::kTriggerLvl1 : fMaskRequiredUnprescaled |= MTriggerPattern::kTriggerLvl1;
     112    prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kTriggerLvl1) : (fMaskRequiredUnprescaled |= MTriggerPattern::kTriggerLvl1);
    113113}
    114114
    115115void MFTriggerPattern::RequireTriggerLvl2(Bool_t prescaled)
    116116{
    117     prescaled ? fMaskRequiredPrescaled |= MTriggerPattern::kTriggerLvl2 : fMaskRequiredUnprescaled |= MTriggerPattern::kTriggerLvl2;
     117    prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kTriggerLvl2) : (fMaskRequiredUnprescaled |= MTriggerPattern::kTriggerLvl2);
    118118}
    119119
    120120void MFTriggerPattern::RequireCalibration(Bool_t prescaled)
    121121{
    122     prescaled ? fMaskRequiredPrescaled |= MTriggerPattern::kCalibration : fMaskRequiredUnprescaled |= MTriggerPattern::kCalibration;
     122    prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kCalibration) : (fMaskRequiredUnprescaled |= MTriggerPattern::kCalibration);
    123123}
    124124
    125125void MFTriggerPattern::RequirePedestal(Bool_t prescaled)
    126126{
    127     prescaled ? fMaskRequiredPrescaled |= MTriggerPattern::kPedestal    : fMaskRequiredUnprescaled |= MTriggerPattern::kPedestal;
     127    prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kPedestal)    : (fMaskRequiredUnprescaled |= MTriggerPattern::kPedestal);
    128128}
    129129
    130130void MFTriggerPattern::RequirePinDiode(Bool_t prescaled)
    131131{
    132     prescaled ? fMaskRequiredPrescaled |= MTriggerPattern::kPinDiode    : fMaskRequiredUnprescaled |= MTriggerPattern::kPinDiode;
     132    prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kPinDiode)    : (fMaskRequiredUnprescaled |= MTriggerPattern::kPinDiode);
    133133}
    134134
     
    136136void MFTriggerPattern::DenyTriggerLvl1(Bool_t prescaled)
    137137{
    138     prescaled ? fMaskDeniedPrescaled |= MTriggerPattern::kTriggerLvl1 : fMaskDeniedUnprescaled |= MTriggerPattern::kTriggerLvl1;
     138    prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kTriggerLvl1) : (fMaskDeniedUnprescaled |= MTriggerPattern::kTriggerLvl1);
    139139}
    140140
    141141void MFTriggerPattern::DenyTriggerLvl2(Bool_t prescaled)
    142142{
    143     prescaled ? fMaskDeniedPrescaled |= MTriggerPattern::kTriggerLvl2 : fMaskDeniedUnprescaled |= MTriggerPattern::kTriggerLvl2;
     143    prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kTriggerLvl2) : (fMaskDeniedUnprescaled |= MTriggerPattern::kTriggerLvl2);
    144144}
    145145
    146146void MFTriggerPattern::DenyCalibration(Bool_t prescaled)
    147147{
    148     prescaled ? fMaskDeniedPrescaled |= MTriggerPattern::kCalibration : fMaskDeniedUnprescaled |= MTriggerPattern::kCalibration;
     148    prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kCalibration) : (fMaskDeniedUnprescaled |= MTriggerPattern::kCalibration);
    149149}
    150150
    151151void MFTriggerPattern::DenyPedestal(Bool_t prescaled)
    152152{
    153     prescaled ? fMaskDeniedPrescaled |= MTriggerPattern::kPedestal    : fMaskDeniedUnprescaled |= MTriggerPattern::kPedestal;
     153    prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kPedestal)    : (fMaskDeniedUnprescaled |= MTriggerPattern::kPedestal);
    154154}
    155155
    156156void MFTriggerPattern::DenyPinDiode(Bool_t prescaled)
    157157{
    158     prescaled ? fMaskDeniedPrescaled |= MTriggerPattern::kPinDiode    : fMaskDeniedUnprescaled |= MTriggerPattern::kPinDiode;
     158    prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kPinDiode)    : (fMaskDeniedUnprescaled |= MTriggerPattern::kPinDiode);
    159159}
    160160
     
    181181void MFTriggerPattern::SetMaskRequired(const Byte_t mask, Bool_t prescaled)
    182182{
    183     prescaled ? fMaskRequiredPrescaled = mask : fMaskRequiredUnprescaled = mask;
     183    prescaled ? (fMaskRequiredPrescaled = mask) : (fMaskRequiredUnprescaled = mask);
    184184}
    185185
     
    206206void MFTriggerPattern::SetMaskDenied(const Byte_t mask, Bool_t prescaled)
    207207{
    208     prescaled ? fMaskDeniedPrescaled  = mask : fMaskDeniedUnprescaled  = mask;
     208    prescaled ? (fMaskDeniedPrescaled  = mask) : (fMaskDeniedUnprescaled  = mask);
    209209}
    210210
Note: See TracChangeset for help on using the changeset viewer.