Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4InuclParticleNames Namespace Reference

Enumerations

enum  Long {
  nuclei =0 , proton =1 , neutron =2 , pionPlus =3 ,
  pionMinus =5 , pionZero =7 , photon =9 , kaonPlus =11 ,
  kaonMinus =13 , kaonZero =15 , kaonZeroBar =17 , lambda =21 ,
  sigmaPlus =23 , sigmaZero =25 , sigmaMinus =27 , xiZero =29 ,
  xiMinus =31 , omegaMinus =33 , deuteron =41 , triton =43 ,
  He3 =45 , alpha =47 , antiProton =51 , antiNeutron =53 ,
  antiDeuteron =61 , antiTriton =63 , antiHe3 =65 , antiAlpha =67 ,
  diproton =111 , unboundPN =112 , dineutron =122 , electronNu =-1 ,
  muonNu =-3 , tauNu =-5 , antiElectronNu =-7 , antiMuonNu =-9 ,
  antiTauNu =-11 , WMinus =-13 , WPlus =-15 , Zzero =-17 ,
  electron =-21 , muonMinus =-23 , tauMinus =-25 , positron =-27 ,
  muonPlus =-29 , tauPlus =-31
}
 
enum  Short {
  nuc =nuclei , pro =proton , neu =neutron , pip =pionPlus ,
  pim =pionMinus , pi0 =pionZero , gam =photon , kpl =kaonPlus ,
  kmi =kaonMinus , k0 =kaonZero , k0b =kaonZeroBar , lam =lambda ,
  sp =sigmaPlus , s0 =sigmaZero , sm =sigmaMinus , xi0 =xiZero ,
  xim =xiMinus , om =omegaMinus , deu =deuteron , ap =antiProton ,
  an =antiNeutron , ade =antiDeuteron , atr =antiTriton , ahe =antiHe3 ,
  aal =antiAlpha , pp =diproton , pn =unboundPN , nn =dineutron ,
  enu =electronNu , mnu =muonNu , tnu =tauNu , aenu =antiElectronNu ,
  amnu =antiMuonNu , atnu =antiTauNu , wm =WMinus , wp =WPlus ,
  z0 =Zzero , ele =electron , mum =muonMinus , tm =tauMinus ,
  pos =positron , mup =muonPlus , tp =tauPlus
}
 

Functions

const char * nameLong (G4int ptype)
 
const char * nameShort (G4int ptype)
 
const char * name (G4int ptype)
 
G4bool isPhoton (G4int ityp)
 
G4bool isMuon (G4int ityp)
 
G4bool isElectron (G4int ityp)
 
G4bool isNeutrino (G4int ityp)
 
G4bool pion (G4int ityp)
 
G4bool nucleon (G4int ityp)
 
G4bool antinucleon (G4int ityp)
 
G4bool quasi_deutron (G4int ityp)
 
G4int baryon (G4int ityp)
 
G4bool antibaryon (G4int ityp)
 
G4bool hyperon (G4int ityp)
 

Enumeration Type Documentation

◆ Long

Enumerator
nuclei 
proton 
neutron 
pionPlus 
pionMinus 
pionZero 
photon 
kaonPlus 
kaonMinus 
kaonZero 
kaonZeroBar 
lambda 
sigmaPlus 
sigmaZero 
sigmaMinus 
xiZero 
xiMinus 
omegaMinus 
deuteron 
triton 
He3 
alpha 
antiProton 
antiNeutron 
antiDeuteron 
antiTriton 
antiHe3 
antiAlpha 
diproton 
unboundPN 
dineutron 
electronNu 
muonNu 
tauNu 
antiElectronNu 
antiMuonNu 
antiTauNu 
WMinus 
WPlus 
Zzero 
electron 
muonMinus 
tauMinus 
positron 
muonPlus 
tauPlus 

Definition at line 43 of file G4InuclParticleNames.hh.

43 { nuclei=0, proton=1, neutron=2,
45 kaonPlus=11, kaonMinus=13, kaonZero=15, kaonZeroBar=17,
46 lambda=21, sigmaPlus=23, sigmaZero=25, sigmaMinus=27,
47 xiZero=29, xiMinus=31, omegaMinus=33,
48 deuteron=41, triton=43, He3=45, alpha=47,
51 diproton=111, unboundPN=112, dineutron=122,
52 electronNu=-1, muonNu=-3, tauNu=-5,
54 WMinus=-13, WPlus=-15, Zzero=-17,
55 electron=-21, muonMinus=-23, tauMinus=-25,
56 positron=-27, muonPlus=-29, tauPlus=-31};

