Belle II Software development
|
Represents a closed lower bounded set of arithmetic types. More...
#include <ClosedLowerBoundedSet.h>
Public Member Functions | |
ClosedLowerBoundedSet (MinType min) | |
Constructor. | |
ClosedLowerBoundedSet () | |
Constructor without argument. | |
template<class VariableType > | |
bool | contains (const VariableType &x) const |
Method used by the filter tools to decide on the fate of the pair. | |
void | persist (TTree *t, const std::string &branchName, const std::string &variableName) |
Creates and sets the addresses of the leaves to store the min value. | |
void | setBranchAddress (TTree *t, const std::string &branchName, const std::string &) |
sets the branch address for m_min | |
MinType | getInf (void) const |
Accessor to the inf of the set (which coincides with the min) | |
std::string | getNameAndReference (std::vector< std::pair< char, void * > > *pointers=nullptr, const std::string &varname="X") |
generates a "name" and fills the vector with the variable references | |
Private Attributes | |
MinType | m_min |
the minimum value for this range | |
Represents a closed lower bounded set of arithmetic types.
ClosedLowerBoundedSet is used in conjunction with the SelectionVariable to define one of the building blocks of the Filters
Definition at line 30 of file ClosedLowerBoundedSet.h.
|
inlineexplicit |
Constructor.
Definition at line 34 of file ClosedLowerBoundedSet.h.
|
inline |
Constructor without argument.
Definition at line 37 of file ClosedLowerBoundedSet.h.
|
inline |
Method used by the filter tools to decide on the fate of the pair.
x | is the result of some SelectionVariable applied to a pair of objects. The return value is true if x belongs to the closed set [ m_min, infinity ] |
Definition at line 45 of file ClosedLowerBoundedSet.h.
|
inline |
Accessor to the inf of the set (which coincides with the min)
Definition at line 78 of file ClosedLowerBoundedSet.h.
|
inline |
generates a "name" and fills the vector with the variable references
pointers | pointer to vector which contains a pair of char which indicates the type object pointed to and the actual pointers to the bounds, if equal to nullptr it will not be filled |
varname | optional name of the filter this range is attached to make the output look nicer |
Definition at line 86 of file ClosedLowerBoundedSet.h.
|
inline |
Creates and sets the addresses of the leaves to store the min value.
t | the pointer to the TTree that will contain the TBranch of this range. |
branchName | the name of the TBranch that will host this range. |
variableName | the name of the selection variable this range is applied to. |
The leaves will be named as the selection variable name with the "_min" suffix for the min value.
Definition at line 56 of file ClosedLowerBoundedSet.h.
|
inline |
sets the branch address for m_min
t | pointer to the tree that contains the branch |
branchName | reference to name of the branch |
Definition at line 71 of file ClosedLowerBoundedSet.h.
|
private |
the minimum value for this range
Definition at line 100 of file ClosedLowerBoundedSet.h.