thepeg is hosted by Hepforge, IPPP Durham
ThePEG  2.1.5
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:

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. More...
 
virtual bool allCollisions () const
 Return ture if all collisions should be considered. More...
 

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

◆ allCollisions()

virtual bool ThePEG::SelectorBase::allCollisions ( ) const
inlinevirtual

Return ture if all collisions should be considered.

Otherwise only the primary collision will be considered.

Reimplemented in ThePEG::SelectIfEither, ThePEG::SelectIfBoth, ThePEG::SelectIfNot, and ThePEG::ParticleSelector< T >.

Definition at line 104 of file SelectorBase.h.

References AllCollisions().

Referenced by ThePEG::Event::select().

◆ allSteps()

virtual bool ThePEG::SelectorBase::allSteps ( ) const
inlinevirtual

Return true if all steps should be considered.

Otherwise only the last step in each collision is considered.

Reimplemented in ThePEG::SelectIfEither, ThePEG::SelectIfBoth, ThePEG::SelectIfNot, and ThePEG::ParticleSelector< T >.

Definition at line 98 of file SelectorBase.h.

References AllSteps().


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