Diana Software
MFilterNeighbourExists.cc
Go to the documentation of this file.
2 #include "QEvent.hh"
3 #include "QEventList.hh"
4 
5 
7 
8 using namespace Diana;
9 
10 
12 {
13 
14 }
15 
16 bool MFilterNeighbourExists::Filter(const QEvent& ev, const QEventList& neighbours)
17 {
18  return !neighbours.Empty();
19 }
#define REGISTER_MODULE(clazz)
Definition: QDriver.hh:133
select main events with at least one neighbour
void GetCuts(const Diana::QEvent &ev)
Get cuts from config file.
bool Filter(const Diana::QEvent &ev, const Diana::QEventList &neighbours)
return true if ev passes the cuts
list of references to const QEvent (s)
Definition: QEventList.hh:21
bool Empty() const
check if the list is empty
Definition: QEventList.hh:39
diana event
Definition: QEvent.hh:46
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...