-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparticle_probability.hh
More file actions
44 lines (33 loc) · 898 Bytes
/
particle_probability.hh
File metadata and controls
44 lines (33 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
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
#ifndef PARTICLE_PROBABILITY__HH
#define PARTICLE_PROBABILITY__HH
#include <vector>
#include <string>
#include "decay.hh"
#include "nucleus.hh"
struct Particle_probability{
std::string name;
double prob;
bool operator==(const Particle_probability& a) const
{
return (prob == a.prob);
}
bool operator<(const Particle_probability& a) const
{
return (prob < a.prob);
}
bool operator>(const Particle_probability& a) const
{
return (prob > a.prob);
}
bool operator<=(const Particle_probability& a) const
{
return (prob == a.prob) || (prob < a.prob);
}
bool operator>=(const Particle_probability& a) const
{
return (prob == a.prob) || (prob > a.prob);
}
};
std::vector<Particle_probability> particle_width(std::vector<std::pair<double,Decay> > &table);
void print_table(std::vector<std::pair<double,Decay> > &table, Nucleus n);
#endif