Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4QPDGCode.hh File Reference
#include <iostream>
#include "globals.hh"
#include "G4MuonPlus.hh"
#include "G4MuonMinus.hh"
#include "G4TauMinus.hh"
#include "G4TauPlus.hh"
#include "G4Electron.hh"
#include "G4Positron.hh"
#include "G4NeutrinoTau.hh"
#include "G4AntiNeutrinoTau.hh"
#include "G4NeutrinoMu.hh"
#include "G4AntiNeutrinoMu.hh"
#include "G4NeutrinoE.hh"
#include "G4AntiNeutrinoE.hh"
#include "G4PionPlus.hh"
#include "G4PionMinus.hh"
#include "G4PionZero.hh"
#include "G4Eta.hh"
#include "G4EtaPrime.hh"
#include "G4KaonPlus.hh"
#include "G4KaonMinus.hh"
#include "G4KaonZero.hh"
#include "G4AntiKaonZero.hh"
#include "G4KaonZeroLong.hh"
#include "G4KaonZeroShort.hh"
#include "G4DMesonPlus.hh"
#include "G4DMesonMinus.hh"
#include "G4DMesonZero.hh"
#include "G4AntiDMesonZero.hh"
#include "G4DsMesonPlus.hh"
#include "G4DsMesonMinus.hh"
#include "G4JPsi.hh"
#include "G4BMesonPlus.hh"
#include "G4BMesonMinus.hh"
#include "G4BMesonZero.hh"
#include "G4AntiBMesonZero.hh"
#include "G4BsMesonZero.hh"
#include "G4AntiBsMesonZero.hh"
#include "G4Proton.hh"
#include "G4AntiProton.hh"
#include "G4Neutron.hh"
#include "G4AntiNeutron.hh"
#include "G4Lambda.hh"
#include "G4SigmaPlus.hh"
#include "G4SigmaZero.hh"
#include "G4SigmaMinus.hh"
#include "G4XiMinus.hh"
#include "G4XiZero.hh"
#include "G4OmegaMinus.hh"
#include "G4AntiLambda.hh"
#include "G4AntiSigmaPlus.hh"
#include "G4AntiSigmaZero.hh"
#include "G4AntiSigmaMinus.hh"
#include "G4AntiXiMinus.hh"
#include "G4AntiXiZero.hh"
#include "G4AntiOmegaMinus.hh"
#include "G4LambdacPlus.hh"
#include "G4SigmacPlusPlus.hh"
#include "G4SigmacPlus.hh"
#include "G4SigmacZero.hh"
#include "G4XicPlus.hh"
#include "G4XicZero.hh"
#include "G4OmegacZero.hh"
#include "G4AntiLambdacPlus.hh"
#include "G4AntiSigmacPlusPlus.hh"
#include "G4AntiSigmacPlus.hh"
#include "G4AntiSigmacZero.hh"
#include "G4AntiXicPlus.hh"
#include "G4AntiXicZero.hh"
#include "G4AntiOmegacZero.hh"
#include "G4Alpha.hh"
#include "G4Deuteron.hh"
#include "G4He3.hh"
#include "G4Triton.hh"
#include "G4GenericIon.hh"
#include "G4NucleiProperties.hh"
#include "G4QContent.hh"

Go to the source code of this file.

Classes

class  G4QPDGCode
 

Functions

std::ostream & operator<< (std::ostream &lhs, G4QPDGCode &rhs)
 
std::ostream & operator<< (std::ostream &lhs, const G4QPDGCode &rhs)
 
G4int operator+ (const G4QPDGCode &lhs, const G4QPDGCode &rhs)
 
G4int operator+ (const G4QPDGCode &lhs, const G4int &rhs)
 
G4int operator+ (const G4int &lhs, const G4QPDGCode &rhs)
 
G4int operator- (const G4QPDGCode &lhs, const G4QPDGCode &rhs)
 
G4int operator- (const G4QPDGCode &lhs, const G4int &rhs)
 
G4int operator- (const G4int &lhs, const G4QPDGCode &rhs)
 
G4int operator* (const G4QPDGCode &lhs, const G4QPDGCode &rhs)
 
G4int operator* (const G4QPDGCode &lhs, const G4int &rhs)
 
G4int operator* (const G4int &lhs, const G4QPDGCode &rhs)
 
G4int operator/ (const G4QPDGCode &lhs, const G4QPDGCode &rhs)
 
G4int operator/ (const G4QPDGCode &lhs, const G4int &rhs)
 
G4int operator/ (const G4int &lhs, const G4QPDGCode &rhs)
 
G4int operator% (const G4QPDGCode &lhs, const G4int &rhs)
 

