9 #ifndef ThePEG_StandardMatchers_H 10 #define ThePEG_StandardMatchers_H 15 #include "ThePEG/PDT/EnumParticles.h" 135 return (
id/10)%10 && (
id/100)%10 && (
id/1000)%10;
156 return (
id/10)%10 && (
id/100)%10 && (
id/1000)%10 == 0;
177 return id/10 && (
id/10)%10 == 0 && (
id/100)%10 && (
id/1000)%10;
197 return id && abs(
id) < 10;
217 return abs(
id) > 10 && abs(
id) <= 20;
239 return id > 0 &&
id < 4 ;
262 return id < 0 && id > -4 ;
286 static string className() {
return "StandardQCDParton"; }
304 return ( (abs(
id)/1000)%1 == 0 && abs(
id) > 100 && abs(
id)%10 == 1 ) ||
308 static string className() {
return "PseudoScalarMeson"; }
327 return (abs(
id)/1000)%1 == 0 && abs(
id) > 100 && abs(
id)%10 == 3;
static bool Check(const ParticleData &pd)
The main static function to check if a given particle type pd matches.
static bool Check(const ParticleData &pd)
The main static function to check if a given particle type pd matches.
A Matcher class which matches any charged particle.
static string className()
A simplified but unique class name.
static string className()
A simplified but unique class name.
static bool Check(long id)
The main static function to check if a given particle with type id matches.
A Matcher class which matches any pseudo scalar meson.
Matcher< BaryonMatcher > MatchBaryon
Gives a MatcherBase class based on BaryonMatcher.
static bool Check(const ParticleData &pd)
The main static function to check if a given particle type pd matches.
Matcher< NegativeMatcher > MatchNegative
Gives a MatcherBase class based on NegativeMatcher.
static string className()
A simplified but unique class name.
static bool Check(const ParticleData &pd)
The main static function to check if a given particle type pd matches.
static bool Check(const ParticleData &pd)
The main static function to check if a given particle type pd matches.
static bool charged(Charge c)
True if the argument corresponds to a non-zero charge.
static bool Check(const ParticleData &pd)
The main static function to check if a given particle type pd matches.
static bool Check(long id)
The main static function to check if a given particle with type id matches.
Matcher< StandardQCDPartonMatcher > MatchStandardQCDParton
Gives a MatcherBase class based on StandardQCDPartonMatcher.
static bool Check(const ParticleData &pd)
The main static function to check if a given particle type pd matches.
A Matcher class which matches any light quark (d,u or s).
static bool Check(long id)
The main static function to check if a given particle with type id matches.
DiquarkMatcher CC
Typedef the class matching the complex conjugate particles.
A Matcher class which matches any particle.
static string className()
A simplified but unique class name.
This is the main namespace within which all identifiers in ThePEG are declared.
static string className()
A simplified but unique class name.
Matcher< LightQuarkMatcher > MatchLightQuark
Gives a MatcherBase class based on LightQuarkMatcher.
static string className()
A simplified but unique class name.
LightAntiQuarkMatcher CC
Typedef the class matching the complex conjugate particles.
Matcher< LeptonMatcher > MatchLepton
Gives a MatcherBase class based on LeptonMatcher.
NeutralMatcher CC
Typedef the class matching the complex conjugate particles.
QuarkMatcher CC
Typedef the class matching the complex conjugate particles.
ParticleData inherits from InterfacedBase and represents the properties of a particle type...
static bool Check(long id)
The main static function to check if a given particle with type id matches.
PositiveMatcher CC
Typedef the class matching the complex conjugate particles.
Matcher< MesonMatcher > MatchMeson
Gives a MatcherBase class based on MesonMatcher.
Matcher< QuarkMatcher > MatchQuark
Gives a MatcherBase class based on QuarkMatcher.
NegativeMatcher CC
Typedef the class matching the complex conjugate particles.
MatcherType is an empty non-polymorphic base class for all matcher classes to be used as template arg...
A Matcher class which matches any lepton.
static bool Check(const ParticleData &pd)
The main static function to check if a given particle type pd matches.
static bool Check(long id)
The main static function to check if a given particle with type id matches.
static bool Check(long id)
The main static function to check if a given particle with type id matches.
static bool Check(const ParticleData &pd)
The main static function to check if a given particle type pd matches.
MesonMatcher CC
Typedef the class matching the complex conjugate particles.
static string className()
A simplified but unique class name.
BaryonMatcher CC
Typedef the class matching the complex conjugate particles.
Matcher is a templated class inheriting from MatcherBase.
A Matcher class which matches any (anti-)quark.
LightQuarkMatcher CC
Typedef the class matching the complex conjugate particles.
PDT::Charge iCharge(PDT::Charge)
Set the charge.
static bool Check(long id)
The main static function to check if a given particle with type id matches.
LeptonMatcher CC
Typedef the class matching the complex conjugate particles.
static string className()
A simplified but unique class name.
Matcher< LightAntiQuarkMatcher > MatchLightAntiQuark
Gives a MatcherBase class based on LightAntiQuarkMatcher.
A Matcher class which matches any positively charged particle.
static bool Check(long id)
The main static function to check if a given particle with type id matches.
StandardQCDPartonMatcher CC
Typedef the class matching the complex conjugate particles.
Matcher< NeutralMatcher > MatchNeutral
Gives a MatcherBase class based on NeutralMatcher.
A Matcher class which matches any negatively charged particle.
A Matcher class which matches any meson.
static bool negative(Charge c)
True if the argument corresponds to a negative charge.
static bool Check(const ParticleData &pd)
The main static function to check if a given particle type pd matches.
A Matcher class which matches any uncharged particle.
VectorMesonMatcher CC
Typedef the class matching the complex conjugate particles.
static bool Check(const ParticleData &pd)
The main static function to check if a given particle type pd matches.
AnyMatcher CC
Typedef the class matching the complex conjugate particles.
A Matcher class which matches any standard QCD parton, ie.
static bool Check(const ParticleData &pd)
The main static function to check if a given particle type pd matches.
Matcher< DiquarkMatcher > MatchDiquark
Gives a MatcherBase class based on DiquarkMatcher.
static bool Check(long id)
The main static function to check if a given particle with type id matches.
static bool positive(Charge c)
True if the argument corresponds to a positive charge.
A Matcher class which matches any light anti-quark ( , or ).
static string className()
A simplified but unique class name.
static string className()
A simplified but unique class name.
A Matcher class which matches any baryon.
static bool Check(const ParticleData &pd)
The main static function to check if a given particle type pd matches.
Matcher< VectorMesonMatcher > MatchVectorMeson
Gives a MatcherBase class based on VectorMesonMatcher.
static string className()
A simplified but unique class name.
A Matcher class which matches any vector meson.
static string className()
A simplified but unique class name.
static string className()
A simplified but unique class name.
static bool Check(long id)
The main static function to check if a given particle with type id matches.
ChargedMatcher CC
Typedef the class matching the complex conjugate particles.
Matcher< AnyMatcher > MatchAny
Gives a MatcherBase class based on AnyMatcher.
long id() const
Return the PDG id number.
static string className()
A simplified but unique class name.
static bool Check(const ParticleData &pd)
The main static function to check if a given particle type pd matches.
Matcher< PositiveMatcher > MatchPositive
Gives a MatcherBase class based on PositiveMatcher.
Matcher< PseudoScalarMesonMatcher > MatchPseudoScalarMeson
Gives a MatcherBase class based on PseudoScalarMesonMatcher.
static string className()
A simplified but unique class name.
Matcher< ChargedMatcher > MatchCharged
Gives a MatcherBase class based on ChargedMatcher.
static bool Check(const ParticleData &pd)
The main static function to check if a given particle type pd matches.
PseudoScalarMesonMatcher CC
Typedef the class matching the complex conjugate particles.
A Matcher class which matches any (anti-)diquark.