Newer
Older
#ifndef PARTICLE_HH
#define PARTICLE_HH
#include <string>
#include <iostream>
#include "Parity.hh"
enum ParticleType {parton, lepton, boson, meson, baryon, nucleus, special};
enum DynamicFunction {BW, relBW, relBWBlattWK, undefined};
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
struct ParticleData {
ParticleType type;
std::string name;
std::string texName;
int charge;
double mass;
double width;
int twoJ;
int iso;
int isoThree;
int strange;
int charm;
Parity parity;
Parity chargeParity;
Parity gParity;
ParticleData(){}
ParticleData(ParticleData* other):
type(other->type),
name(other->name),
texName(other->texName),
charge(other->charge),
mass(other->mass),
width(other->width),
twoJ(other->twoJ),
iso(other->iso),
isoThree(other->isoThree),
strange(other->strange),
charm(other->charm),
parity(other->parity),
gParity(other->gParity)
{ }
};
class Particle
{
public:
Particle(ParticleData& data);
Particle(Particle& other);
~Particle();
const std::string& name();
const std::string& texName();
ParticleType type();
int charge();
double mass();
double width();
int twoJ();
double J();
Parity& parity();
Parity& chargeParity();
Parity& gParity();
int iso();
int iso3();
int strange();
int charm();
ParticleData* data();
void print(std::ostream& out);
private:
Particle();
ParticleData* pdata;
};
#endif