Changeset 5900 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
01/19/05 12:39:58 (20 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5899 r5900  
    2020
    2121                                                 -*-*- END OF LINE -*-*-
     22
     23 2205/01/19 Abelardo Moralejo
     24
     25   * mtrigger/MFTriggerPattern.[cc,h]
     26     - Changed Bool_t arguments of all setters to new type Prescale_t
     27       defined by N. Galante (see below)
    2228
    2329 2205/01/19 Nicola Galante
  • trunk/MagicSoft/Mars/mtrigger/MFTriggerPattern.cc

    r5897 r5900  
    103103}
    104104
    105 void MFTriggerPattern::RequireTriggerLvl1(Bool_t prescaled)
     105void MFTriggerPattern::RequireTriggerLvl1(Prescale_t prescaled)
    106106{
    107107    prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kTriggerLvl1) : (fMaskRequiredUnprescaled |= MTriggerPattern::kTriggerLvl1);
    108108}
    109109
    110 void MFTriggerPattern::RequireTriggerLvl2(Bool_t prescaled)
     110void MFTriggerPattern::RequireTriggerLvl2(Prescale_t prescaled)
    111111{
    112112    prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kTriggerLvl2) : (fMaskRequiredUnprescaled |= MTriggerPattern::kTriggerLvl2);
    113113}
    114114
    115 void MFTriggerPattern::RequireCalibration(Bool_t prescaled)
     115void MFTriggerPattern::RequireCalibration(Prescale_t prescaled)
    116116{
    117117    prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kCalibration) : (fMaskRequiredUnprescaled |= MTriggerPattern::kCalibration);
    118118}
    119119
    120 void MFTriggerPattern::RequirePedestal(Bool_t prescaled)
     120void MFTriggerPattern::RequirePedestal(Prescale_t prescaled)
    121121{
    122122    prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kPedestal)    : (fMaskRequiredUnprescaled |= MTriggerPattern::kPedestal);
    123123}
    124124
    125 void MFTriggerPattern::RequirePinDiode(Bool_t prescaled)
     125void MFTriggerPattern::RequirePinDiode(Prescale_t prescaled)
    126126{
    127127    prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kPinDiode)    : (fMaskRequiredUnprescaled |= MTriggerPattern::kPinDiode);
     
    129129
    130130
    131 void MFTriggerPattern::DenyTriggerLvl1(Bool_t prescaled)
     131void MFTriggerPattern::DenyTriggerLvl1(Prescale_t prescaled)
    132132{
    133133    prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kTriggerLvl1) : (fMaskDeniedUnprescaled |= MTriggerPattern::kTriggerLvl1);
    134134}
    135135
    136 void MFTriggerPattern::DenyTriggerLvl2(Bool_t prescaled)
     136void MFTriggerPattern::DenyTriggerLvl2(Prescale_t prescaled)
    137137{
    138138    prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kTriggerLvl2) : (fMaskDeniedUnprescaled |= MTriggerPattern::kTriggerLvl2);
    139139}
    140140
    141 void MFTriggerPattern::DenyCalibration(Bool_t prescaled)
     141void MFTriggerPattern::DenyCalibration(Prescale_t prescaled)
    142142{
    143143    prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kCalibration) : (fMaskDeniedUnprescaled |= MTriggerPattern::kCalibration);
    144144}
    145145
    146 void MFTriggerPattern::DenyPedestal(Bool_t prescaled)
     146void MFTriggerPattern::DenyPedestal(Prescale_t prescaled)
    147147{
    148148    prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kPedestal)    : (fMaskDeniedUnprescaled |= MTriggerPattern::kPedestal);
    149149}
    150150
    151 void MFTriggerPattern::DenyPinDiode(Bool_t prescaled)
     151void MFTriggerPattern::DenyPinDiode(Prescale_t prescaled)
    152152{
    153153    prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kPinDiode)    : (fMaskDeniedUnprescaled |= MTriggerPattern::kPinDiode);
     
    174174//       0101 1101  -->  4+1=5=0x5 8+4+1=13=0xd --> 0x5d
    175175//
    176 void MFTriggerPattern::SetMaskRequired(const Byte_t mask, Bool_t prescaled)
     176void MFTriggerPattern::SetMaskRequired(const Byte_t mask, Prescale_t prescaled)
    177177{
    178178    prescaled ? (fMaskRequiredPrescaled = mask) : (fMaskRequiredUnprescaled = mask);
     
    199199//       0101 1101  -->  4+1=5=0x5 8+4+1=13=0xd --> 0x5d
    200200//
    201 void MFTriggerPattern::SetMaskDenied(const Byte_t mask, Bool_t prescaled)
     201void MFTriggerPattern::SetMaskDenied(const Byte_t mask, Prescale_t prescaled)
    202202{
    203203    prescaled ? (fMaskDeniedPrescaled  = mask) : (fMaskDeniedUnprescaled  = mask);
     
    223223// {LT1,CAL,LT2} but not events with flags {LT1,CAL}.
    224224//
    225 void MFTriggerPattern::Require(TString patt, Bool_t prescaled)
     225void MFTriggerPattern::Require(TString patt, Prescale_t prescaled)
    226226{
    227227    if (patt.Contains("LT1", TString::kIgnoreCase))
     
    262262// {LT1,CAL,LT2} but not events with flags {LT1,CAL}.
    263263//
    264 void MFTriggerPattern::Deny(TString patt, Bool_t prescaled)
     264void MFTriggerPattern::Deny(TString patt, Prescale_t prescaled)
    265265{
    266266    if (patt.Contains("LT1", TString::kIgnoreCase))
  • trunk/MagicSoft/Mars/mtrigger/MFTriggerPattern.h

    r5899 r5900  
    3333  MFTriggerPattern(MFTriggerPattern &trigpatt);
    3434   
    35   void RequireTriggerLvl1(Bool_t prescaled=kUnPrescaled);
    36   void RequireTriggerLvl2(Bool_t prescaled=kUnPrescaled);
    37   void RequireCalibration(Bool_t prescaled=kUnPrescaled);
    38   void RequirePedestal(Bool_t prescaled=kUnPrescaled);
    39   void RequirePinDiode(Bool_t prescaled=kUnPrescaled);
     35  void RequireTriggerLvl1(Prescale_t prescaled=kUnPrescaled);
     36  void RequireTriggerLvl2(Prescale_t prescaled=kUnPrescaled);
     37  void RequireCalibration(Prescale_t prescaled=kUnPrescaled);
     38  void RequirePedestal(Prescale_t prescaled=kUnPrescaled);
     39  void RequirePinDiode(Prescale_t prescaled=kUnPrescaled);
    4040 
    41   void DenyTriggerLvl1(Bool_t prescaled=kUnPrescaled);
    42   void DenyTriggerLvl2(Bool_t prescaled=kUnPrescaled);
    43   void DenyCalibration(Bool_t prescaled=kUnPrescaled);
    44   void DenyPedestal(Bool_t prescaled=kUnPrescaled);
    45   void DenyPinDiode(Bool_t prescaled=kUnPrescaled);
     41  void DenyTriggerLvl1(Prescale_t prescaled=kUnPrescaled);
     42  void DenyTriggerLvl2(Prescale_t prescaled=kUnPrescaled);
     43  void DenyCalibration(Prescale_t prescaled=kUnPrescaled);
     44  void DenyPedestal(Prescale_t prescaled=kUnPrescaled);
     45  void DenyPinDiode(Prescale_t prescaled=kUnPrescaled);
    4646 
    47   void Require(TString patt, Bool_t prescaled=kUnPrescaled);
    48   void Deny(TString patt, Bool_t prescaled=kUnPrescaled);
     47  void Require(TString patt, Prescale_t prescaled=kUnPrescaled);
     48  void Deny(TString patt, Prescale_t prescaled=kUnPrescaled);
    4949 
    5050  // Low level settings. USE THESE ONLY IF YOU ARE AN EXPERT!
    51   void SetMaskRequired(const Byte_t mask, Bool_t prescaled=kUnPrescaled);
    52   void SetMaskDenied(const Byte_t mask, Bool_t prescaled=kUnPrescaled);
     51  void SetMaskRequired(const Byte_t mask, Prescale_t prescaled=kUnPrescaled);
     52  void SetMaskDenied(const Byte_t mask, Prescale_t prescaled=kUnPrescaled);
    5353 
    5454  ClassDef(MFTriggerPattern, 1) // A Filter for the Trigger Pattern
Note: See TracChangeset for help on using the changeset viewer.