Geant4-11
Static Public Member Functions
G4EmBuilder Class Reference

#include <G4EmBuilder.hh>

Static Public Member Functions

static void ConstructBasicEmPhysics (G4hMultipleScattering *hmsc, const std::vector< G4int > &listHadrons)
 
static void ConstructCharged (G4hMultipleScattering *hmsc, G4NuclearStopping *nucStopping, G4bool isWVI=true)
 
static void ConstructChargedSS (G4hMultipleScattering *hmsc)
 
static void ConstructIonEmPhysics (G4hMultipleScattering *hmsc, G4NuclearStopping *nucStopping)
 
static void ConstructIonEmPhysicsSS ()
 
static void ConstructLightHadrons (G4ParticleDefinition *part1, G4ParticleDefinition *part2, G4bool isHEP, G4bool isProton, G4bool isWVI)
 
static void ConstructLightHadronsSS (G4ParticleDefinition *part1, G4ParticleDefinition *part2, G4bool isHEP)
 
static void ConstructMinimalEmSet ()
 
static void PrepareEMPhysics ()
 

Detailed Description

Definition at line 44 of file G4EmBuilder.hh.

Member Function Documentation

◆ ConstructBasicEmPhysics()

void G4EmBuilder::ConstructBasicEmPhysics ( G4hMultipleScattering hmsc,
const std::vector< G4int > &  listHadrons 
)
static

Definition at line 92 of file G4EmBuilder.cc.

94{
97
98 for( auto & pdg : partList ) {
99 auto part = table->FindParticle( pdg );
100 if ( part == nullptr || part->GetPDGCharge() == 0.0 ) { continue; }
101 ph->RegisterProcess(hmsc, part);
102 ph->RegisterProcess(new G4hIonisation(), part);
103 }
104}
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4PhysicsListHelper * GetPhysicsListHelper()

References G4ParticleTable::FindParticle(), G4ParticleTable::GetParticleTable(), G4PhysicsListHelper::GetPhysicsListHelper(), and G4PhysicsListHelper::RegisterProcess().

Referenced by ConstructCharged(), and ConstructChargedSS().

◆ ConstructCharged()

void G4EmBuilder::ConstructCharged ( G4hMultipleScattering hmsc,
G4NuclearStopping nucStopping,
G4bool  isWVI = true 
)
static

Definition at line 219 of file G4EmBuilder.cc.

222{
226 G4bool isHEP = ( param->MaxKinEnergy() > hpar->EnergyThresholdForHeavyHadrons() );
227
228 // muon multiple and single scattering
230 if(isWVI) { mumsc->SetEmModel(new G4WentzelVIModel()); }
231 G4CoulombScattering* muss = ( isWVI ) ? new G4CoulombScattering() : nullptr;
232
233 // Add standard EM Processes
234 // mu+-
236 ph->RegisterProcess(mumsc, part);
237 ph->RegisterProcess(new G4MuIonisation(), part);
238
239 // muon bremsstrahlung and pair production
240 G4MuBremsstrahlung* mub = ( isHEP ) ? new G4MuBremsstrahlung() : nullptr;
241 G4MuPairProduction* mup = ( isHEP ) ? new G4MuPairProduction() : nullptr;
242
243 if( isHEP ) {
244 ph->RegisterProcess(mub, part);
245 ph->RegisterProcess(mup, part);
246 }
247 if( isWVI ) { ph->RegisterProcess(muss, part); }
248
249 part = G4MuonMinus::MuonMinus();
250 ph->RegisterProcess(mumsc, part);
251 ph->RegisterProcess(new G4MuIonisation(), part);
252 if( isHEP ) {
253 ph->RegisterProcess(mub, part);
254 ph->RegisterProcess(mup, part);
255 }
256 if( isWVI ) { ph->RegisterProcess(muss, part); }
257
258 // pi+-
260
261 // K+-
263
264 // p, pbar
266 if( nucStopping != nullptr ) {
267 ph->RegisterProcess(nucStopping, G4Proton::Proton());
268 }
269
270 // ions
271 ConstructIonEmPhysics(hmsc, nucStopping);
272
273 // hyperons and anti particles
274 if( isHEP ) {
276
277 // b- and c- charged particles
278 if( hpar->EnableBCParticles() ) {
280 }
281 // light hyper-nuclei
282 if( hpar->EnableHyperNuclei() ) {
284 }
285 }
286}
bool G4bool
Definition: G4Types.hh:86
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:92
static void ConstructLightHadrons(G4ParticleDefinition *part1, G4ParticleDefinition *part2, G4bool isHEP, G4bool isProton, G4bool isWVI)
Definition: G4EmBuilder.cc:155
static void ConstructIonEmPhysics(G4hMultipleScattering *hmsc, G4NuclearStopping *nucStopping)
Definition: G4EmBuilder.cc:106
static void ConstructBasicEmPhysics(G4hMultipleScattering *hmsc, const std::vector< G4int > &listHadrons)
Definition: G4EmBuilder.cc:92
static G4EmParameters * Instance()
G4double MaxKinEnergy() const
static const std::vector< G4int > & GetBCChargedHadrons()
static const std::vector< G4int > & GetHeavyChargedParticles()
static const std::vector< G4int > & GetChargedHyperNuclei()
static G4HadronicParameters * Instance()
G4bool EnableHyperNuclei() const
G4bool EnableBCParticles() const
G4double EnergyThresholdForHeavyHadrons() const
static G4KaonMinus * KaonMinus()
Definition: G4KaonMinus.cc:112
static G4KaonPlus * KaonPlus()
Definition: G4KaonPlus.cc:112
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:99
static G4MuonPlus * MuonPlus()
Definition: G4MuonPlus.cc:98
static G4PionMinus * PionMinus()
Definition: G4PionMinus.cc:97
static G4PionPlus * PionPlus()
Definition: G4PionPlus.cc:97
static G4Proton * Proton()
Definition: G4Proton.cc:92
void SetEmModel(G4VMscModel *, G4int idx=0)

