ThePEG
1.8.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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-2011 Leif Lonnblad
5
//
6
// ThePEG is licenced under version 2 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 */
Generated on Mon Jul 2 2012 16:06:48 for ThePEG by
1.8.1.1