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

Last change on this file since 5755 was 5725, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.7 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{
12private:
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
27public:
28 MFTriggerPattern(const char *name=NULL, const char *title=NULL);
29 MFTriggerPattern(MFTriggerPattern &trigpatt);
30
31 void RequireTriggerLvl1(Bool_t prescaled=kFALSE);
32 void RequireTriggerLvl2(Bool_t prescaled=kFALSE);
33 void RequireCalibration(Bool_t prescaled=kFALSE);
34 void RequirePedestal(Bool_t prescaled=kFALSE);
35 void RequirePinDiode(Bool_t prescaled=kFALSE);
36
37 void DenyTriggerLvl1(Bool_t prescaled=kFALSE);
38 void DenyTriggerLvl2(Bool_t prescaled=kFALSE);
39 void DenyCalibration(Bool_t prescaled=kFALSE);
40 void DenyPedestal(Bool_t prescaled=kFALSE);
41 void DenyPinDiode(Bool_t prescaled=kFALSE);
42
43 void Require(TString patt, Bool_t prescaled=kFALSE);
44 void Deny(TString patt, Bool_t prescaled=kFALSE);
45
46 // Low level settings. USE THESE ONLY IF YOU ARE AN EXPERT!
47 void SetMaskRequired(const Byte_t mask, Bool_t prescaled=kFALSE);
48 void SetMaskDenied(const Byte_t mask, Bool_t prescaled=kFALSE);
49
50 ClassDef(MFTriggerPattern, 1) // A Filter for the Trigger Pattern
51};
52
53#endif
Note: See TracBrowser for help on using the repository browser.