herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
CheckId.h
1// -*- C++ -*-
2//
3// CheckId.h is a part of Herwig - A multi-purpose Monte Carlo event generator
4// Copyright (C) 2002-2019 The Herwig Collaboration
5//
6// Herwig 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//
10#ifndef HERWIG_CheckId_H
11#define HERWIG_CheckId_H
12//
13// This is the declaration of the CheckId class.
14
16#include "ThePEG/PDT/ParticleData.h"
17#include <ThePEG/PDT/EnumParticles.h>
18#include "ThePEG/Repository/CurrentGenerator.h"
19
20namespace Herwig {
21
22using namespace ThePEG;
23
42namespace CheckId {
43
49 long makeDiquarkID(long id1, long id2, long pspin);
50
55 bool canBeMeson(tcPDPtr par1,tcPDPtr par2);
56
61 bool canBeBaryon(tcPDPtr par1, tcPDPtr par2 , tcPDPtr par3 = PDPtr());
62
67 inline bool canBeHadron(tcPDPtr par1, tcPDPtr par2 , tcPDPtr par3 = PDPtr()) {
68 return (!par3 && canBeMeson(par1,par2)) || canBeBaryon(par1,par2,par3);
69 }
70
71
80 bool hasBottom(tcPDPtr par1, tcPDPtr par2 = PDPtr(), tcPDPtr par3 = PDPtr());
89 bool hasCharm(tcPDPtr par1, tcPDPtr par2 = PDPtr(), tcPDPtr par3 = PDPtr());
94 bool isExotic(tcPDPtr par1, tcPDPtr par2 = PDPtr(), tcPDPtr par3 = PDPtr());
95
96}
97
98}
99
100#endif /* HERWIG_CheckId_H */
bool canBeMeson(tcPDPtr par1, tcPDPtr par2)
Return true if the two particles in input can be the components of a meson; false otherwise.
long makeDiquarkID(long id1, long id2, long pspin)
Return the id of the diquark (anti-diquark) made by the two quarks (antiquarks) of id specified in in...
bool isExotic(tcPDPtr par1, tcPDPtr par2=PDPtr(), tcPDPtr par3=PDPtr())
Return true, if any of the possible input particle pointer is an exotic quark, e.g.
bool hasCharm(tcPDPtr par1, tcPDPtr par2=PDPtr(), tcPDPtr par3=PDPtr())
Return true if any of the possible three input particles has c-flavour; false otherwise....
bool canBeHadron(tcPDPtr par1, tcPDPtr par2, tcPDPtr par3=PDPtr())
Return true if the two or three particles in input can be the components of a hadron; false otherwise...
Definition: CheckId.h:67
bool hasBottom(tcPDPtr par1, tcPDPtr par2=PDPtr(), tcPDPtr par3=PDPtr())
Return true if any of the possible three input particles has b-flavour; false otherwise.
bool canBeBaryon(tcPDPtr par1, tcPDPtr par2, tcPDPtr par3=PDPtr())
Return true if the two or three particles in input can be the components of a baryon; false otherwise...
-*- C++ -*-
ThePEG::Ptr< ParticleData >::transient_const_pointer tcPDPtr
ThePEG::Ptr< ParticleData >::pointer PDPtr