#include <HadronUtils.h>
Definition at line 10 of file HadronUtils.h.
◆ HeavyHadron()
bool HadronClass::HeavyHadron |
( |
int |
pdg | ) |
|
|
static |
Definition at line 32 of file HadronUtils.cxx.
33 short typ =
type(pdg).second;
34 short typh =
type(pdg).first;
35 return (typh < 2 && (typ == 4 || typ == 5));
◆ type()
std::pair< short, short > HadronClass::type |
( |
int |
pdg | ) |
|
|
static |
Definition at line 10 of file HadronUtils.cxx.
13 std::ostringstream o; o << abs(pdg);
14 std::string
s = o.str();
17 if (
s.at(
ns-4) !=
'0') {
19 typeP =
atoi(
s.substr(
ns-4,1).c_str());
22 typeP =
atoi(
s.substr(
ns-3,1).c_str());
24 }
else if (
ns == 3 ) {
26 typeP =
atoi(
s.substr(0,1).c_str());
29 return std::make_pair(typeH,typeP);
The documentation for this class was generated from the following files: