AND, OR, NOT, and XOR objects for combining cuts.
More...
List of all members.
Public Member Functions |
| CutsOr (const Cut &c1, const Cut &c2) |
bool | operator== (const Cut &c) const |
| Comparison to another Cut.
|
template<typename ClassToCheck > |
bool | accept (const ClassToCheck &) const |
template<> |
bool | accept (const CuttableBase &t) const |
template<typename ClassToCheck > |
bool | operator() (const ClassToCheck &x) const |
| Call operator alias for accept.
|
Protected Member Functions |
bool | _accept (const CuttableBase &o) const |
Private Attributes |
const Cut | cut1 |
const Cut | cut2 |
Detailed Description
AND, OR, NOT, and XOR objects for combining cuts.
Combiners
Definition at line 188 of file Cuts.cc.
Constructor & Destructor Documentation
Member Function Documentation
bool accept |
( |
const ClassToCheck & |
| ) |
const [inherited] |
Main work method, checking whether the cut is passed
bool operator() |
( |
const ClassToCheck & |
x | ) |
const [inline, inherited] |
Call operator alias for accept.
- Note:
- A bit subtle, because this gets wrapped in a shared_ptr so you need to dereference to get the functor
Definition at line 21 of file Cuts.hh.
bool operator== |
( |
const Cut & |
| ) |
const [inline, virtual] |
Comparison to another Cut.
Implements CutBase.
Definition at line 191 of file Cuts.cc.
{
std::shared_ptr<CutsOr> cc = dynamic_pointer_cast<CutsOr>(c);
return cc && ( ( cut1 == cc->cut1 && cut2 == cc->cut2 )
|| ( cut1 == cc->cut2 && cut2 == cc->cut1 ));
}
Member Data Documentation
The documentation for this class was generated from the following file: