Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:29:50

0001 #ifndef SimG4Core_G4TrackToParticleID_H
0002 #define SimG4Core_G4TrackToParticleID_H
0003 
0004 class G4Track;
0005 
0006 class G4TrackToParticleID {
0007 public:
0008   // CMS convention (different from ordinary PDG code)
0009   static int particleID(const G4Track *);
0010 
0011   static bool isGammaElectronPositron(int pdgCode);
0012   static bool isGammaElectronPositron(const G4Track *);
0013 
0014   static bool isMuon(int pdgCode);
0015   static bool isMuon(const G4Track *);
0016 
0017   // pi+-, p, pbar, n, nbar, KL, K+-, light ion and anti-ion, generic ion
0018   static bool isStableHadron(int pdgCode);
0019 
0020   // pi+-, p, pbar, n, nbar, KL, K+-, light ions and anti-ions
0021   static bool isStableHadronIon(const G4Track *);
0022 };
0023 
0024 #endif