9 #ifndef ThePEG_SelectorBase_H 10 #define ThePEG_SelectorBase_H 204 virtual bool allSteps()
const {
return !s.allSteps(); }
239 return s1.check(p) && s2.check(p);
246 return s1.finalState() && s2.finalState();
253 return s1.intermediate() && s2.intermediate();
261 return s1.allSteps() && s2.allSteps();
269 return s1.allCollisions() && s2.allCollisions();
305 return s1.check(p) || s2.check(p);
312 return s1.finalState() || s2.finalState();
319 return s1.intermediate() || s2.intermediate();
327 return s1.allSteps() || s2.allSteps();
335 return s1.allCollisions() || s2.allCollisions();
353 template <
typename OutputIterator,
typename Container>
356 for (
typename Container::const_iterator it = c.begin();
357 it != c.end(); ++it )
358 if ( s.
check(**it) ) *r++ = *it;
virtual bool intermediate() const
Return true if intermediate particles should be considered.
virtual bool check(const Particle &p) const
Return true if the particle should be extracted.
The Particle class is used to describe an instance of a particle.
static bool AllCollisions()
Static method corresponding to the virtual allCollisions() method.
This is the main config header file for the Event classes.
Classes derived from the SelectorBase class are used to extract particles from an Event with Event::s...
static bool FinalState()
Static method corresponding to the virtual finalState() method.
virtual ~SelectorBase()
Virtual destructor.
virtual bool finalState() const
Return true if final state particles are to be considered.
static bool Intermediate()
Static method corresponding to the virtual intermediate() method.
virtual bool intermediate() const
Return true if intermediate particles should be considered.
virtual bool allSteps() const
Return true if all steps should be considered.
const SelectorBase & s2
The other selector to be combined.
This is the main namespace within which all identifiers in ThePEG are declared.
static bool Check(const Particle &)
Static method corresponding to the virtual check() method.
virtual bool allCollisions() const
Return ture if all collisions should be considered.
The SelectIfEither class can be used to combine other selector objects.
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.
static bool Intermediate()
Static method corresponding to the virtual intermediate() method.
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 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 allSteps() const
Return true if all steps should be considered.
const SelectorBase & s1
One selector to be combined.
void copyIfCheck(OutputIterator r, const Container &c, const SelectorBase &s)
Helper function to be used together with SelectorBase objects.
virtual bool allCollisions() const
Return ture if all collisions should be considered.
const SelectorBase & s1
One selector to be combined.
The SelectIfBoth class can be used to combine other selector objects.
static bool AllCollisions()
Static method corresponding to the virtual allCollisions() method.
const SelectorBase & s2
The other selector to be combined.
SelectIfEither(const SelectorBase &S1, const SelectorBase &S2)
Constructor taking two SelectorBase object to be combiden.
static bool Check(const Particle &p)
Static method corresponding to the virtual check() method.
virtual bool finalState() const
Return true if final state particles are to be considered.
virtual bool allCollisions() const
Return ture if all collisions should be considered.
const SelectorBase & s
The selector to be negated.
virtual bool allSteps() const
Return true if all steps should be considered.
virtual bool intermediate() const
Return true if intermediate particles should be considered.
virtual bool allCollisions() const
Return ture if all collisions should be considered.
SelectIfNot(const SelectorBase &S)
Constructor taking the SelectorBase object to be negated.
virtual bool check(const Particle &p) const
Return true if the particle should be extracted.
The SelectIfNot classes can be used to negate the meaning of another SelectorBase object...
SelectIfBoth(const SelectorBase &S1, const SelectorBase &S2)
Constructor taking two SelectorBase object to be combiden.
virtual bool allSteps() const
Return true if all steps should be considered.
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.
static bool FinalState()
Static method corresponding to the virtual finalState() method.
virtual bool check(const Particle &p) const
Return true if the particle should be extracted.
static bool AllSteps()
Static method corresponding to the virtual allSteps() method.
virtual bool allCollisions() const
Return ture if all collisions should be considered.
The templated ParticleSelector class may be used to implement derived classes from the SelectorBase c...
static bool AllSteps()
Static method corresponding to the virtual allSteps() method.