◆ Short

Enumerator
nuc 
pro 
neu 
pip 
pim 
pi0 
gam 
kpl 
kmi 
k0 
k0b 
lam 
sp 
s0 
sm 
xi0 
xim 
om 
deu 
ap 
an 
ade 
atr 
ahe 
aal 
pp 
pn 
nn 
enu 
mnu 
tnu 
aenu 
amnu 
atnu 
wm 
wp 
z0 
ele 
mum 
tm 
pos 
mup 
tp 

Definition at line 59 of file G4InuclParticleNames.hh.

Function Documentation

◆ antibaryon()

G4bool G4InuclParticleNames::antibaryon ( G4int  ityp)
inline

Definition at line 113 of file G4InuclParticleNames.hh.

113{ return baryon(ityp) < 0; }

◆ antinucleon()

G4bool G4InuclParticleNames::antinucleon ( G4int  ityp)
inline

Definition at line 96 of file G4InuclParticleNames.hh.

96 {
97 return (ityp==antiProton || ityp==antiNeutron);
98 }

Referenced by G4InuclElementaryParticle::antinucleon().

◆ baryon()

G4int G4InuclParticleNames::baryon ( G4int  ityp)
inline

Definition at line 103 of file G4InuclParticleNames.hh.

103 {
104 return ((ityp==pro || ityp==neu || ityp==lam || ityp==sp || ityp==s0 ||
105 ityp==sm || ityp==xi0 || ityp==xim || ityp==om) ? 1 :
106 (ityp==deu || ityp==pp || ityp==pn || ityp==nn) ? 2 :
107 (ityp==ap || ityp==an) ? -1 :
108 (ityp==ade) ? -2 :
109 (ityp==atr || ityp==ahe) ? -3 :
110 (ityp==aal) ? -4 : 0);
111 }

Referenced by antibaryon().

◆ hyperon()

G4bool G4InuclParticleNames::hyperon ( G4int  ityp)
inline

Definition at line 115 of file G4InuclParticleNames.hh.

115 {
116 return (ityp==lam || ityp==sp || ityp==s0 || ityp==sm || ityp==xi0 ||
117 ityp==xim || ityp==om);
118 }

◆ isElectron()

G4bool G4InuclParticleNames::isElectron ( G4int  ityp)
inline

Definition at line 83 of file G4InuclParticleNames.hh.

83{ return (ityp==electron||ityp==positron); }

Referenced by G4InuclElementaryParticle::isElectron().

◆ isMuon()

G4bool G4InuclParticleNames::isMuon ( G4int  ityp)
inline

Definition at line 81 of file G4InuclParticleNames.hh.

81{ return (ityp==muonMinus||ityp==muonPlus); }

Referenced by G4InuclElementaryParticle::isMuon().

◆ isNeutrino()

G4bool G4InuclParticleNames::isNeutrino ( G4int  ityp)
inline

Definition at line 85 of file G4InuclParticleNames.hh.

85 {
86 return (ityp==electronNu || ityp==muonNu || ityp==tauNu ||
87 ityp==antiElectronNu || ityp==antiMuonNu || ityp==antiTauNu);
88 }

Referenced by G4InuclElementaryParticle::isNeutrino().

◆ isPhoton()

G4bool G4InuclParticleNames::isPhoton ( G4int  ityp)
inline

Definition at line 79 of file G4InuclParticleNames.hh.

79{ return (ityp==photon); }

Referenced by G4InuclElementaryParticle::isPhoton().

◆ name()

const char * G4InuclParticleNames::name ( G4int  ptype)
inline

Definition at line 76 of file G4InuclParticleNames.hh.

76{ return nameLong(ptype); }
const char * nameLong(G4int ptype)

◆ nameLong()

const char * G4InuclParticleNames::nameLong ( G4int  ptype)

Definition at line 38 of file G4InuclParticleNames.cc.

