9 int particleID_ = g4trk->GetDefinition()->GetPDGEncoding();
10 if (0 == particleID_) {
12 <<
"G4TrackToParticleID: unknown code 0 for track Id = " << g4trk->GetTrackID();
21 return (pdg == 11 || pdg == 22);
26 int pdg =
std::abs(g4trk->GetDefinition()->GetPDGEncoding());
27 return (pdg == 11 || pdg == 22);
37 return (
std::abs(g4trk->GetDefinition()->GetPDGEncoding()) == 13);
44 return (pdg == 211 || pdg == 2212 || pdg == 2112 || pdg == 130 || pdg == 321
45 || pdg == 1000010020 || pdg == 1000010030
46 || pdg == 1000020030 || pdg == 1000020040);
52 int pdg =
std::abs(g4trk->GetDefinition()->GetPDGEncoding());
53 return (pdg == 211 || pdg == 2212 || pdg == 2112 || pdg == 130 || pdg == 321
54 || pdg == 1000010020 || pdg == 1000010030
55 || pdg == 1000020030 || pdg == 1000020040
56 || g4trk->GetDefinition()->IsGeneralIon());
static bool isMuon(int pdgCode)
static bool isStableHadron(int pdgCode)
Abs< T >::type abs(const T &t)
static int particleID(const G4Track *)
static bool isStableHadronIon(const G4Track *)
static bool isGammaElectronPositron(int pdgCode)