BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
BesEMPhysics.cc
Go to the documentation of this file.
1
2#include "BesEMPhysics.hh"
3
4#include "globals.hh"
5#include "G4ios.hh"
6#include <iomanip>
7
8
9BesEMPhysics::BesEMPhysics(const G4String& name)
10 : G4VPhysicsConstructor(name)
11{
12}
13
15{
16}
17
18#include "G4ParticleDefinition.hh"
19#include "G4ParticleTable.hh"
20
21#include "G4Gamma.hh"
22
23#include "G4Electron.hh"
24#include "G4Positron.hh"
25
26#include "G4NeutrinoE.hh"
27#include "G4AntiNeutrinoE.hh"
28
29//#include "G4StepLimiter.hh"
30
32{
33 // gamma
34 G4Gamma::GammaDefinition();
35
36 // electron
37 G4Electron::ElectronDefinition();
38 G4Positron::PositronDefinition();
39 G4NeutrinoE::NeutrinoEDefinition();
40 G4AntiNeutrinoE::AntiNeutrinoEDefinition();
41}
42
43
44#include "G4ProcessManager.hh"
45
46
48{
49 G4ProcessManager * pManager = 0;
50
51 // Gamma Physics
52 pManager = G4Gamma::Gamma()->GetProcessManager();
53 pManager->AddDiscreteProcess(&thePhotoEffect);
54 pManager->AddDiscreteProcess(&theComptonEffect);
55 pManager->AddDiscreteProcess(&thePairProduction);
56
57 // Electron Physics
58 pManager = G4Electron::Electron()->GetProcessManager();
59
60 pManager->AddProcess(&theElectronMultipleScattering, -1, 1, 1);
61 pManager->AddProcess(&theElectronIonisation, -1, 2, 2);
62 pManager->AddProcess(&theElectronBremsStrahlung, -1, 3, 3);
63// pManager->AddProcess(new G4StepLimiter, -1, -1,4);
64 //pManager->AddDiscreteProcess(new G4StepLimiter);
65 //Positron Physics
66 pManager = G4Positron::Positron()->GetProcessManager();
67
68 pManager->AddProcess(&thePositronMultipleScattering, -1, 1, 1);
69 pManager->AddProcess(&thePositronIonisation, -1, 2, 2);
70 pManager->AddProcess(&thePositronBremsStrahlung, -1, 3, 3);
71 pManager->AddProcess(&theAnnihilation, 0,-1, 4);
72}
BesEMPhysics(const G4String &name="EM")
Definition: BesEMPhysics.cc:9
virtual void ConstructProcess()
Definition: BesEMPhysics.cc:47
virtual ~BesEMPhysics()
Definition: BesEMPhysics.cc:14
virtual void ConstructParticle()
Definition: BesEMPhysics.cc:31