8 int particleID_ = g4trk->GetDefinition()->GetPDGEncoding();
9 if (0 == particleID_) {
11 <<
"G4TrackToParticleID: unknown code 0 for track Id = " << g4trk->GetTrackID();
19 return (pdg == 11 || pdg == 22);
23 int pdg =
std::abs(g4trk->GetDefinition()->GetPDGEncoding());
24 return (pdg == 11 || pdg == 22);
30 return (
std::abs(g4trk->GetDefinition()->GetPDGEncoding()) == 13);
36 return (pdg == 211 || pdg == 2212 || pdg == 2112 || pdg == 130 || pdg == 321 || pdg == 1000010020 ||
37 pdg == 1000010030 || pdg == 1000020030 || pdg == 1000020040);
42 int pdg =
std::abs(g4trk->GetDefinition()->GetPDGEncoding());
43 return (pdg == 211 || pdg == 2212 || pdg == 2112 || pdg == 130 || pdg == 321 || pdg == 1000010020 ||
44 pdg == 1000010030 || pdg == 1000020030 || pdg == 1000020040 || 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)