rivet is hosted by Hepforge, IPPP Durham

List of all members.

Public Member Functions

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

Cuts::Quantity _qty
int _val

Detailed Description

Definition at line 53 of file Cuts.cc.


Constructor & Destructor Documentation

Cut_Eq ( const Cuts::Quantity  qty,
double  val 
) [inline]

Definition at line 55 of file Cuts.cc.

: _qty(qty), _val(val) {}

Member Function Documentation

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

Implements CutBase.

Definition at line 61 of file Cuts.cc.

{ return o.getValue(_qty) == _val; }
bool accept ( const ClassToCheck &  ) const [inherited]

Main work method, checking whether the cut is passed

bool accept ( const CuttableBase t) const [inherited]

Definition at line 23 of file Cuts.cc.

                                                                {
    return _accept(t);
  }
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.

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

Comparison to another Cut.

Implements CutBase.

Definition at line 56 of file Cuts.cc.

                                        {
      std::shared_ptr<Cut_Eq> cc = dynamic_pointer_cast<Cut_Eq>(c);
      return cc  &&  _qty == cc->_qty  &&  _val == cc->_val;
    }

Member Data Documentation

Cuts::Quantity _qty [private]

Definition at line 63 of file Cuts.cc.

int _val [private]

Definition at line 64 of file Cuts.cc.


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