17 #ifndef RIVET_PARTICLE_ID_METHODS_HH 18 #define RIVET_PARTICLE_ID_METHODS_HH 20 #include "Rivet/Particle.hh" 44 int abspid(
const int & pid );
48 bool isValid(
const int & pid );
50 bool isMeson(
const int & pid );
52 bool isBaryon(
const int & pid );
54 bool isDiQuark(
const int & pid );
56 bool isHadron(
const int & pid );
58 bool isLepton(
const int & pid );
60 bool isNucleus(
const int & pid );
62 bool isPentaquark(
const int & pid );
64 bool isSUSY(
const int & pid );
66 bool isRhadron(
const int & pid );
69 bool hasUp(
const int & pid );
71 bool hasDown(
const int & pid );
73 bool hasStrange(
const int & pid );
75 bool hasCharm(
const int & pid );
77 bool hasBottom(
const int & pid );
79 bool hasTop(
const int & pid );
82 int jSpin(
const int & pid );
84 int sSpin(
const int & pid );
86 int lSpin(
const int & pid );
89 int threeCharge(
const int & pid );
91 inline double charge(
const int & pid ) {
return threeCharge(pid)/3.0; }
116 inline int abspid(
const Particle& p) {
return abspid(p.pdgId()); }
119 inline bool isMeson(
const Particle& p ) {
return isMeson(p.pdgId()); }
121 inline bool isBaryon(
const Particle& p ) {
return isBaryon(p.pdgId()); }
123 inline bool isDiQuark(
const Particle& p ) {
return isDiQuark(p.pdgId()); }
125 inline bool isHadron(
const Particle& p ) {
return isHadron(p.pdgId()); }
127 inline bool isLepton(
const Particle& p ) {
return isLepton(p.pdgId()); }
129 inline bool isNucleus(
const Particle& p ) {
return isNucleus(p.pdgId()); }
131 inline bool isPentaquark(
const Particle& p ) {
return isPentaquark(p.pdgId()); }
133 inline bool isSUSY(
const Particle& p ) {
return isSUSY(p.pdgId()); }
135 inline bool isRhadron(
const Particle& p ) {
return isRhadron(p.pdgId()); }
138 inline bool hasUp(
const Particle& p ) {
return hasUp(p.pdgId()); }
140 inline bool hasDown(
const Particle& p ) {
return hasDown(p.pdgId()); }
142 inline bool hasStrange(
const Particle& p ) {
return hasStrange(p.pdgId()); }
144 inline bool hasCharm(
const Particle& p ) {
return hasCharm(p.pdgId()); }
146 inline bool hasBottom(
const Particle& p ) {
return hasBottom(p.pdgId()); }
148 inline bool hasTop(
const Particle& p ) {
return hasTop(p.pdgId()); }
151 inline int jSpin(
const Particle& p ) {
return jSpin(p.pdgId()); }
153 inline int sSpin(
const Particle& p ) {
return sSpin(p.pdgId()); }
155 inline int lSpin(
const Particle& p ) {
return lSpin(p.pdgId()); }
158 inline int threeCharge(
const Particle& p ) {
return threeCharge(p.pdgId()); }
160 inline double charge(
const Particle& p ) {
return threeCharge(p)/3.0; }
Definition: MC_JetAnalysis.hh:9