Changeset 5900
- Timestamp:
- 01/19/05 12:39:58 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5899 r5900 20 20 21 21 -*-*- 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) 22 28 23 29 2205/01/19 Nicola Galante -
trunk/MagicSoft/Mars/mtrigger/MFTriggerPattern.cc
r5897 r5900 103 103 } 104 104 105 void MFTriggerPattern::RequireTriggerLvl1( Bool_t prescaled)105 void MFTriggerPattern::RequireTriggerLvl1(Prescale_t prescaled) 106 106 { 107 107 prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kTriggerLvl1) : (fMaskRequiredUnprescaled |= MTriggerPattern::kTriggerLvl1); 108 108 } 109 109 110 void MFTriggerPattern::RequireTriggerLvl2( Bool_t prescaled)110 void MFTriggerPattern::RequireTriggerLvl2(Prescale_t prescaled) 111 111 { 112 112 prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kTriggerLvl2) : (fMaskRequiredUnprescaled |= MTriggerPattern::kTriggerLvl2); 113 113 } 114 114 115 void MFTriggerPattern::RequireCalibration( Bool_t prescaled)115 void MFTriggerPattern::RequireCalibration(Prescale_t prescaled) 116 116 { 117 117 prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kCalibration) : (fMaskRequiredUnprescaled |= MTriggerPattern::kCalibration); 118 118 } 119 119 120 void MFTriggerPattern::RequirePedestal( Bool_t prescaled)120 void MFTriggerPattern::RequirePedestal(Prescale_t prescaled) 121 121 { 122 122 prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kPedestal) : (fMaskRequiredUnprescaled |= MTriggerPattern::kPedestal); 123 123 } 124 124 125 void MFTriggerPattern::RequirePinDiode( Bool_t prescaled)125 void MFTriggerPattern::RequirePinDiode(Prescale_t prescaled) 126 126 { 127 127 prescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kPinDiode) : (fMaskRequiredUnprescaled |= MTriggerPattern::kPinDiode); … … 129 129 130 130 131 void MFTriggerPattern::DenyTriggerLvl1( Bool_t prescaled)131 void MFTriggerPattern::DenyTriggerLvl1(Prescale_t prescaled) 132 132 { 133 133 prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kTriggerLvl1) : (fMaskDeniedUnprescaled |= MTriggerPattern::kTriggerLvl1); 134 134 } 135 135 136 void MFTriggerPattern::DenyTriggerLvl2( Bool_t prescaled)136 void MFTriggerPattern::DenyTriggerLvl2(Prescale_t prescaled) 137 137 { 138 138 prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kTriggerLvl2) : (fMaskDeniedUnprescaled |= MTriggerPattern::kTriggerLvl2); 139 139 } 140 140 141 void MFTriggerPattern::DenyCalibration( Bool_t prescaled)141 void MFTriggerPattern::DenyCalibration(Prescale_t prescaled) 142 142 { 143 143 prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kCalibration) : (fMaskDeniedUnprescaled |= MTriggerPattern::kCalibration); 144 144 } 145 145 146 void MFTriggerPattern::DenyPedestal( Bool_t prescaled)146 void MFTriggerPattern::DenyPedestal(Prescale_t prescaled) 147 147 { 148 148 prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kPedestal) : (fMaskDeniedUnprescaled |= MTriggerPattern::kPedestal); 149 149 } 150 150 151 void MFTriggerPattern::DenyPinDiode( Bool_t prescaled)151 void MFTriggerPattern::DenyPinDiode(Prescale_t prescaled) 152 152 { 153 153 prescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kPinDiode) : (fMaskDeniedUnprescaled |= MTriggerPattern::kPinDiode); … … 174 174 // 0101 1101 --> 4+1=5=0x5 8+4+1=13=0xd --> 0x5d 175 175 // 176 void MFTriggerPattern::SetMaskRequired(const Byte_t mask, Bool_t prescaled)176 void MFTriggerPattern::SetMaskRequired(const Byte_t mask, Prescale_t prescaled) 177 177 { 178 178 prescaled ? (fMaskRequiredPrescaled = mask) : (fMaskRequiredUnprescaled = mask); … … 199 199 // 0101 1101 --> 4+1=5=0x5 8+4+1=13=0xd --> 0x5d 200 200 // 201 void MFTriggerPattern::SetMaskDenied(const Byte_t mask, Bool_t prescaled)201 void MFTriggerPattern::SetMaskDenied(const Byte_t mask, Prescale_t prescaled) 202 202 { 203 203 prescaled ? (fMaskDeniedPrescaled = mask) : (fMaskDeniedUnprescaled = mask); … … 223 223 // {LT1,CAL,LT2} but not events with flags {LT1,CAL}. 224 224 // 225 void MFTriggerPattern::Require(TString patt, Bool_t prescaled)225 void MFTriggerPattern::Require(TString patt, Prescale_t prescaled) 226 226 { 227 227 if (patt.Contains("LT1", TString::kIgnoreCase)) … … 262 262 // {LT1,CAL,LT2} but not events with flags {LT1,CAL}. 263 263 // 264 void MFTriggerPattern::Deny(TString patt, Bool_t prescaled)264 void MFTriggerPattern::Deny(TString patt, Prescale_t prescaled) 265 265 { 266 266 if (patt.Contains("LT1", TString::kIgnoreCase)) -
trunk/MagicSoft/Mars/mtrigger/MFTriggerPattern.h
r5899 r5900 33 33 MFTriggerPattern(MFTriggerPattern &trigpatt); 34 34 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); 40 40 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); 46 46 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); 49 49 50 50 // 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); 53 53 54 54 ClassDef(MFTriggerPattern, 1) // A Filter for the Trigger Pattern
Note:
See TracChangeset
for help on using the changeset viewer.