thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
StandardSelectors.h
Go to the documentation of this file.
1// -*- C++ -*-
2//
3// StandardSelectors.h is a part of ThePEG - Toolkit for HEP Event Generation
4// Copyright (C) 1999-2019 Leif Lonnblad
5//
6// ThePEG is licenced under version 3 of the GPL, see COPYING for details.
7// Please respect the MCnet academic guidelines, see GUIDELINES for details.
8//
9#ifndef ThePEG_StandardSelectors_H
10#define ThePEG_StandardSelectors_H
11
19#include "SelectorBase.h"
20#include "ParticleTraits.h"
21
22namespace ThePEG {
23
30struct AllSelector: public SelectorBase {
31
36 static bool Check(const Particle &) { return true; }
37
42 static bool Intermediate() { return true; }
43
48 static bool FinalState() { return true; }
49
54 static bool AllSteps() { return true; }
55
60 static bool AllCollisions() { return true; }
61
62};
63
67
68
77
82 static bool Intermediate() { return false; }
83
88 static bool AllSteps() { return false; }
89
90};
91
95
104
109 static bool Check(const Particle &) { return true; }
110
115 static bool Intermediate() { return true; }
116
121 static bool FinalState() { return false; }
122
127 static bool AllSteps() { return true; }
128
133 static bool AllCollisions() { return true; }
134
135};
136
140
149
154 static bool Check(const Particle &) { return true; }
155
160 static bool Intermediate() { return true; }
161
166 static bool FinalState() { return true; }
167
172 static bool AllSteps() { return true; }
173
178 static bool AllCollisions() { return false; }
179
180};
181
185
194
199 static bool Check(const Particle & p) {
201 }
202
203};
204
208
209}
210
211#endif /* ThePEG_StandardSelectors_H */
The Particle class is used to describe an instance of a particle.
Definition: Particle.h:83
Classes derived from the SelectorBase class are used to extract particles from an Event with Event::s...
Definition: SelectorBase.h:45
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28
ParticleSelector< PrimaryCollisionSelector > SelectPrimaryCollision
Typedef to declare a selector used to extract all particles from the primary Collision of an event.
ParticleSelector< IntermediateSelector > SelectIntermediates
Typedef to declare a selector used to extract all intermediate particles from an event.
ParticleSelector< FinalStateSelector > SelectFinalState
Typedef to declare a selector used to extract all final state particles from an event.
ParticleSelector< AllSelector > SelectAll
Typedef to declare a selector used to extract all particles from an event.
ParticleSelector< ChargedSelector > SelectCharged
Typedef to declare a selector used to extract all charged particles from an event.
The AllSelector class is used to extract all particles from an event.
static bool Intermediate()
Static method corresponding to the virtual intermediate() method.
static bool AllSteps()
Static method corresponding to the virtual allSteps() method.
static bool FinalState()
Static method corresponding to the virtual finalState() method.
static bool AllCollisions()
Static method corresponding to the virtual allCollisions() method.
static bool Check(const Particle &)
Static method corresponding to the virtual check() method.
The ChargedSelector class is used to extract all charged particles from an event.
static bool Check(const Particle &p)
Static method corresponding to the virtual check() method.
The FinalStateSelector class is used to extract all final state particles from an event.
static bool Intermediate()
Static method corresponding to the virtual intermediate() method.
static bool AllSteps()
Static method corresponding to the virtual allSteps() method.
The IntermediateSelector class is used to extract only intermediate particles from an event.
static bool AllSteps()
Static method corresponding to the virtual allSteps() method.
static bool FinalState()
Static method corresponding to the virtual finalState() method.
static bool AllCollisions()
Static method corresponding to the virtual allCollisions() method.
static bool Check(const Particle &)
Static method corresponding to the virtual check() method.
static bool Intermediate()
Static method corresponding to the virtual intermediate() method.
The templated ParticleSelector class may be used to implement derived classes from the SelectorBase c...
Definition: SelectorBase.h:118
static int iCharge(const PType &p)
Return charge of particle p in units of e/3.
The PrimaryCollisionSelector class is used to extract all particles from the primary Collision of an ...
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 AllCollisions()
Static method corresponding to the virtual allCollisions() method.
static bool AllSteps()
Static method corresponding to the virtual allSteps() method.