1 | #ifndef MARS_MFTriggerPattern
|
---|
2 | #define MARS_MFTriggerPattern
|
---|
3 |
|
---|
4 | #ifndef MARS_MFilter
|
---|
5 | #include "MFilter.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MTriggerPattern;
|
---|
9 |
|
---|
10 | class MFTriggerPattern : public MFilter
|
---|
11 | {
|
---|
12 | private:
|
---|
13 | MTriggerPattern *fPattern; //!
|
---|
14 |
|
---|
15 | Byte_t fMaskRequiredPrescaled; // Mask for filtering Trigger Pattern allowed
|
---|
16 | Byte_t fMaskRequiredUnprescaled; // Mask for filtering Trigger Pattern allowed
|
---|
17 | Byte_t fMaskDeniedPrescaled; // Mask for filtering Trigger Pattern denied
|
---|
18 | Byte_t fMaskDeniedUnprescaled; // Mask for filtering Trigger Pattern denied
|
---|
19 |
|
---|
20 | Bool_t fResult; //!
|
---|
21 |
|
---|
22 | Int_t PreProcess(MParList *pList);
|
---|
23 | Int_t Process();
|
---|
24 |
|
---|
25 | Bool_t IsExpressionTrue() const;
|
---|
26 |
|
---|
27 | public:
|
---|
28 | enum Prescale_t {
|
---|
29 | kUnPrescaled = kFALSE,
|
---|
30 | kPrescaled = kTRUE };
|
---|
31 |
|
---|
32 | MFTriggerPattern(const char *name=NULL, const char *title=NULL);
|
---|
33 | MFTriggerPattern(MFTriggerPattern &trigpatt);
|
---|
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);
|
---|
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);
|
---|
46 |
|
---|
47 | void Require(TString patt, Bool_t prescaled=kUnPrescaled);
|
---|
48 | void Deny(TString patt, Bool_t prescaled=kUnPrescaled);
|
---|
49 |
|
---|
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);
|
---|
53 |
|
---|
54 | ClassDef(MFTriggerPattern, 1) // A Filter for the Trigger Pattern
|
---|
55 | };
|
---|
56 |
|
---|
57 | #endif
|
---|