Belle II Software development
|
Realization of a NOT operator for the Filter classes. More...
#include <Filter.h>
Public Types | |
typedef someFilter::argumentType | argumentType |
Handy typedef for arguments. | |
typedef someFilter::functionType | functionType |
Handy typedef for function. | |
Public Member Functions | |
Filter (const someFilter &filter) | |
Constructor creating a NOT filter from a filter. | |
Filter () | |
Empty constructor. | |
template<typename ... argsType> | |
std::enable_if< all_same< argumentType, argsType... >::value, bool >::type | accept (const argsType &... args) const |
The accept method of the filter with NOT Operator: This will return the inverse of the result of the accept method. | |
std::string | getNameAndReference (std::vector< std::pair< char, void * > > *pointers=nullptr) |
Getter for name of and reference to the range of the filters. | |
template<class otherObserver > | |
Filter< Belle2::OperatorNot, decltype(someFilter().observeLeaf(otherObserver())), otherObserver > | observeLeaf (const otherObserver &) const |
Will set the observer for the combination of NOT operator + filter. | |
void | persist (TTree *t, const std::string &branchName) |
Persist the filter on a TTree. | |
void | setBranchAddress (TTree *t, const std::string &branchName) |
Set the Branches addresses to this filter. | |
Private Attributes | |
const char * | c_notSuffix = "_not" |
Char suffix to be used in the filter name for ROOT to indicate that NOT operator is attached. | |
someFilter | m_filter |
Member variable containing the filter. | |
Realization of a NOT operator for the Filter classes.
someFilter | : filter type to which the not operator shall be applied |
templateObserverType | : observer type of the filter to pass it along |
typedef someFilter::argumentType argumentType |
typedef someFilter::functionType functionType |
|
inlineexplicit |
Constructor creating a NOT filter from a filter.
filter | : filter to be copied |
Definition at line 501 of file Filter.h.
|
inline |
The accept method of the filter with NOT Operator: This will return the inverse of the result of the accept method.
argsType | template arguments depending on the filter |
args | values to be tested by the filters |
|
inline |
Getter for name of and reference to the range of the filters.
Calls getNameAndReference of RangeType.
pointers | pointer to vector of pairs of names of and pointers to the filters |
|
inline |
Will set the observer for the combination of NOT operator + filter.
otherObserver | : the new observer |
Definition at line 540 of file Filter.h.
|
inline |
Persist the filter on a TTree.
t | is the TTree under which the TBranch will be created |
branchName | is the name of the TBranch holding m_range |
Definition at line 551 of file Filter.h.
|
inline |
Set the Branches addresses to this filter.
t | is the TTree containing the TBranch |
branchName | is the name of the TBranch holding the m_range |
Definition at line 563 of file Filter.h.
|
private |
|
private |