10 using namespace Diana;
30 double time = header.
GetTime().GetFromStartRunNs()/1.e09;
36 if (time <= fMaxTime) passed =
true;
42 if (time >= fMinTime) passed =
true;
48 Warn(
"No range specified. The variable will not be filtered");
55 Warn(
"Wrong Range (Max <= Min). The variable will not be filtered");
61 if(time >= fMinTime && time <= fMaxTime) passed =
true;
#define REGISTER_MODULE(clazz)
one-line description of your filter
bool Filter(const Diana::QEvent &ev)
return true if ev passes the cuts
void GetCuts(const Diana::QEvent &ev)
Get cuts from config file.
void Get(const char *owner, ReadHandle< Q > &handle) const
Get a QObject Handle in read mode.
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...