| Line | |
|---|
| 1 | #ifndef MARS_MFDeltaT
|
|---|
| 2 | #define MARS_MFDeltaT
|
|---|
| 3 |
|
|---|
| 4 | #ifndef ROOT_TArrayI
|
|---|
| 5 | #include <TArrayI.h>
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | #ifndef MARS_MFilter
|
|---|
| 9 | #include "MFilter.h"
|
|---|
| 10 | #endif
|
|---|
| 11 |
|
|---|
| 12 | #ifndef MARS_MTime
|
|---|
| 13 | #include "MTime.h"
|
|---|
| 14 | #endif
|
|---|
| 15 |
|
|---|
| 16 | class MTime;
|
|---|
| 17 | class MParList;
|
|---|
| 18 |
|
|---|
| 19 | class MFDeltaT : public MFilter
|
|---|
| 20 | {
|
|---|
| 21 | private:
|
|---|
| 22 | MTime *fTime; //!
|
|---|
| 23 | TString fNameTime;
|
|---|
| 24 |
|
|---|
| 25 | Float_t fUpperLimit;
|
|---|
| 26 |
|
|---|
| 27 | MTime fLastTime; //!
|
|---|
| 28 | Bool_t fResult; //!
|
|---|
| 29 |
|
|---|
| 30 | TArrayI fErrors;
|
|---|
| 31 |
|
|---|
| 32 | void Init(const char *name, const char *title, Float_t max=0.5, const char *time="MTime");
|
|---|
| 33 |
|
|---|
| 34 | Int_t PreProcess(MParList *pList);
|
|---|
| 35 | Int_t Process();
|
|---|
| 36 | Int_t PostProcess();
|
|---|
| 37 |
|
|---|
| 38 | public:
|
|---|
| 39 | MFDeltaT(Float_t max, const char *time="MTime", const char *name=0, const char *title=0);
|
|---|
| 40 | MFDeltaT(const char *name=0, const char *title=0);
|
|---|
| 41 |
|
|---|
| 42 | void SetUpperLimit(Float_t max) { fUpperLimit=max; }
|
|---|
| 43 | Float_t GetUpperLimit() const { return fUpperLimit; }
|
|---|
| 44 |
|
|---|
| 45 | Bool_t IsExpressionTrue() const;
|
|---|
| 46 |
|
|---|
| 47 | ClassDef(MFDeltaT, 1) // A Filter for time differences of consecutive events
|
|---|
| 48 | };
|
|---|
| 49 |
|
|---|
| 50 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.