Diana Software
MRejectNotValid.cc
Go to the documentation of this file.
1 #include "MRejectNotValid.hh"
2 #include "QEvent.hh"
3 
4 
6 
7 using namespace Diana;
8 
9 
11 {
12  fObjectLabel = GetString("ObjectLabel","NODEFAULT@NODEFAULT");
13 }
14 
16 {
17  ReadHandle<QObject> rHandle(fObjectLabel.name.c_str());
18  ev.Get(fObjectLabel.owner.c_str(),rHandle);
19  return rHandle.IsValid();
20 }
QRunDataHandle rHandle(753)
#define REGISTER_MODULE(clazz)
Definition: QDriver.hh:133
Reject events containing a non-valid QObject.
void GetCuts(const Diana::QEvent &ev)
Get cuts from config file.
bool Filter(const Diana::QEvent &ev)
return true if ev passes the cuts
diana event
Definition: QEvent.hh:46
void Get(const char *owner, ReadHandle< Q > &handle) const
Get a QObject Handle in read mode.
Definition: QEvent.hh:74
read handle to access QEvent QObject's.
Definition: QHandle.hh:126
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...