SelectorBase
class are used to extract particles from an Event with Event::select()
method.
More...
#include <SelectorBase.h>
Public Member Functions | |
virtual | ~SelectorBase () |
Virtual destructor. | |
virtual bool | check (const Particle &p) const |
Return true if the particle should be extracted. | |
virtual bool | finalState () const |
Return true if final state particles are to be considered. | |
virtual bool | intermediate () const |
Return true if intermediate particles should be considered. | |
virtual bool | allSteps () const |
Return true if all steps should be considered. | |
virtual bool | allCollisions () const |
Return ture if all collisions should be considered. | |
Static Public Member Functions | |
static bool | Check (const Particle &) |
Static method corresponding to the virtual check() method. | |
static bool | Intermediate () |
Static method corresponding to the virtual intermediate() method. | |
static bool | FinalState () |
Static method corresponding to the virtual finalState() method. | |
static bool | AllSteps () |
Static method corresponding to the virtual allSteps() method. | |
static bool | AllCollisions () |
Static method corresponding to the virtual allCollisions() method. |
SelectorBase
class are used to extract particles from an Event with Event::select()
method.
There are five different kinds of checks done by a selector object in the Event::select
method. If the allCollisions()
method returns false, only particles which belongs to the primary collision in an event will be considered for extraction. Furthermore if the allSteps()
method returns false, only particles present in the final step of each collision will be considered. If finalState()
returns false, final state particles will not be considered and if intermediate()
returns false, intermediate particles will not be considered. Finally among all considered particles, only the ones for which the check(const Particle &)
returns true will be extracted.
Definition at line 45 of file SelectorBase.h.
virtual bool ThePEG::SelectorBase::allSteps | ( | ) | const [inline, virtual] |
Return true if all steps should be considered.
Otherwise only the last step in each collision is considered.
Reimplemented in ThePEG::ParticleSelector< T >, ThePEG::SelectIfNot, ThePEG::SelectIfBoth, and ThePEG::SelectIfEither.
Definition at line 98 of file SelectorBase.h.
References AllSteps().
Referenced by ThePEG::SelectIfEither::allSteps(), ThePEG::SelectIfBoth::allSteps(), and ThePEG::SelectIfNot::allSteps().
virtual bool ThePEG::SelectorBase::allCollisions | ( | ) | const [inline, virtual] |
Return ture if all collisions should be considered.
Otherwise only the primary collision will be considered.
Reimplemented in ThePEG::ParticleSelector< T >, ThePEG::SelectIfNot, ThePEG::SelectIfBoth, and ThePEG::SelectIfEither.
Definition at line 104 of file SelectorBase.h.
References AllCollisions().
Referenced by ThePEG::SelectIfEither::allCollisions(), ThePEG::SelectIfBoth::allCollisions(), ThePEG::SelectIfNot::allCollisions(), and ThePEG::Event::select().