#include <particleType.h>
Definition at line 29 of file particleType.h.
◆ particleType()
particleType::particleType |
( |
| ) |
|
|
inline |
strange baryons - will decay weakly
Sigma
Xi, Omega etc
Definition at line 38 of file particleType.h.
40 std::map<int, std::string>& ptype = *
this;
48 ptype[-310] =
"K0 bar";
61 ptype[-20213] =
"a1(1260)-";
62 ptype[20213] =
"a1(1260)+";
68 ptype[-12] =
"nue bar";
72 ptype[-14] =
"numu bar";
76 ptype[-16] =
"nutau bar";
79 ptype[18] =
"nutau' bar";
85 ptype[-2112] =
"nbar";
88 ptype[-221] =
"eta bar";
91 ptype[3122] =
"lambda";
92 ptype[-3122] =
"lambda bar";
94 ptype[3112] =
"Sigma-";
95 ptype[-3112] =
"Sigmabar+";
96 ptype[3222] =
"Sigma+";
97 ptype[-3222] =
"Sigmabar-";
99 ptype[-3312] =
"Xbar+";
101 ptype[-3322] =
"Xi0bar";
102 ptype[3334] =
"Omega-";
103 ptype[-3334] =
"Omegabar+";
107 ptype[-1] =
"offline";
◆ ~particleType()
particleType::~particleType |
( |
| ) |
|
|
inline |
◆ charge()
double particleType::charge |
( |
int |
id | ) |
const |
|
inline |
Definition at line 121 of file particleType.h.
122 if (
id>1000000000 )
return 0;
123 const_iterator ptype =
find(
id );
124 if ( ptype==
end() )
return 0;
126 if ( ptype->second.find(
"-")!=std::string::npos )
return -1;
127 if ( ptype->second.find(
"+")!=std::string::npos )
return +1;
◆ type()
std::string particleType::type |
( |
int |
id | ) |
const |
|
inline |
Definition at line 112 of file particleType.h.
113 if (
id>1000000000 )
return "nucleus";
114 const_iterator ptype =
find(
id );
115 if ( ptype==
end() )
return "unknown";
116 else return ptype->second;
◆ elements
T std::map< K, T >::elements |
|
inherited |
◆ keys
The documentation for this class was generated from the following file: