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

List of all members.

Public Member Functions

 Cut_LessEq (const Cuts::Quantity qty, const double high)
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 high_

Detailed Description

Definition at line 103 of file Cuts.cc.


Constructor & Destructor Documentation

Cut_LessEq ( const Cuts::Quantity  qty,
const double  high 
) [inline]

Definition at line 105 of file Cuts.cc.

: qty_(qty), high_(high) {}

Member Function Documentation

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

Implements CutBase.

Definition at line 111 of file Cuts.cc.

References CuttableBase::getValue(), Cut_LessEq::high_, and Cut_LessEq::qty_.

{ return o.getValue(qty_) <= high_; }
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 106 of file Cuts.cc.

References Cut_LessEq::high_, and Cut_LessEq::qty_.

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

Member Data Documentation

double high_ [private]

Definition at line 114 of file Cuts.cc.

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

Cuts::Quantity qty_ [private]

Definition at line 113 of file Cuts.cc.

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


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