Ignore:
Timestamp:
12/13/07 14:19:38 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mtrigger
Files:
4 edited

Legend:

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

    r7170 r8787  
    1919!   Author(s): Thomas Bretz  12/2004 <mailto:tbretz@astro.uni-wuerzburg.de>
    2020!
    21 !   Copyright: MAGIC Software Development, 2004
     21!   Copyright: MAGIC Software Development, 2004-2007
    2222!
    2323\* ======================================================================== */
     
    135135}
    136136
     137void MFTriggerPattern::RequireSumTrigger(Prescale_t prescaled)
     138{
     139    prescaled==kPrescaled ? (fMaskRequiredPrescaled |= MTriggerPattern::kSumTrigger)  : (fMaskRequiredUnprescaled |= MTriggerPattern::kSumTrigger);
     140}
     141
    137142
    138143void MFTriggerPattern::DenyTriggerLvl1(Prescale_t prescaled)
     
    159164{
    160165    prescaled==kPrescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kPinDiode)    : (fMaskDeniedUnprescaled |= MTriggerPattern::kPinDiode);
     166}
     167
     168void MFTriggerPattern::DenySumTrigger(Prescale_t prescaled)
     169{
     170    prescaled==kPrescaled ? (fMaskDeniedPrescaled |= MTriggerPattern::kSumTrigger)  : (fMaskDeniedUnprescaled |= MTriggerPattern::kSumTrigger);
    161171}
    162172
     
    222232//           "PED"  : Pedestal flag
    223233//           "PIND" : Pin Diode flag
     234//           "SUMT" : Sum Trigger flag
    224235//
    225236// concatenations of these strings are allowed and considered as
     
    246257    if (patt.Contains("PIND", TString::kIgnoreCase))
    247258        RequirePinDiode(prescaled);
     259
     260    if (patt.Contains("SUMT", TString::kIgnoreCase))
     261        RequireSumTrigger(prescaled);
    248262}
    249263
     
    261275//           "PED"  : Pedestal flag
    262276//           "PIND" : Pin Diode flag
     277//           "SUMT" : Sum Trigger flag
    263278//
    264279// concatenations of these strings are allowed and considered as
     
    285300    if (patt.Contains("PIND", TString::kIgnoreCase))
    286301        DenyPinDiode(prescaled);
     302
     303    if (patt.Contains("SUMT", TString::kIgnoreCase))
     304        DenySumTrigger(prescaled);
    287305}
    288306
  • trunk/MagicSoft/Mars/mtrigger/MFTriggerPattern.h

    r6968 r8787  
    1818private:
    1919  MTriggerPattern *fPattern;        //!
    20  
     20
    2121  Byte_t fMaskRequiredPrescaled;    // Mask for filtering Trigger Pattern allowed
    2222  Byte_t fMaskRequiredUnprescaled;  // Mask for filtering Trigger Pattern allowed
     
    2626  Bool_t fDefault;                  // Default which is used if trigger pattern has default value (p==0&&u==0)
    2727  Bool_t fResult;                   //!
    28  
     28
    2929  Int_t PreProcess(MParList *pList);
    3030  Int_t Process();
    31  
     31
    3232  Bool_t IsExpressionTrue() const;
    33  
     33
    3434public:
    3535  MFTriggerPattern(const char *name=NULL, const char *title=NULL);
    3636  MFTriggerPattern(MFTriggerPattern &trigpatt);
    37    
     37
    3838  void RequireTriggerLvl1(Prescale_t prescaled=kUnPrescaled);
    3939  void RequireTriggerLvl2(Prescale_t prescaled=kUnPrescaled);
     
    4141  void RequirePedestal(Prescale_t prescaled=kUnPrescaled);
    4242  void RequirePinDiode(Prescale_t prescaled=kUnPrescaled);
    43  
     43  void RequireSumTrigger(Prescale_t prescaled=kUnPrescaled);
     44
    4445  void DenyTriggerLvl1(Prescale_t prescaled=kUnPrescaled);
    4546  void DenyTriggerLvl2(Prescale_t prescaled=kUnPrescaled);
     
    4748  void DenyPedestal(Prescale_t prescaled=kUnPrescaled);
    4849  void DenyPinDiode(Prescale_t prescaled=kUnPrescaled);
    49  
     50  void DenySumTrigger(Prescale_t prescaled=kUnPrescaled);
     51
    5052  void Require(TString patt, Prescale_t prescaled=kUnPrescaled);
    5153  void Deny(TString patt, Prescale_t prescaled=kUnPrescaled);
     
    5658  void SetMaskRequired(const Byte_t mask, Prescale_t prescaled=kUnPrescaled);
    5759  void SetMaskDenied(const Byte_t mask, Prescale_t prescaled=kUnPrescaled);
    58  
     60
    5961  ClassDef(MFTriggerPattern, 1) // A Filter for the Trigger Pattern
    6062};
    61    
     63
    6264#endif
  • trunk/MagicSoft/Mars/mtrigger/MTriggerPattern.cc

    r7170 r8787  
    1919!   Author(s): Thomas Bretz  12/2004 <mailto:nicola.galante@pi.infn.it>
    2020!
    21 !   Copyright: MAGIC Software Development, 2004
     21!   Copyright: MAGIC Software Development, 2004-2007
    2222!
    2323\* ======================================================================== */
     
    6767// BIT(3):  prescaled Pedestal Trigger
    6868// BIT(4):  prescaled Pin Diode
    69 // BIT(5):  unused
     69// BIT(5):  prescaled Sum Trigger
    7070// BIT(6):  unused
    7171// BIT(7):  unused
     
    7575// BIT(11): unprescaled Pedestal Trigger
    7676// BIT(12): unprescaled Pin Diode
    77 // BIT(13): unused
     77// BIT(13): unprescaled Sum Trigger
    7878// BIT(14): unused
    7979// BIT(15): unused
  • trunk/MagicSoft/Mars/mtrigger/MTriggerPattern.h

    r5867 r8787  
    1616        kTriggerLvl2 = BIT(2), // LUT Pseudo Size selection
    1717        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
    2020        //kUnused      = BIT(6)
    2121        //kUnused      = BIT(7)
Note: See TracChangeset for help on using the changeset viewer.