default selector worker is an abstract virtual base class More...
#include <Selector.hh>
Inherited by fastjet::SW_BinaryOperator, fastjet::SW_Identity, fastjet::SW_IsPureGhost, fastjet::SW_NHardest, fastjet::SW_Not, fastjet::SW_PhiRange, fastjet::SW_QuantityMax< QuantityType >, fastjet::SW_QuantityMin< QuantityType >, fastjet::SW_QuantityRange< QuantityType >, fastjet::SW_WithReference, fastjet::SW_QuantityMax< QuantityAbsRap >, fastjet::SW_QuantityMax< QuantityRap >, fastjet::SW_QuantityMin< QuantityRap >, fastjet::SW_QuantityRange< QuantityAbsRap >, and fastjet::SW_QuantityRange< QuantityRap >.
Public Member Functions | |
virtual | ~SelectorWorker () |
default dtor | |
virtual bool | pass (const PseudoJet &jet) const =0 |
returns true if a given object passes the selection criterion. | |
virtual void | terminator (std::vector< const PseudoJet * > &jets) const |
For each jet that does not pass the cuts, this routine sets the pointer to 0. | |
virtual bool | applies_jet_by_jet () const |
returns true if this can be applied jet by jet | |
virtual std::string | description () const |
returns a description of the worker | |
virtual bool | takes_reference () const |
returns true if the worker is defined with respect to a reference jet | |
virtual void | set_reference (const PseudoJet &reference) |
sets the reference jet for the selector | |
virtual SelectorWorker * | copy () |
return a copy of the current object. | |
virtual void | get_rapidity_extent (double &rapmin, double &rapmax) const |
returns the rapidity range for which it may return "true" | |
virtual bool | has_area () const |
check if it has a finite area | |
virtual bool | has_known_area () const |
check if it has an analytically computable area | |
virtual double | known_area () const |
if it has a computable area, return it |
default selector worker is an abstract virtual base class
The Selector class is only an interface, it is the SelectorWorker that really does the work. To implement various selectors, one thus has to overload this class.
Definition at line 57 of file Selector.hh.
virtual bool fastjet::SelectorWorker::pass | ( | const PseudoJet & | jet | ) | const [pure virtual] |
returns true if a given object passes the selection criterion.
This has to be overloaded by derived workers
virtual void fastjet::SelectorWorker::terminator | ( | std::vector< const PseudoJet * > & | jets | ) | const [inline, virtual] |
For each jet that does not pass the cuts, this routine sets the pointer to 0.
It does not assume that the PseudoJet* passed as argumetn are not NULL
Definition at line 77 of file Selector.hh.
{ for (unsigned i = 0; i < jets.size(); i++) { if (jets[i] && !pass(*jets[i])) jets[i] = NULL; } }
virtual SelectorWorker* fastjet::SelectorWorker::copy | ( | ) | [inline, virtual] |
return a copy of the current object.
This function is only called for objects that take a reference and need not be reimplemented otherwise.
Definition at line 105 of file Selector.hh.
{ throw Error("this SelectorWorker has nothing to copy"); }