CMS 3D CMS Logo

G4TrackToParticleID.h
Go to the documentation of this file.
1 #ifndef SimG4Core_G4TrackToParticleID_H
2 #define SimG4Core_G4TrackToParticleID_H
3 
4 class G4Track;
5 
7 public:
8  // CMS convention (different from ordinary PDG code)
9  static int particleID(const G4Track *);
10 
11  static bool isGammaElectronPositron(int pdgCode);
12  static bool isGammaElectronPositron(const G4Track *);
13 
14  static bool isMuon(int pdgCode);
15  static bool isMuon(const G4Track *);
16 
17  // pi+-, p, pbar, n, nbar, KL, K+-, light ion and anti-ion, generic ion
18  static bool isStableHadron(int pdgCode);
19 
20  // pi+-, p, pbar, n, nbar, KL, K+-, light ions and anti-ions
21  static bool isStableHadronIon(const G4Track *);
22 };
23 
24 #endif
static bool isMuon(int pdgCode)
static bool isStableHadron(int pdgCode)
static int particleID(const G4Track *)
static bool isStableHadronIon(const G4Track *)
static bool isGammaElectronPositron(int pdgCode)