thepeg
is hosted by
Hepforge
,
IPPP Durham
ThePEG
2.3.0
EventRecord
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
22
namespace
ThePEG
{
23
30
struct
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
66
typedef
ParticleSelector<AllSelector>
SelectAll
;
67
68
76
struct
FinalStateSelector
:
public
SelectorBase
{
77
82
static
bool
Intermediate
() {
return
false
; }
83
88
static
bool
AllSteps
() {
return
false
; }
89
90
};
91
94
typedef
ParticleSelector<FinalStateSelector>
SelectFinalState
;
95
103
struct
IntermediateSelector
:
public
SelectorBase
{
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
139
typedef
ParticleSelector<IntermediateSelector>
SelectIntermediates
;
140
148
struct
PrimaryCollisionSelector
:
public
SelectorBase
{
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
184
typedef
ParticleSelector<PrimaryCollisionSelector>
SelectPrimaryCollision
;
185
193
struct
ChargedSelector
:
public
SelectorBase
{
194
199
static
bool
Check
(
const
Particle
& p) {
200
return
ParticleTraits<Particle>::iCharge
(p);
201
}
202
203
};
204
207
typedef
ParticleSelector<ChargedSelector>
SelectCharged
;
208
209
}
210
211
#endif
/* ThePEG_StandardSelectors_H */
ThePEG::Particle
The Particle class is used to describe an instance of a particle.
Definition:
Particle.h:83
ThePEG::SelectorBase
Classes derived from the SelectorBase class are used to extract particles from an Event with Event::s...
Definition:
SelectorBase.h:45
ThePEG
This is the main namespace within which all identifiers in ThePEG are declared.
Definition:
FactoryBase.h:28
ThePEG::SelectPrimaryCollision
ParticleSelector< PrimaryCollisionSelector > SelectPrimaryCollision
Typedef to declare a selector used to extract all particles from the primary Collision of an event.
Definition:
StandardSelectors.h:184
ThePEG::SelectIntermediates
ParticleSelector< IntermediateSelector > SelectIntermediates
Typedef to declare a selector used to extract all intermediate particles from an event.
Definition:
StandardSelectors.h:139
ThePEG::SelectFinalState
ParticleSelector< FinalStateSelector > SelectFinalState
Typedef to declare a selector used to extract all final state particles from an event.
Definition:
StandardSelectors.h:94
ThePEG::SelectAll
ParticleSelector< AllSelector > SelectAll
Typedef to declare a selector used to extract all particles from an event.
Definition:
StandardSelectors.h:66
ThePEG::SelectCharged
ParticleSelector< ChargedSelector > SelectCharged
Typedef to declare a selector used to extract all charged particles from an event.
Definition:
StandardSelectors.h:207
ThePEG::AllSelector
The AllSelector class is used to extract all particles from an event.
Definition:
StandardSelectors.h:30
ThePEG::AllSelector::Intermediate
static bool Intermediate()
Static method corresponding to the virtual intermediate() method.
Definition:
StandardSelectors.h:42
ThePEG::AllSelector::AllSteps
static bool AllSteps()
Static method corresponding to the virtual allSteps() method.
Definition:
StandardSelectors.h:54
ThePEG::AllSelector::FinalState
static bool FinalState()
Static method corresponding to the virtual finalState() method.
Definition:
StandardSelectors.h:48
ThePEG::AllSelector::AllCollisions
static bool AllCollisions()
Static method corresponding to the virtual allCollisions() method.
Definition:
StandardSelectors.h:60
ThePEG::AllSelector::Check
static bool Check(const Particle &)
Static method corresponding to the virtual check() method.
Definition:
StandardSelectors.h:36
ThePEG::ChargedSelector
The ChargedSelector class is used to extract all charged particles from an event.
Definition:
StandardSelectors.h:193
ThePEG::ChargedSelector::Check
static bool Check(const Particle &p)
Static method corresponding to the virtual check() method.
Definition:
StandardSelectors.h:199
ThePEG::FinalStateSelector
The FinalStateSelector class is used to extract all final state particles from an event.
Definition:
StandardSelectors.h:76
ThePEG::FinalStateSelector::Intermediate
static bool Intermediate()
Static method corresponding to the virtual intermediate() method.
Definition:
StandardSelectors.h:82
ThePEG::FinalStateSelector::AllSteps
static bool AllSteps()
Static method corresponding to the virtual allSteps() method.
Definition:
StandardSelectors.h:88
ThePEG::IntermediateSelector
The IntermediateSelector class is used to extract only intermediate particles from an event.
Definition:
StandardSelectors.h:103
ThePEG::IntermediateSelector::AllSteps
static bool AllSteps()
Static method corresponding to the virtual allSteps() method.
Definition:
StandardSelectors.h:127
ThePEG::IntermediateSelector::FinalState
static bool FinalState()
Static method corresponding to the virtual finalState() method.
Definition:
StandardSelectors.h:121
ThePEG::IntermediateSelector::AllCollisions
static bool AllCollisions()
Static method corresponding to the virtual allCollisions() method.
Definition:
StandardSelectors.h:133
ThePEG::IntermediateSelector::Check
static bool Check(const Particle &)
Static method corresponding to the virtual check() method.
Definition:
StandardSelectors.h:109
ThePEG::IntermediateSelector::Intermediate
static bool Intermediate()
Static method corresponding to the virtual intermediate() method.
Definition:
StandardSelectors.h:115
ThePEG::ParticleSelector
The templated ParticleSelector class may be used to implement derived classes from the SelectorBase c...
Definition:
SelectorBase.h:118
ThePEG::ParticleTraits::iCharge
static int iCharge(const PType &p)
Return charge of particle p in units of e/3.
Definition:
ParticleTraits.h:81
ThePEG::PrimaryCollisionSelector
The PrimaryCollisionSelector class is used to extract all particles from the primary Collision of an ...
Definition:
StandardSelectors.h:148
ThePEG::PrimaryCollisionSelector::Check
static bool Check(const Particle &)
Static method corresponding to the virtual check() method.
Definition:
StandardSelectors.h:154
ThePEG::PrimaryCollisionSelector::Intermediate
static bool Intermediate()
Static method corresponding to the virtual intermediate() method.
Definition:
StandardSelectors.h:160
ThePEG::PrimaryCollisionSelector::FinalState
static bool FinalState()
Static method corresponding to the virtual finalState() method.
Definition:
StandardSelectors.h:166
ThePEG::PrimaryCollisionSelector::AllCollisions
static bool AllCollisions()
Static method corresponding to the virtual allCollisions() method.
Definition:
StandardSelectors.h:178
ThePEG::PrimaryCollisionSelector::AllSteps
static bool AllSteps()
Static method corresponding to the virtual allSteps() method.
Definition:
StandardSelectors.h:172
Generated on Thu Jun 20 2024 14:47:00 for ThePEG by
1.9.6