References G4AntiProton::AntiProton(), ConstructBasicEmPhysics(), ConstructIonEmPhysics(), ConstructLightHadrons(), G4HadronicParameters::EnableBCParticles(), G4HadronicParameters::EnableHyperNuclei(), G4HadronicParameters::EnergyThresholdForHeavyHadrons(), G4HadParticles::GetBCChargedHadrons(), G4HadParticles::GetChargedHyperNuclei(), G4HadParticles::GetHeavyChargedParticles(), G4PhysicsListHelper::GetPhysicsListHelper(), G4EmParameters::Instance(), G4HadronicParameters::Instance(), G4KaonMinus::KaonMinus(), G4KaonPlus::KaonPlus(), G4EmParameters::MaxKinEnergy(), G4MuonMinus::MuonMinus(), G4MuonPlus::MuonPlus(), G4InuclParticleNames::mup, G4PionMinus::PionMinus(), G4PionPlus::PionPlus(), G4Proton::Proton(), G4PhysicsListHelper::RegisterProcess(), and G4VMultipleScattering::SetEmModel().

Referenced by G4EmLivermorePhysics::ConstructProcess(), G4EmLowEPPhysics::ConstructProcess(), G4EmPenelopePhysics::ConstructProcess(), G4EmStandardPhysics::ConstructProcess(), G4EmStandardPhysics_option1::ConstructProcess(), G4EmStandardPhysics_option2::ConstructProcess(), G4EmStandardPhysics_option3::ConstructProcess(), G4EmStandardPhysics_option4::ConstructProcess(), G4EmStandardPhysicsGS::ConstructProcess(), and G4EmStandardPhysicsWVI::ConstructProcess().

◆ ConstructChargedSS()

void G4EmBuilder::ConstructChargedSS ( G4hMultipleScattering hmsc)
static

Definition at line 288 of file G4EmBuilder.cc.

289{
293 G4bool isHEP = ( param->MaxKinEnergy() > hpar->EnergyThresholdForHeavyHadrons() );
294
295 // muon multiple and single scattering
297
298 // Add standard EM Processes
299 // mu+-
301 ph->RegisterProcess(new G4MuIonisation(), part);
302
303 // muon bremsstrahlung and pair production
304 G4MuBremsstrahlung* mub = ( isHEP ) ? new G4MuBremsstrahlung() : nullptr;
305 G4MuPairProduction* mup = ( isHEP ) ? new G4MuPairProduction() : nullptr;
306
307 if( isHEP ) {
308 ph->RegisterProcess(mub, part);
309 ph->RegisterProcess(mup, part);
310 }
311 ph->RegisterProcess(muss, part);
312
313 part = G4MuonMinus::MuonMinus();
314 ph->RegisterProcess(new G4MuIonisation(), part);
315 if( isHEP ) {
316 ph->RegisterProcess(mub, part);
317 ph->RegisterProcess(mup, part);
318 }
319 ph->RegisterProcess(muss, part);
320
321 // pi+-
323
324 // K+-
326
327 // p, pbar
329 // ions
331
332 // hyperons and anti particles
333 if( isHEP ) {
335
336 // b- and c- charged particles
337 if( hpar->EnableBCParticles() ) {
339 }
340 // light hyper-nuclei
341 if( hpar->EnableHyperNuclei() ) {
343 }
344 }
345}
static void ConstructIonEmPhysicsSS()
Definition: G4EmBuilder.cc:134
static void ConstructLightHadronsSS(G4ParticleDefinition *part1, G4ParticleDefinition *part2, G4bool isHEP)
Definition: G4EmBuilder.cc:194