38 {
39 switch (ptype) {
40 case nuclei: return "nuclei"; break;
41 case proton: return "proton"; break;
42 case neutron: return "neutron"; break;
43 case pionPlus: return "pionPlus"; break;
44 case pionMinus: return "pionMinus"; break;
45 case pionZero: return "pionZero"; break;
46 case photon: return "photon"; break;
47 case kaonPlus: return "kaonPlus"; break;
48 case kaonMinus: return "kaonMinus"; break;
49 case kaonZero: return "kaonZero"; break;
50 case kaonZeroBar: return "kaonZeroBar"; break;
51 case lambda: return "lambda"; break;
52 case sigmaPlus: return "sigmaPlus"; break;
53 case sigmaZero: return "sigmaZero"; break;
54 case sigmaMinus: return "sigmaMinus"; break;
55 case xiZero: return "xiZero"; break;
56 case xiMinus: return "xiMinus"; break;
57 case omegaMinus: return "omegaMinus"; break;
58 case deuteron: return "deuteron"; break;
59 case triton: return "triton"; break;
60 case He3: return "He3"; break;
61 case alpha: return "alpha"; break;
62 case antiProton: return "antiProton"; break;
63 case antiNeutron: return "antiNeutron"; break;
64 case antiDeuteron: return "antiDeuteron"; break;
65 case antiTriton: return "antiTriton"; break;
66 case antiHe3: return "antiHe3"; break;
67 case antiAlpha: return "antiAlpha"; break;
68 case diproton: return "diproton"; break;
69 case unboundPN: return "unboundPN"; break;
70 case dineutron: return "dineutron"; break;
71 case electronNu: return "electronNu"; break;
72 case muonNu: return "muonNu"; break;
73 case tauNu: return "tauNu"; break;
74 case antiElectronNu: return "antiElectronNu"; break;
75 case antiMuonNu: return "antiMuonNu"; break;
76 case antiTauNu: return "antiTauNu"; break;
77 case WMinus: return "WMinus"; break;
78 case WPlus: return "WPlus"; break;
79 case Zzero: return "Zzero"; break;
80 case electron: return "electron"; break;
81 case muonMinus: return "muonMinus"; break;
82 case tauMinus: return "tauMinus"; break;
83 case positron: return "positron"; break;
84 case muonPlus: return "muonPlus"; break;
85 case tauPlus: return "tauPlus"; break;
86 default: ;
87 }
88 return "UNKNOWN";
89}

Referenced by name().

◆ nameShort()

const char * G4InuclParticleNames::nameShort ( G4int  ptype)

Definition at line 91 of file G4InuclParticleNames.cc.

91 {
92 switch (ptype) {
93 case nuc: return "nuc"; break;
94 case pro: return "pro"; break;
95 case neu: return "neu"; break;
96 case pip: return "pip"; break;
97 case pim: return "pim"; break;
98 case pi0: return "pi0"; break;
99 case gam: return "gam"; break;
100 case kpl: return "kpl"; break;
101 case kmi: return "kmi"; break;
102 case k0: return "k0"; break;
103 case k0b: return "k0b"; break;
104 case lam: return "lam"; break;
105 case sp: return "sp"; break;
106 case s0: return "s0"; break;
107 case sm: return "sm"; break;
108 case xi0: return "xi0"; break;
109 case xim: return "xim"; break;
110 case om: return "om"; break;
111 case deu: return "deu"; break;
112 case ap: return "ap"; break;
113 case an: return "an"; break;
114 case ade: return "ade"; break;
115 case atr: return "atr"; break;
116 case ahe: return "ahe"; break;
117 case aal: return "aal"; break;
118 case pp: return "pp"; break;
119 case pn: return "pn"; break;
120 case nn: return "nn"; break;
121 case enu: return "enu"; break;
122 case mnu: return "mnu"; break;
123 case tnu: return "tnu"; break;
124 case aenu: return "aenu"; break;
125 case amnu: return "amnu"; break;
126 case atnu: return "atnu"; break;
127 case wm: return "wm"; break;
128 case wp: return "wp"; break;
129 case z0: return "z0"; break;
130 case ele: return "ele"; break;
131 case mum: return "mum"; break;
132 case tm: return "tm"; break;
133 case pos: return "pos"; break;
134 case mup: return "mup"; break;
135 case tp: return "tp"; break;
136 default: ;
137 }
138 return "?";
139}

◆ nucleon()

G4bool G4InuclParticleNames::nucleon ( G4int  ityp)
inline

Definition at line 94 of file G4InuclParticleNames.hh.

94{ return (ityp==proton || ityp==neutron); }

Referenced by G4InuclElementaryParticle::nucleon(), and G4NucleiModel::passFermi().

◆ pion()

G4bool G4InuclParticleNames::pion ( G4int  ityp)
inline

Definition at line 90 of file G4InuclParticleNames.hh.

90 {
91 return (ityp==pionPlus || ityp==pionMinus || ityp==pionZero);
92 }

Referenced by G4InuclElementaryParticle::pion().

◆ quasi_deutron()

G4bool G4InuclParticleNames::quasi_deutron ( G4int  ityp)
inline

Definition at line 100 of file G4InuclParticleNames.hh.

100{ return (ityp > 100); }

Referenced by G4InuclElementaryParticle::quasi_deutron().