source: trunk/MagicSoft/Mars/mtrigger/MFTriggerPattern.h@ 6121

Last change on this file since 6121 was 5903, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.9 KB
Line 
1#ifndef MARS_MFTriggerPattern
2#define MARS_MFTriggerPattern
3
4#ifndef MARS_MFilter
5#include "MFilter.h"
6#endif
7
8class MTriggerPattern;
9
10class MFTriggerPattern : public MFilter
11{
12public:
13 enum Prescale_t {
14 kUnPrescaled,
15 kPrescaled
16 };
17
18private:
19 MTriggerPattern *fPattern; //!
20
21 Byte_t fMaskRequiredPrescaled; // Mask for filtering Trigger Pattern allowed
22 Byte_t fMaskRequiredUnprescaled; // Mask for filtering Trigger Pattern allowed
23 Byte_t fMaskDeniedPrescaled; // Mask for filtering Trigger Pattern denied
24 Byte_t fMaskDeniedUnprescaled; // Mask for filtering Trigger Pattern denied
25
26 Bool_t fResult; //!
27
28 Int_t PreProcess(MParList *pList);
29 Int_t Process();
30
31 Bool_t IsExpressionTrue() const;
32
33public:
34 MFTriggerPattern(const char *name=NULL, const char *title=NULL);
35 MFTriggerPattern(MFTriggerPattern &trigpatt);
36
37 void RequireTriggerLvl1(Prescale_t prescaled=kUnPrescaled);
38 void RequireTriggerLvl2(Prescale_t prescaled=kUnPrescaled);
39 void RequireCalibration(Prescale_t prescaled=kUnPrescaled);
40 void RequirePedestal(Prescale_t prescaled=kUnPrescaled);
41 void RequirePinDiode(Prescale_t prescaled=kUnPrescaled);
42
43 void DenyTriggerLvl1(Prescale_t prescaled=kUnPrescaled);
44 void DenyTriggerLvl2(Prescale_t prescaled=kUnPrescaled);
45 void DenyCalibration(Prescale_t prescaled=kUnPrescaled);
46 void DenyPedestal(Prescale_t prescaled=kUnPrescaled);
47 void DenyPinDiode(Prescale_t prescaled=kUnPrescaled);
48
49 void Require(TString patt, Prescale_t prescaled=kUnPrescaled);
50 void Deny(TString patt, Prescale_t prescaled=kUnPrescaled);
51
52 // Low level settings. USE THESE ONLY IF YOU ARE AN EXPERT!
53 void SetMaskRequired(const Byte_t mask, Prescale_t prescaled=kUnPrescaled);
54 void SetMaskDenied(const Byte_t mask, Prescale_t prescaled=kUnPrescaled);
55
56 ClassDef(MFTriggerPattern, 1) // A Filter for the Trigger Pattern
57};
58
59#endif
Note: See TracBrowser for help on using the repository browser.