References G4AntiProton::AntiProton(), ConstructBasicEmPhysics(), ConstructIonEmPhysicsSS(), ConstructLightHadronsSS(), G4HadronicParameters::EnableBCParticles(), G4HadronicParameters::EnableHyperNuclei(), G4HadronicParameters::EnergyThresholdForHeavyHadrons(), G4HadParticles::GetBCChargedHadrons(), G4HadParticles::GetChargedHyperNuclei(), G4HadParticles::GetHeavyChargedParticles(), G4PhysicsListHelper::GetPhysicsListHelper(), G4EmParameters::Instance(), G4HadronicParameters::Instance(), G4KaonMinus::KaonMinus(), G4KaonPlus::KaonPlus(), G4EmParameters::MaxKinEnergy(), G4MuonMinus::MuonMinus(), G4MuonPlus::MuonPlus(), G4InuclParticleNames::mup, G4PionMinus::PionMinus(), G4PionPlus::PionPlus(), G4Proton::Proton(), and G4PhysicsListHelper::RegisterProcess().

Referenced by G4EmStandardPhysicsSS::ConstructProcess().

◆ ConstructIonEmPhysics()

void G4EmBuilder::ConstructIonEmPhysics ( G4hMultipleScattering hmsc,
G4NuclearStopping nucStopping 
)
static

Definition at line 106 of file G4EmBuilder.cc.

108{
110
112 ph->RegisterProcess(hmsc, part);
113 ph->RegisterProcess(new G4hIonisation(), part);
114
115 part = G4Triton::Triton();
116 ph->RegisterProcess(hmsc, part);
117 ph->RegisterProcess(new G4hIonisation(), part);
118
119 part = G4Alpha::Alpha();
120 ph->RegisterProcess(new G4hMultipleScattering(), part);
121 ph->RegisterProcess(new G4ionIonisation(), part);
122 if( nucStopping != nullptr ) {
123 ph->RegisterProcess(nucStopping, part);
124 }
125
126 part = G4He3::He3();
127 ph->RegisterProcess(new G4hMultipleScattering(), part);
128 ph->RegisterProcess(new G4ionIonisation(), part);
129 if( nucStopping != nullptr ) {
130 ph->RegisterProcess(nucStopping, part);
131 }
132}
static G4Alpha * Alpha()
Definition: G4Alpha.cc:88
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:93
static G4He3 * He3()
Definition: G4He3.cc:93
static G4Triton * Triton()
Definition: G4Triton.cc:93

References G4Alpha::Alpha(), G4Deuteron::Deuteron(), G4PhysicsListHelper::GetPhysicsListHelper(), G4He3::He3(), G4PhysicsListHelper::RegisterProcess(), and G4Triton::Triton().

Referenced by ConstructCharged().

◆ ConstructIonEmPhysicsSS()

void G4EmBuilder::ConstructIonEmPhysicsSS ( )
static

◆ ConstructLightHadrons()

void G4EmBuilder::ConstructLightHadrons ( G4ParticleDefinition part1,
G4ParticleDefinition part2,
G4bool  isHEP,
G4bool  isProton,
G4bool  isWVI 
)
static

Definition at line 155 of file G4EmBuilder.cc.

