![]() |
ATLAS Offline Software
|
Templated CutList class to contain a group of cuts. More...
#include <CutFlow.h>
Public Member Functions | |
| CutList (const std::vector< Accept< A > > &cuts) | |
| Normal constructor takes a vector<Accept>. Note default mode is 'ALL'. | |
| CutList () | |
| Default constructor with no cuts implemented. | |
| void | add (const Accept< A > &newCut) |
| Add one cut. | |
| unsigned int | accept (const A &value) const |
| Apply cuts and return the boolean result; keep count of number of calls and passes. | |
| unsigned int | testAllCuts (const A &value, std::vector< unsigned int > &counter) const |
| unsigned int | size () const |
| Return the number of cuts. | |
| std::vector< std::string > | names () const |
| Return a vector of the cut names. | |
Private Attributes | |
| std::vector< Accept< A > > | m_cuts |
Templated CutList class to contain a group of cuts.
The CutList is typically instantiated with a vector of Accept objects, although additional cuts may be added with the 'add' method. Cuts may be applied in one of two ways, determined by the 'mode' parameter: ALL: Always apply every cut UNTIL_FAIL: Apply cuts until the first one fails The 'accept' method applies the cuts and keeps internal count of how many times it is called.
Normal constructor takes a vector<Accept>. Note default mode is 'ALL'.
Definition at line 97 of file CutFlow.h.
Apply cuts and return the boolean result; keep count of number of calls and passes.
|
inline |