rivet is hosted by Hepforge, IPPP Durham
Rivet  2.7.0
Rivet::CutBase Class Referenceabstract

Inherited by Rivet::Cut_Eq, Rivet::Cut_Gtr, Rivet::Cut_GtrEq, Rivet::Cut_Less, Rivet::Cut_LessEq, Rivet::Cut_NEq, Rivet::CutInvert, Rivet::CutsAnd, Rivet::CutsOr, Rivet::CutsXor, and Rivet::Open_Cut.

Public Member Functions

template<typename ClassToCheck >
bool accept (const ClassToCheck &) const
 
template<typename ClassToCheck >
bool operator() (const ClassToCheck &x) const
 Call operator alias for accept. More...
 
virtual bool operator== (const Cut &) const =0
 Comparison to another Cut.
 
virtual std::string toString () const =0
 String representation.
 
virtual ~CutBase ()
 Default destructor.
 
template<>
bool accept (const CuttableBase &t) const
 

Member Function Documentation

◆ accept()

template<typename ClassToCheck >
bool Rivet::CutBase::accept ( const ClassToCheck &  ) const

Main work method, checking whether the cut is passed

Referenced by operator()().

◆ operator()()

template<typename ClassToCheck >
bool Rivet::CutBase::operator() ( const ClassToCheck &  x) const
inline

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

References accept(), operator==(), and toString().


The documentation for this class was generated from the following files:
  • include/Rivet/Tools/Cuts.hh
  • src/Tools/Cuts.cc