Function Documentation

◆ operator%()

G4int operator% ( const G4QPDGCode lhs,
const G4int rhs 
)

Definition at line 204 of file G4QPDGCode.cc.

205{
206 G4int s_value = lhs.GetPDGCode();
207 return s_value %= rhs;
208}
int G4int
Definition: G4Types.hh:66
G4int GetPDGCode() const
Definition: G4QPDGCode.hh:326

◆ operator*() [1/3]

G4int operator* ( const G4int lhs,
const G4QPDGCode rhs 
)

Definition at line 178 of file G4QPDGCode.cc.

179{
180 G4int s_value = lhs;
181 return s_value *= rhs.GetPDGCode();
182}

◆ operator*() [2/3]

G4int operator* ( const G4QPDGCode lhs,
const G4int rhs 
)

Definition at line 172 of file G4QPDGCode.cc.

173{
174 G4int s_value = lhs.GetPDGCode();
175 return s_value *= rhs;
176}

◆ operator*() [3/3]

G4int operator* ( const G4QPDGCode lhs,
const G4QPDGCode rhs 
)

Definition at line 166 of file G4QPDGCode.cc.

167{
168 G4int s_value = lhs.GetPDGCode();
169 return s_value *= rhs.GetPDGCode();
170}

◆ operator+() [1/3]

G4int operator+ ( const G4int lhs,
const G4QPDGCode rhs 
)

Definition at line 142 of file G4QPDGCode.cc.

143{
144 G4int s_value = lhs;
145 return s_value += rhs.GetPDGCode();
146}

◆ operator+() [2/3]

G4int operator+ ( const G4QPDGCode lhs,
const G4int rhs 
)

Definition at line 137 of file G4QPDGCode.cc.

138{
139 G4int s_value = lhs.GetPDGCode();
140 return s_value += rhs;
141}

◆ operator+() [3/3]

G4int operator+ ( const G4QPDGCode lhs,
const G4QPDGCode rhs 
)

Definition at line 132 of file G4QPDGCode.cc.

133{
134 G4int s_value = lhs.GetPDGCode();
135 return s_value += rhs.GetPDGCode();
136}

◆ operator-() [1/3]

G4int operator- ( const G4int lhs,
const G4QPDGCode rhs 
)

Definition at line 159 of file G4QPDGCode.cc.

160{
161 G4int s_value = lhs;
162 return s_value -= rhs.GetPDGCode();
163}

◆ operator-() [2/3]

G4int operator- ( const G4QPDGCode lhs,
const G4int rhs 
)

Definition at line 154 of file G4QPDGCode.cc.

155{
156 G4int s_value = lhs.GetPDGCode();
157 return s_value -= rhs;
158}

◆ operator-() [3/3]

G4int operator- ( const G4QPDGCode lhs,
const G4QPDGCode rhs 
)

Definition at line 149 of file G4QPDGCode.cc.

150{
151 G4int s_value = lhs.GetPDGCode();
152 return s_value -= rhs.GetPDGCode();
153}

◆ operator/() [1/3]

G4int operator/ ( const G4int lhs,
const G4QPDGCode rhs 
)

Definition at line 197 of file G4QPDGCode.cc.

198{
199 G4int s_value = lhs;
200 return s_value /= rhs.GetPDGCode();
201}

◆ operator/() [2/3]

G4int operator/ ( const G4QPDGCode lhs,
const G4int rhs 
)

Definition at line 191 of file G4QPDGCode.cc.

192{
193 G4int s_value = lhs.GetPDGCode();
194 return s_value /= rhs;
195}

◆ operator/() [3/3]

G4int operator/ ( const G4QPDGCode lhs,
const G4QPDGCode rhs 
)

Definition at line 185 of file G4QPDGCode.cc.

186{
187 G4int s_value = lhs.GetPDGCode();
188 return s_value /= rhs.GetPDGCode();
189}

◆ operator<<() [1/2]

std::ostream & operator<< ( std::ostream &  lhs,
const G4QPDGCode rhs 
)

Definition at line 125 of file G4QPDGCode.cc.

126{
127 lhs << "[ PDG=" << rhs.GetPDGCode() << ", Q=" << rhs.GetQCode() << "]";
128 return lhs;
129}
G4int GetQCode() const
Definition: G4QPDGCode.hh:327

◆ operator<<() [2/2]

std::ostream & operator<< ( std::ostream &  lhs,
G4QPDGCode rhs 
)

Definition at line 118 of file G4QPDGCode.cc.

119{
120 lhs << "[ PDG=" << rhs.GetPDGCode() << ", Q=" << rhs.GetQCode() << "]";
121 return lhs;
122}