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

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