LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 40 of file PhysListEmStandard.hh.

Constructor & Destructor Documentation

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

Definition at line 60 of file PhysListEmStandard.cc.

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

Definition at line 66 of file PhysListEmStandard.cc.

67 { }

Member Function Documentation

void PhysListEmStandard::ConstructParticle ( )
inline

Definition at line 48 of file PhysListEmStandard.hh.

References ConstructProcess().

48 {};
void PhysListEmStandard::ConstructProcess ( )

Definition at line 71 of file PhysListEmStandard.cc.

Referenced by ConstructParticle().

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

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