/[PAMELA software]/PamG4/src/G4EMBuilder.cc
ViewVC logotype

Contents of /PamG4/src/G4EMBuilder.cc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Tue Dec 13 16:20:39 2005 UTC (19 years ago) by cafagna
Branch: start, MAIN
CVS Tags: v1r0, bogo, HEAD
Changes since 1.1: +0 -0 lines
Geant4 code for ND and Calorimeter

1 #include "G4EMBuilder.hh"
2
3 #include "globals.hh"
4 #include "G4ios.hh"
5
6
7 G4EMBuilder::
8 G4EMBuilder() {}
9
10 G4EMBuilder::
11 ~G4EMBuilder() {}
12
13 #include "G4ParticleDefinition.hh"
14 #include "G4ParticleTable.hh"
15 #include "G4Gamma.hh"
16 #include "G4Electron.hh"
17 #include "G4Positron.hh"
18 #include "G4ProcessManager.hh"
19
20
21 void G4EMBuilder::Build()
22 {
23 G4ProcessManager * pManager = 0;
24
25 pManager = G4Gamma::Gamma()->GetProcessManager();
26 pManager->AddDiscreteProcess(&thePhotoEffect);
27 pManager->AddDiscreteProcess(&theComptonEffect);
28 pManager->AddDiscreteProcess(&thePairProduction);
29
30 pManager = G4Electron::Electron()->GetProcessManager();
31 pManager->AddDiscreteProcess(&theElectronBremsStrahlung);
32 pManager->AddProcess(&theElectronIonisation, ordInActive,2, 2);
33 pManager->AddProcess(&theElectronMultipleScattering);
34 pManager->SetProcessOrdering(&theElectronMultipleScattering, idxAlongStep, 1);
35 pManager->SetProcessOrdering(&theElectronMultipleScattering, idxPostStep, 1);
36
37 pManager = G4Positron::Positron()->GetProcessManager();
38 pManager->AddDiscreteProcess(&thePositronBremsStrahlung);
39 pManager->AddDiscreteProcess(&theAnnihilation);
40 pManager->AddRestProcess(&theAnnihilation);
41 pManager->AddProcess(&thePositronIonisation, ordInActive,2, 2);
42 pManager->AddProcess(&thePositronMultipleScattering);
43 pManager->SetProcessOrdering(&thePositronMultipleScattering, idxAlongStep, 1);
44 pManager->SetProcessOrdering(&thePositronMultipleScattering, idxPostStep, 1);
45
46 }
47

  ViewVC Help
Powered by ViewVC 1.1.23