Main Page
Namespaces
Classes
Package Documentation
SimG4Core
Notification
interface
G4TrackToParticleID.h
Go to the documentation of this file.
1
#ifndef SimG4Core_G4TrackToParticleID_H
2
#define SimG4Core_G4TrackToParticleID_H
3
4
class
G4Track;
5
6
class
G4TrackToParticleID
7
{
8
public
:
9
// CMS convention (different from ordinary PDG code)
10
static
int
particleID
(
const
G4Track *);
11
12
static
bool
isGammaElectronPositron
(
int
pdgCode);
13
static
bool
isGammaElectronPositron
(
const
G4Track *);
14
15
static
bool
isMuon
(
int
pdgCode);
16
static
bool
isMuon
(
const
G4Track *);
17
18
// pi+-, p, pbar, n, nbar, KL, K+-, light ion and anti-ion, generic ion
19
static
bool
isStableHadron
(
int
pdgCode);
20
21
// pi+-, p, pbar, n, nbar, KL, K+-, light ions and anti-ions
22
static
bool
isStableHadronIon
(
const
G4Track *);
23
};
24
25
#endif
G4TrackToParticleID
Definition:
G4TrackToParticleID.h:6
G4TrackToParticleID::isMuon
static bool isMuon(int pdgCode)
Definition:
G4TrackToParticleID.cc:30
G4TrackToParticleID::isStableHadron
static bool isStableHadron(int pdgCode)
Definition:
G4TrackToParticleID.cc:40
G4TrackToParticleID::particleID
static int particleID(const G4Track *)
Definition:
G4TrackToParticleID.cc:7
G4TrackToParticleID::isStableHadronIon
static bool isStableHadronIon(const G4Track *)
Definition:
G4TrackToParticleID.cc:49
G4TrackToParticleID::isGammaElectronPositron
static bool isGammaElectronPositron(int pdgCode)
Definition:
G4TrackToParticleID.cc:18
Generated for CMSSW Reference Manual by
1.8.11