LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
PhysListEmStandard Class Reference

#include "PhysListEmStandard.hh"

Inheritance diagram for PhysListEmStandard:

Public Member Functions

 PhysListEmStandard (const G4String &name="standard")
 
 ~PhysListEmStandard ()
 
void ConstructParticle ()
 
void ConstructProcess ()
 

Detailed Description

Definition at line 39 of file PhysListEmStandard.hh.

Constructor & Destructor Documentation

PhysListEmStandard::PhysListEmStandard ( const G4String name = "standard")

Definition at line 59 of file PhysListEmStandard.cc.

60  : G4VPhysicsConstructor(name)
61 { }
PhysListEmStandard::~PhysListEmStandard ( )

Definition at line 65 of file PhysListEmStandard.cc.

66 { }

Member Function Documentation

void PhysListEmStandard::ConstructParticle ( )
inline

Definition at line 47 of file PhysListEmStandard.hh.

References ConstructProcess().

47 {};
void PhysListEmStandard::ConstructProcess ( )

Definition at line 70 of file PhysListEmStandard.cc.

Referenced by ConstructParticle().

71 {
72  G4ParticleTable::G4PTblDicIterator*
73  theParticleIterator = theParticleTable-> GetIterator();
74 
75  // Add standard EM Processes
76 
77  theParticleIterator->reset();
78  while( (*theParticleIterator)() ){
79  G4ParticleDefinition* particle = theParticleIterator->value();
80  G4ProcessManager* pmanager = particle->GetProcessManager();
81  G4String particleName = particle->GetParticleName();
82 
83  if (particleName == "gamma") {
84  // gamma
85  pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
86  pmanager->AddDiscreteProcess(new G4ComptonScattering);
87  pmanager->AddDiscreteProcess(new G4GammaConversion);
88 
89  } else if (particleName == "e-") {
90  //electron
91  pmanager->AddProcess(new G4eMultipleScattering, -1, 1,1);
92  pmanager->AddProcess(new G4eIonisation, -1, 2,2);
93  pmanager->AddProcess(new G4eBremsstrahlung, -1, 3,3);
94 
95  } else if (particleName == "e+") {
96  //positron
97  pmanager->AddProcess(new G4eMultipleScattering, -1, 1,1);
98  pmanager->AddProcess(new G4eIonisation, -1, 2,2);
99  pmanager->AddProcess(new G4eBremsstrahlung, -1, 3,3);
100  pmanager->AddProcess(new G4eplusAnnihilation, 0,-1,4);
101 
102  } else if( particleName == "mu+" ||
103  particleName == "mu-" ) {
104  //muon
105  pmanager->AddProcess(new G4MuMultipleScattering,-1, 1,1);
106  pmanager->AddProcess(new G4MuIonisation, -1, 2,2);
107  pmanager->AddProcess(new G4MuBremsstrahlung, -1, 3,3);
108  pmanager->AddProcess(new G4MuPairProduction, -1, 4,4);
109 
110  } else if( particleName == "alpha" || particleName == "GenericIon" ) {
111  pmanager->AddProcess(new G4hMultipleScattering,-1, 1,1);
112  pmanager->AddProcess(new G4ionIonisation, -1, 2,2);
113 
114  } else if ((!particle->IsShortLived()) &&
115  (particle->GetPDGCharge() != 0.0) &&
116  (particle->GetParticleName() != "chargedgeantino")) {
117  //all others charged particles except geantino
118  pmanager->AddProcess(new G4hMultipleScattering,-1,1,1);
119  pmanager->AddProcess(new G4hIonisation, -1,2,2);
120  }
121  }
122 }

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