Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

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 44 of file G4InuclParticleNames.hh.

44  { nuclei=0, proton=1, neutron=2,
45  pionPlus=3, pionMinus=5, pionZero=7, photon=9,
46  kaonPlus=11, kaonMinus=13, kaonZero=15, kaonZeroBar=17,
47  lambda=21, sigmaPlus=23, sigmaZero=25, sigmaMinus=27,
48  xiZero=29, xiMinus=31, omegaMinus=33,
49  deuteron=41, triton=43, He3=45, alpha=47,
50  antiProton=51, antiNeutron=53,
52  diproton=111, unboundPN=112, dineutron=122,
53  electronNu=-1, muonNu=-3, tauNu=-5,
55  WMinus=-13, WPlus=-15, Zzero=-17,
56  electron=-21, muonMinus=-23, tauMinus=-25,
57  positron=-27, muonPlus=-29, tauPlus=-31};
static const G4double alpha
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 60 of file G4InuclParticleNames.hh.

static unsigned wp
Definition: csz_inflate.cc:294
static const G4double ele
static const G4double pos

Function Documentation

G4bool G4InuclParticleNames::antibaryon ( G4int  ityp)
inline

Definition at line 114 of file G4InuclParticleNames.hh.

114 { return baryon(ityp) < 0; }

Here is the call graph for this function:

G4bool G4InuclParticleNames::antinucleon ( G4int  ityp)
inline

Definition at line 97 of file G4InuclParticleNames.hh.

Here is the caller graph for this function:

G4int G4InuclParticleNames::baryon ( G4int  ityp)
inline

Definition at line 104 of file G4InuclParticleNames.hh.

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

Here is the caller graph for this function:

G4bool G4InuclParticleNames::hyperon ( G4int  ityp)
inline
G4bool G4InuclParticleNames::isElectron ( G4int  ityp)
inline

Definition at line 84 of file G4InuclParticleNames.hh.

Here is the caller graph for this function:

G4bool G4InuclParticleNames::isMuon ( G4int  ityp)
inline

Definition at line 82 of file G4InuclParticleNames.hh.

Here is the caller graph for this function:

G4bool G4InuclParticleNames::isNeutrino ( G4int  ityp)
inline
G4bool G4InuclParticleNames::isPhoton ( G4int  ityp)
inline

Definition at line 80 of file G4InuclParticleNames.hh.

80 { return (ityp==photon); }

Here is the caller graph for this function:

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

Definition at line 77 of file G4InuclParticleNames.hh.

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

Here is the call graph for this function:

const char * G4InuclParticleNames::nameLong ( G4int  ptype)

Definition at line 39 of file G4InuclParticleNames.cc.

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

Here is the caller graph for this function:

const char * G4InuclParticleNames::nameShort ( G4int  ptype)

Definition at line 92 of file G4InuclParticleNames.cc.

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

Definition at line 95 of file G4InuclParticleNames.hh.

Here is the caller graph for this function:

G4bool G4InuclParticleNames::pion ( G4int  ityp)
inline

Definition at line 91 of file G4InuclParticleNames.hh.

Here is the caller graph for this function:

G4bool G4InuclParticleNames::quasi_deutron ( G4int  ityp)
inline

Definition at line 101 of file G4InuclParticleNames.hh.

101 { return (ityp > 100); }

Here is the caller graph for this function: