ThePEG::SelectorBase Class Reference

Classes derived from the SelectorBase class are used to extract particles from an Event with Event::select() method. More...

#include <SelectorBase.h>

Inheritance diagram for ThePEG::SelectorBase:

ThePEG::AllSelector ThePEG::ChargedSelector ThePEG::FinalStateSelector ThePEG::IntermediateSelector ThePEG::ParticleSelector< T > ThePEG::PrimaryCollisionSelector ThePEG::SelectIfBoth ThePEG::SelectIfEither ThePEG::SelectIfNot

List of all members.

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.


Detailed Description

Classes derived from the 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.

See also:
StandardSelectors

Event

Collision

Step

Particle

Definition at line 45 of file SelectorBase.h.


Member Function Documentation

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().


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

Generated on Thu Apr 29 12:43:00 2010 for ThePEG by  doxygen 1.5.5