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'. More... | |
CutList () | |
Default constructor with no cuts implemented. More... | |
void | add (const Accept< A > &newCut) |
Add one cut. More... | |
unsigned int | accept (const A &value) const |
Apply cuts and return the boolean result; keep count of number of calls and passes. More... | |
unsigned int | testAllCuts (const A &value, std::vector< unsigned int > &counter) const |
unsigned int | size () const |
Return the number of cuts. More... | |
std::vector< std::string > | names () const |
Return a vector of the cut names. More... | |
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.
Apply cuts and return the boolean result; keep count of number of calls and passes.
|
inline |