rivet is hosted by Hepforge, IPPP Durham
Inheritance diagram for Cut_GtrEq:
Collaboration diagram for Cut_GtrEq:

List of all members.

Public Member Functions

 Cut_GtrEq (const Cuts::Quantity qty, const double low)
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

Protected Member Functions

bool _accept (const CuttableBase &o) const

Private Attributes

Cuts::Quantity qty_
double low_

Detailed Description

Definition at line 58 of file Cuts.cc.


Constructor & Destructor Documentation

Cut_GtrEq ( const Cuts::Quantity  qty,
const double  low 
) [inline]

Definition at line 60 of file Cuts.cc.

: qty_(qty), low_(low) {}

Member Function Documentation

bool _accept ( const CuttableBase o) const [inline, protected, virtual]

Implements CutBase.

Definition at line 66 of file Cuts.cc.

References CuttableBase::getValue(), Cut_GtrEq::low_, and Cut_GtrEq::qty_.

{ return o.getValue(qty_) >= low_; }
bool accept ( const ClassToCheck &  ) const [inherited]

Main work method.

bool accept ( const CuttableBase t) const [inherited]

Definition at line 26 of file Cuts.cc.

                                                                 {
    return _accept(t);
  }
bool operator== ( const Cut ) const [inline, virtual]

Comparison to another Cut.

Implements CutBase.

Definition at line 61 of file Cuts.cc.

References Cut_GtrEq::low_, and Cut_GtrEq::qty_.

                                         {
      shared_ptr<Cut_GtrEq> cc = dynamic_pointer_cast<Cut_GtrEq>(c);
      return cc && qty_ == cc->qty_  &&  low_ == cc->low_;
    }

Member Data Documentation

double low_ [private]

Definition at line 69 of file Cuts.cc.

Referenced by Cut_GtrEq::_accept(), and Cut_GtrEq::operator==().

Cuts::Quantity qty_ [private]

Definition at line 68 of file Cuts.cc.

Referenced by Cut_GtrEq::_accept(), and Cut_GtrEq::operator==().


The documentation for this class was generated from the following file: