1 | // |
---|
2 | // ******************************************************************** |
---|
3 | // * License and Disclaimer * |
---|
4 | // * * |
---|
5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
7 | // * conditions of the Geant4 Software License, included in the file * |
---|
8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
9 | // * include a list of copyright holders. * |
---|
10 | // * * |
---|
11 | // * Neither the authors of this software system, nor their employing * |
---|
12 | // * institutes,nor the agencies providing financial support for this * |
---|
13 | // * work make any representation or warranty, express or implied, * |
---|
14 | // * regarding this software system or assume any liability for its * |
---|
15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
16 | // * for the full disclaimer and the limitation of liability. * |
---|
17 | // * * |
---|
18 | // * This code implementation is the result of the scientific and * |
---|
19 | // * technical work of the GEANT4 collaboration. * |
---|
20 | // * By using, copying, modifying or distributing the software (or * |
---|
21 | // * any work based on the software) you agree to acknowledge its * |
---|
22 | // * use in resulting scientific publications, and indicate your * |
---|
23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
24 | // ******************************************************************** |
---|
25 | // |
---|
26 | // $Id: PhysListEmStandard.cc,v 1.4 2008/05/07 13:57:56 maire Exp $ |
---|
27 | // GEANT4 tag $Name: geant4-09-04-beta-01 $ |
---|
28 | // |
---|
29 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
30 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
31 | |
---|
32 | #include "PhysListEmStandard.hh" |
---|
33 | |
---|
34 | #include "G4ParticleDefinition.hh" |
---|
35 | #include "G4MuonPlus.hh" |
---|
36 | #include "G4MuonMinus.hh" |
---|
37 | #include "G4PionPlus.hh" |
---|
38 | #include "G4PionMinus.hh" |
---|
39 | #include "G4Proton.hh" |
---|
40 | |
---|
41 | #include "G4ProcessManager.hh" |
---|
42 | #include "G4MuIonisation.hh" |
---|
43 | #include "G4MuBremsstrahlung.hh" |
---|
44 | #include "G4MuPairProduction.hh" |
---|
45 | #include "G4hIonisation.hh" |
---|
46 | #include "G4hBremsstrahlung.hh" |
---|
47 | #include "G4hPairProduction.hh" |
---|
48 | #include "G4LossTableManager.hh" |
---|
49 | |
---|
50 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
51 | |
---|
52 | PhysListEmStandard::PhysListEmStandard(const G4String& name) |
---|
53 | : G4VPhysicsConstructor(name) |
---|
54 | {} |
---|
55 | |
---|
56 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
57 | |
---|
58 | PhysListEmStandard::~PhysListEmStandard() |
---|
59 | {} |
---|
60 | |
---|
61 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
62 | |
---|
63 | void PhysListEmStandard::ConstructProcess() |
---|
64 | { |
---|
65 | // mu+ |
---|
66 | G4ParticleDefinition* particle = G4MuonPlus::MuonPlus(); |
---|
67 | G4ProcessManager* pmanager = particle->GetProcessManager(); |
---|
68 | pmanager->AddProcess(new G4MuIonisation(), -1, 2, 2); |
---|
69 | pmanager->AddProcess(new G4MuBremsstrahlung(), -1, 3, 3); |
---|
70 | pmanager->AddProcess(new G4MuPairProduction(), -1, 4, 4); |
---|
71 | |
---|
72 | // mu- |
---|
73 | particle = G4MuonMinus::MuonMinus(); |
---|
74 | pmanager = particle->GetProcessManager(); |
---|
75 | pmanager->AddProcess(new G4MuIonisation(), -1, 2, 2); |
---|
76 | pmanager->AddProcess(new G4MuBremsstrahlung(), -1, 3, 3); |
---|
77 | pmanager->AddProcess(new G4MuPairProduction(), -1, 4, 4); |
---|
78 | |
---|
79 | // pi+ |
---|
80 | particle = G4PionPlus::PionPlus(); |
---|
81 | pmanager = particle->GetProcessManager(); |
---|
82 | pmanager->AddProcess(new G4hIonisation(), -1, 2, 2); |
---|
83 | pmanager->AddProcess(new G4hBremsstrahlung(), -1, 3, 3); |
---|
84 | pmanager->AddProcess(new G4hPairProduction(), -1, 4, 4); |
---|
85 | |
---|
86 | // pi- |
---|
87 | particle = G4PionMinus::PionMinus(); |
---|
88 | pmanager = particle->GetProcessManager(); |
---|
89 | pmanager->AddProcess(new G4hIonisation(), -1, 2, 2); |
---|
90 | pmanager->AddProcess(new G4hBremsstrahlung(), -1, 3, 3); |
---|
91 | pmanager->AddProcess(new G4hPairProduction(), -1, 4, 4); |
---|
92 | |
---|
93 | // proton |
---|
94 | particle = G4Proton::Proton(); |
---|
95 | pmanager = particle->GetProcessManager(); |
---|
96 | pmanager->AddProcess(new G4hIonisation(), -1, 2, 2); |
---|
97 | pmanager->AddProcess(new G4hBremsstrahlung(), -1, 3, 3); |
---|
98 | pmanager->AddProcess(new G4hPairProduction(), -1, 4, 4); |
---|
99 | |
---|
100 | //extend binning of PhysicsTables |
---|
101 | // |
---|
102 | G4LossTableManager::Instance()->SetMinEnergy(100*eV); |
---|
103 | G4LossTableManager::Instance()->SetMaxEnergy(1000*PeV); |
---|
104 | G4LossTableManager::Instance()->SetDEDXBinning(160); |
---|
105 | G4LossTableManager::Instance()->SetLambdaBinning(160); |
---|
106 | G4LossTableManager::Instance()->SetSplineFlag(true); |
---|
107 | G4LossTableManager::Instance()->SetVerbose(1); |
---|
108 | } |
---|
109 | |
---|
110 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
111 | |
---|