| 1 | #ifndef MARS_MTriggerPatternDecode
|
|---|
| 2 | #define MARS_MTriggerPatternDecode
|
|---|
| 3 |
|
|---|
| 4 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 5 | // //
|
|---|
| 6 | // MTriggerPatternDecode
|
|---|
| 7 | //
|
|---|
| 8 | // auth. N.Galante
|
|---|
| 9 | // created 17.11.04 //
|
|---|
| 10 | // //
|
|---|
| 11 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 12 |
|
|---|
| 13 | #ifndef MARS_MFilter
|
|---|
| 14 | #include "MFilter.h"
|
|---|
| 15 | #endif
|
|---|
| 16 |
|
|---|
| 17 | class MParList;
|
|---|
| 18 | class MRawEvtHeader;
|
|---|
| 19 | class MTriggerPattern;
|
|---|
| 20 |
|
|---|
| 21 | class MTriggerPatternDecode : public MFilter
|
|---|
| 22 | {
|
|---|
| 23 | private:
|
|---|
| 24 | // enum pattern {PLT1=1, PCAL=2, PLT2=4, PPED=8, PPIND=16,
|
|---|
| 25 | // ULT1=256, UCAL=512, ULT2=1024, UPED=2048, UPIND=4096};
|
|---|
| 26 |
|
|---|
| 27 | MRawEvtHeader *fEvtHeader;
|
|---|
| 28 | MTriggerPattern *fPattern;
|
|---|
| 29 |
|
|---|
| 30 | // UInt_t fMaskAllowed; // Mask for filtering Trigger Pattern allowed
|
|---|
| 31 | // UInt_t fMaskDenied; // Mask for filtering Trigger Pattern denied
|
|---|
| 32 | // UInt_t fPattern; // Trigger Pattern stored into event
|
|---|
| 33 | // UInt_t fMachArch;
|
|---|
| 34 |
|
|---|
| 35 | // Bool_t fBitInv; // Flag to invert bits of Pattern (1=yes,0=no)
|
|---|
| 36 | // default 1=yes
|
|---|
| 37 | //Bool_t fPrescaled; // Flag to set if using prescaled (=1) or
|
|---|
| 38 | // unprescaled (=0) pattern. Default 1
|
|---|
| 39 | // Bool_t fResult;
|
|---|
| 40 |
|
|---|
| 41 | Int_t PreProcess(MParList *pList);
|
|---|
| 42 | Int_t Process();
|
|---|
| 43 |
|
|---|
| 44 | public:
|
|---|
| 45 |
|
|---|
| 46 | MTriggerPatternDecode(const char *name, const char *title);
|
|---|
| 47 | MTriggerPatternDecode(MTriggerPatternDecode &trigpatt);
|
|---|
| 48 |
|
|---|
| 49 | // Bool_t IsExpressionTrue() const;
|
|---|
| 50 |
|
|---|
| 51 | // void AllowPresTrigger(TString patt);
|
|---|
| 52 | // void DenyPresTrigger(TString patt);
|
|---|
| 53 | // void AllowUnpresTrigger(TString patt);
|
|---|
| 54 | // void DenyUnpresTrigger(TString patt);
|
|---|
| 55 | //
|
|---|
| 56 | //// UInt_t GetMaskAllowed() const { return fMaskAllowed; };
|
|---|
| 57 | // UInt_t GetMaskDenied() const { return fMaskDenied; };
|
|---|
| 58 | //Bool_t GetPrescaled() const { return fPrescaled; };
|
|---|
| 59 | // Bool_t GetBitInv() const { return fBitInv; }
|
|---|
| 60 |
|
|---|
| 61 | // void SetBitInv(const Bool_t inv) { fBitInv = inv; }
|
|---|
| 62 | //void SetPrescaled() { fPrescaled = kTRUE; };
|
|---|
| 63 | //void SetUnprescaled() { fPrescaled = kFALSE; };
|
|---|
| 64 |
|
|---|
| 65 | // Low level settings. USE THESE ONLY IF YOU ARE AN EXPERT!
|
|---|
| 66 | // void SetMaskAllowed(const UInt_t mask) { fMaskAllowed = mask; }
|
|---|
| 67 | // void SetMaskDenied(const UInt_t mask) { fMaskDenied = mask; }
|
|---|
| 68 |
|
|---|
| 69 | ClassDef(MTriggerPatternDecode, 1) // Task to decode the Trigger Pattern
|
|---|
| 70 | };
|
|---|
| 71 |
|
|---|
| 72 | #endif
|
|---|