Template for Cut and SpillCut. More...
#include <Cut.h>
Public Types | |
| typedef bool( | CutFunc_t )(const T *sr) |
| The type of the function part of a cut. More... | |
Public Member Functions | |
| _Cut (const std::function< CutFunc_t > &func, const std::function< ExposureFunc_t > &liveFunc=0, const std::function< ExposureFunc_t > &potFunc=0) | |
| std::function can wrap a real function, function object, or lambda More... | |
| bool | operator() (const T *sr) const |
| Allows a cut to be called with bool result = myCut(sr) syntax. More... | |
| double | Livetime (const caf::SRSpill *spill) const |
| Provide a Livetime function if your cut is a timing cut etc. More... | |
| double | POT (const caf::SRSpill *spill) const |
| Could be useful for cuts on specific batches? More... | |
| int | ID () const |
| Cuts with the same definition will have the same ID. More... | |
Static Public Member Functions | |
| static int | MaxID () |
Protected Member Functions | |
| _Cut (const std::function< CutFunc_t > &fun, const std::function< ExposureFunc_t > &liveFunc, const std::function< ExposureFunc_t > &potFunc, int id) | |
Protected Attributes | |
| std::function< CutFunc_t > | fFunc |
| std::function< ExposureFunc_t > | fLiveFunc |
| std::function< ExposureFunc_t > | fPOTFunc |
| int | fID |
Static Protected Attributes | |
| static int | fgNextID = 0 |
| The next ID that hasn't yet been assigned. More... | |
Friends | |
| std::function< ExposureFunc_t > | CombineExposures (const std::function< ExposureFunc_t > &a, const std::function< ExposureFunc_t > &b) |
| _Cut< T > | operator&& (const _Cut< T > &a, const _Cut< T > &b) |
| _Cut< T > | operator|| (const _Cut< T > &a, const _Cut< T > &b) |
| _Cut< T > | operator! (const _Cut< T > &a) |
Template for Cut and SpillCut.
| typedef bool( ana::_Cut< T >::CutFunc_t)(const T *sr) |
| ana::_Cut< T >::_Cut | ( | const std::function< CutFunc_t > & | func, |
| const std::function< ExposureFunc_t > & | liveFunc = 0, |
||
| const std::function< ExposureFunc_t > & | potFunc = 0 |
||
| ) |
|
inlineprotected |
|
inline |
|
inline |
|
static |
|
inline |
Allows a cut to be called with bool result = myCut(sr) syntax.
|
inline |
|
friend |
Definition at line 49 of file Cut.cxx.
Definition at line 76 of file Cut.cxx.
|
staticprotected |
|
protected |
|
protected |
1.8.5