thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
ThePEG::SelectIfEither Class Reference

The SelectIfEither class can be used to combine other selector objects. More...

#include <SelectorBase.h>

Inheritance diagram for ThePEG::SelectIfEither:

Public Member Functions

 SelectIfEither (const SelectorBase &S1, const SelectorBase &S2)
 Constructor taking two SelectorBase object to be combiden.
 
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.
 
- Public Member Functions inherited from ThePEG::SelectorBase
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.
 

Private Attributes

const SelectorBases1
 One selector to be combined.
 
const SelectorBases2
 The other selector to be combined.
 

Additional Inherited Members

- Static Public Member Functions inherited from ThePEG::SelectorBase
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

The SelectIfEither class can be used to combine other selector objects.

Only particles which would be extracted with both selectors will be extractor.

Definition at line 291 of file SelectorBase.h.

Constructor & Destructor Documentation

◆ SelectIfEither()

ThePEG::SelectIfEither::SelectIfEither ( const SelectorBase S1,
const SelectorBase S2 
)
inline

Constructor taking two SelectorBase object to be combiden.

Definition at line 298 of file SelectorBase.h.

Member Function Documentation

◆ allCollisions()

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

Return ture if all collisions should be considered.

Otherwise only the primary collision will be considered.

Reimplemented from ThePEG::SelectorBase.

Definition at line 334 of file SelectorBase.h.

References ThePEG::SelectorBase::allCollisions(), s1, and s2.

◆ allSteps()

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

Return true if all steps should be considered.

Otherwise only the last step in each collision is considered.

Reimplemented from ThePEG::SelectorBase.

Definition at line 326 of file SelectorBase.h.

References ThePEG::SelectorBase::allSteps(), s1, and s2.

◆ check()

virtual bool ThePEG::SelectIfEither::check ( const Particle p) const
inlinevirtual

Return true if the particle should be extracted.

Reimplemented from ThePEG::SelectorBase.

Definition at line 304 of file SelectorBase.h.

References ThePEG::SelectorBase::check(), s1, and s2.

◆ finalState()

virtual bool ThePEG::SelectIfEither::finalState ( ) const
inlinevirtual

Return true if final state particles are to be considered.

Reimplemented from ThePEG::SelectorBase.

Definition at line 311 of file SelectorBase.h.

References ThePEG::SelectorBase::finalState(), s1, and s2.

◆ intermediate()

virtual bool ThePEG::SelectIfEither::intermediate ( ) const
inlinevirtual

Return true if intermediate particles should be considered.

Reimplemented from ThePEG::SelectorBase.

Definition at line 318 of file SelectorBase.h.

References ThePEG::SelectorBase::intermediate(), s1, and s2.

Member Data Documentation

◆ s1

const SelectorBase& ThePEG::SelectIfEither::s1
private

One selector to be combined.

Definition at line 343 of file SelectorBase.h.

Referenced by allCollisions(), allSteps(), check(), finalState(), and intermediate().

◆ s2

const SelectorBase& ThePEG::SelectIfEither::s2
private

The other selector to be combined.

Definition at line 348 of file SelectorBase.h.

Referenced by allCollisions(), allSteps(), check(), finalState(), and intermediate().


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