Changeset 8787 for trunk/MagicSoft/Mars/mtrigger
- Timestamp:
- 12/13/07 14:19:38 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mtrigger
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtrigger/MFTriggerPattern.cc
r7170 r8787 19 19 ! Author(s): Thomas Bretz 12/2004 <mailto:tbretz@astro.uni-wuerzburg.de> 20 20 ! 21 ! Copyright: MAGIC Software Development, 2004 21 ! Copyright: MAGIC Software Development, 2004-2007 22 22 ! 23 23 \* ======================================================================== */ … … 135 135 } 136 136 137 void MFTriggerPattern::RequireSumTrigger(Prescale_t prescaled) 138 { 139 prescaled==kPrescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kSumTrigger) : (fMaskRequiredUnprescaled |= MTriggerPattern::kSumTrigger); 140 } 141 137 142 138 143 void MFTriggerPattern::DenyTriggerLvl1(Prescale_t prescaled) … … 159 164 { 160 165 prescaled==kPrescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kPinDiode) : (fMaskDeniedUnprescaled |= MTriggerPattern::kPinDiode); 166 } 167 168 void MFTriggerPattern::DenySumTrigger(Prescale_t prescaled) 169 { 170 prescaled==kPrescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kSumTrigger) : (fMaskDeniedUnprescaled |= MTriggerPattern::kSumTrigger); 161 171 } 162 172 … … 222 232 // "PED" : Pedestal flag 223 233 // "PIND" : Pin Diode flag 234 // "SUMT" : Sum Trigger flag 224 235 // 225 236 // concatenations of these strings are allowed and considered as … … 246 257 if (patt.Contains("PIND", TString::kIgnoreCase)) 247 258 RequirePinDiode(prescaled); 259 260 if (patt.Contains("SUMT", TString::kIgnoreCase)) 261 RequireSumTrigger(prescaled); 248 262 } 249 263 … … 261 275 // "PED" : Pedestal flag 262 276 // "PIND" : Pin Diode flag 277 // "SUMT" : Sum Trigger flag 263 278 // 264 279 // concatenations of these strings are allowed and considered as … … 285 300 if (patt.Contains("PIND", TString::kIgnoreCase)) 286 301 DenyPinDiode(prescaled); 302 303 if (patt.Contains("SUMT", TString::kIgnoreCase)) 304 DenySumTrigger(prescaled); 287 305 } 288 306 -
trunk/MagicSoft/Mars/mtrigger/MFTriggerPattern.h
r6968 r8787 18 18 private: 19 19 MTriggerPattern *fPattern; //! 20 20 21 21 Byte_t fMaskRequiredPrescaled; // Mask for filtering Trigger Pattern allowed 22 22 Byte_t fMaskRequiredUnprescaled; // Mask for filtering Trigger Pattern allowed … … 26 26 Bool_t fDefault; // Default which is used if trigger pattern has default value (p==0&&u==0) 27 27 Bool_t fResult; //! 28 28 29 29 Int_t PreProcess(MParList *pList); 30 30 Int_t Process(); 31 31 32 32 Bool_t IsExpressionTrue() const; 33 33 34 34 public: 35 35 MFTriggerPattern(const char *name=NULL, const char *title=NULL); 36 36 MFTriggerPattern(MFTriggerPattern &trigpatt); 37 37 38 38 void RequireTriggerLvl1(Prescale_t prescaled=kUnPrescaled); 39 39 void RequireTriggerLvl2(Prescale_t prescaled=kUnPrescaled); … … 41 41 void RequirePedestal(Prescale_t prescaled=kUnPrescaled); 42 42 void RequirePinDiode(Prescale_t prescaled=kUnPrescaled); 43 43 void RequireSumTrigger(Prescale_t prescaled=kUnPrescaled); 44 44 45 void DenyTriggerLvl1(Prescale_t prescaled=kUnPrescaled); 45 46 void DenyTriggerLvl2(Prescale_t prescaled=kUnPrescaled); … … 47 48 void DenyPedestal(Prescale_t prescaled=kUnPrescaled); 48 49 void DenyPinDiode(Prescale_t prescaled=kUnPrescaled); 49 50 void DenySumTrigger(Prescale_t prescaled=kUnPrescaled); 51 50 52 void Require(TString patt, Prescale_t prescaled=kUnPrescaled); 51 53 void Deny(TString patt, Prescale_t prescaled=kUnPrescaled); … … 56 58 void SetMaskRequired(const Byte_t mask, Prescale_t prescaled=kUnPrescaled); 57 59 void SetMaskDenied(const Byte_t mask, Prescale_t prescaled=kUnPrescaled); 58 60 59 61 ClassDef(MFTriggerPattern, 1) // A Filter for the Trigger Pattern 60 62 }; 61 63 62 64 #endif -
trunk/MagicSoft/Mars/mtrigger/MTriggerPattern.cc
r7170 r8787 19 19 ! Author(s): Thomas Bretz 12/2004 <mailto:nicola.galante@pi.infn.it> 20 20 ! 21 ! Copyright: MAGIC Software Development, 2004 21 ! Copyright: MAGIC Software Development, 2004-2007 22 22 ! 23 23 \* ======================================================================== */ … … 67 67 // BIT(3): prescaled Pedestal Trigger 68 68 // BIT(4): prescaled Pin Diode 69 // BIT(5): unused69 // BIT(5): prescaled Sum Trigger 70 70 // BIT(6): unused 71 71 // BIT(7): unused … … 75 75 // BIT(11): unprescaled Pedestal Trigger 76 76 // BIT(12): unprescaled Pin Diode 77 // BIT(13): un used77 // BIT(13): unprescaled Sum Trigger 78 78 // BIT(14): unused 79 79 // BIT(15): unused -
trunk/MagicSoft/Mars/mtrigger/MTriggerPattern.h
r5867 r8787 16 16 kTriggerLvl2 = BIT(2), // LUT Pseudo Size selection 17 17 kPedestal = BIT(3), 18 kPinDiode = BIT(4) 19 //kUnused = BIT(5)18 kPinDiode = BIT(4), 19 kSumTrigger = BIT(5) // Flag for an event taken with sum trigger 20 20 //kUnused = BIT(6) 21 21 //kUnused = BIT(7)
Note:
See TracChangeset
for help on using the changeset viewer.