159{
161
163 if(isWVI) { msc->SetEmModel(new G4WentzelVIModel()); }
164 G4CoulombScattering* ss = ( isWVI ) ? new G4CoulombScattering() : nullptr;
165
166 ph->RegisterProcess(msc, part1);
167 ph->RegisterProcess(new G4hIonisation(), part1);
168
169 G4hBremsstrahlung* brem = ( isHEP ) ? new G4hBremsstrahlung() : nullptr;
170 G4hPairProduction* pair = ( isHEP ) ? new G4hPairProduction() : nullptr;
171
172 if( isHEP ) {
173 ph->RegisterProcess(brem, part1);
174 ph->RegisterProcess(pair, part1);
175 }
176 if( isWVI ) { ph->RegisterProcess(ss, part1); }
177
178 if( isProton ) {
179 msc = new G4hMultipleScattering();
180 if(isWVI) {
181 msc->SetEmModel(new G4WentzelVIModel());
182 ss = new G4CoulombScattering();
183 }
184 }
185 ph->RegisterProcess(msc, part2);
186 ph->RegisterProcess(new G4hIonisation(), part2);
187 if( isHEP ) {
188 ph->RegisterProcess(brem, part2);
189 ph->RegisterProcess(pair, part2);
190 }
191 if( isWVI ) { ph->RegisterProcess(ss, part2); }
192}

References G4PhysicsListHelper::GetPhysicsListHelper(), G4PhysicsListHelper::RegisterProcess(), and G4VMultipleScattering::SetEmModel().

Referenced by ConstructCharged().

◆ ConstructLightHadronsSS()

void G4EmBuilder::ConstructLightHadronsSS ( G4ParticleDefinition part1,
G4ParticleDefinition part2,
G4bool  isHEP 
)
static

Definition at line 194 of file G4EmBuilder.cc.

197{
199
200 ph->RegisterProcess(new G4hIonisation(), part1);
201
202 G4hBremsstrahlung* brem = ( isHEP ) ? new G4hBremsstrahlung() : nullptr;
203 G4hPairProduction* pair = ( isHEP ) ? new G4hPairProduction() : nullptr;
204
205 if( isHEP ) {
206 ph->RegisterProcess(brem, part1);
207 ph->RegisterProcess(pair, part1);
208 }
209 ph->RegisterProcess(new G4CoulombScattering(), part1);
210
211 ph->RegisterProcess(new G4hIonisation(), part2);
212 if( isHEP ) {
213 ph->RegisterProcess(brem, part2);
214 ph->RegisterProcess(pair, part2);
215 }
216 ph->RegisterProcess(new G4CoulombScattering(), part2);
217}

References G4PhysicsListHelper::GetPhysicsListHelper(), and G4PhysicsListHelper::RegisterProcess().

Referenced by ConstructChargedSS().

◆ ConstructMinimalEmSet()

void G4EmBuilder::ConstructMinimalEmSet ( )
static

Definition at line 347 of file G4EmBuilder.cc.

348{
349 // pseudo-particles
352 // gamma
354 // leptons
359 // mesons
364 // barions
367 // ions
370 G4He3::He3();
373}
static G4ChargedGeantino * ChargedGeantinoDefinition()
static G4Electron * Electron()
Definition: G4Electron.cc:93
static G4Gamma * Gamma()
Definition: G4Gamma.cc:85
static G4Geantino * GeantinoDefinition()
Definition: G4Geantino.cc:81
static G4GenericIon * GenericIonDefinition()
Definition: G4GenericIon.cc:87
static G4Positron * Positron()
Definition: G4Positron.cc:93

References G4Alpha::Alpha(), G4AntiProton::AntiProton(), G4ChargedGeantino::ChargedGeantinoDefinition(), G4Deuteron::Deuteron(), G4Electron::Electron(), G4Gamma::Gamma(), G4Geantino::GeantinoDefinition(), G4GenericIon::GenericIonDefinition(), G4He3::He3(), G4KaonMinus::KaonMinus(), G4KaonPlus::KaonPlus(), G4MuonMinus::MuonMinus(), G4MuonPlus::MuonPlus(), G4PionMinus::PionMinus(), G4PionPlus::PionPlus(), G4Positron::Positron(), G4Proton::Proton(), and G4Triton::Triton().

Referenced by G4EmLivermorePhysics::ConstructParticle(), G4EmLowEPPhysics::ConstructParticle(), G4EmPenelopePhysics::ConstructParticle(), G4EmStandardPhysics::ConstructParticle(), G4EmStandardPhysics_option1::ConstructParticle(), G4EmStandardPhysics_option2::ConstructParticle(), G4EmStandardPhysics_option3::ConstructParticle(), G4EmStandardPhysics_option4::ConstructParticle(), G4EmStandardPhysicsGS::ConstructParticle(), G4EmStandardPhysicsSS::ConstructParticle(), and G4EmStandardPhysicsWVI::ConstructParticle().

◆ PrepareEMPhysics()

void G4EmBuilder::PrepareEMPhysics ( )
static

The documentation for this class was generated from the following files: