a class for setting a single selection cut More...
#include <SelectionCut.h>
Public Member Functions | |
void | testInvariant () const |
test the invariant of this object | |
SelectionCut () | |
standard constructor | |
SelectionChoice | get () const |
get the selection choice for the cut | |
bool | getPass () const |
get whether we passed | |
bool | getFail () const |
get whether we failed | |
void | set (SelectionChoice choice) const |
set the selection choice for the cut | |
void | setPassedIf (bool pass) const |
set whether the cut passed | |
void | setFailedIf (bool fail) const |
set whether the cut failed | |
void | configure (SelectionData *val_data, std::size_t val_index) |
configure this cut to point to the given object |
a class for setting a single selection cut
this class is used inside selection (or correction) tools, to represent the different cuts that the tool performs (with one object per cut). to that end the owning tool should call registerCut() inside initialize and then call setPass/setFail in execute.
to make things less ambigious (i.e. if we a selection cut is true does it mean it passes or it fails?), the method always include pass or fail in the name.
ana::SelectionCut::SelectionCut | ( | ) |
standard constructor
void ana::SelectionCut::configure | ( | SelectionData * | val_data, | |
std::size_t | val_index | |||
) |
configure this cut to point to the given object
SelectionChoice ana::SelectionCut::get | ( | ) | const |
get the selection choice for the cut
bool ana::SelectionCut::getFail | ( | ) | const |
get whether we failed
bool ana::SelectionCut::getPass | ( | ) | const |
get whether we passed
void ana::SelectionCut::set | ( | SelectionChoice | choice | ) | const |
set the selection choice for the cut
void ana::SelectionCut::setFailedIf | ( | bool | fail | ) | const |
set whether the cut failed
void ana::SelectionCut::setPassedIf | ( | bool | pass | ) | const |
set whether the cut passed
void ana::SelectionCut::testInvariant | ( | ) | const |
test the invariant of this object