![]() |
Diana Software
|
Filter a main QEvent using a QBool variable in neighbours. More...
Public Member Functions | |
| void | GetCuts (const Diana::QEvent &ev) |
| Get cuts from config file. More... | |
| bool | Filter (const Diana::QEvent &ev, const Diana::QEventList &neigh) |
| return true if ev passes the cuts More... | |
Private Types | |
| enum | Mode { M_ALL , M_ONE } |
| filtering modes More... | |
Private Attributes | |
| Diana::QEventLabel | fBoolLabel |
| label of the QBool in QEvent More... | |
| Mode | fMode |
| filtering mode More... | |
Filter a main QEvent using a QBool variable in neighbours.
MFilterWithNeighboursResult can be used to retrive a QBool from neighbours events, and use it to filter the main event. By default (Mode = ALL) if all neighbours have the QBool set to true, the main event passes. If Mode = ONE the main event passes if at least one neighbour has the QBool set to true. See also MFilterResult.
filter FilterWithNeighboursResult verbosity = info enable = true Logic = CASE BoolLabel = RawDataFilter@Passed Mode = ALL endmod
Definition at line 39 of file MFilterWithNeighboursResult.hh.
|
private |
filtering modes
| Enumerator | |
|---|---|
| M_ALL | |
| M_ONE | ALL neghbours pass the cut |
Definition at line 54 of file MFilterWithNeighboursResult.hh.
| bool MFilterWithNeighboursResult::Filter | ( | const Diana::QEvent & | ev, |
| const Diana::QEventList & | neigh | ||
| ) |
return true if ev passes the cuts
Definition at line 23 of file MFilterWithNeighboursResult.cc.
References QEventList::Empty(), and QEventList::Size().
| void MFilterWithNeighboursResult::GetCuts | ( | const Diana::QEvent & | ev | ) |
Get cuts from config file.
Definition at line 10 of file MFilterWithNeighboursResult.cc.
|
private |
Definition at line 52 of file MFilterWithNeighboursResult.hh.
|
private |
filtering mode
Definition at line 59 of file MFilterWithNeighboursResult.hh.