Geant4
9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4StoppingHadronBuilder.cc
Go to the documentation of this file.
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$
27
//
28
//---------------------------------------------------------------------------
29
//
30
// ClassName: G4StoppingHadronBuilder
31
//
32
// Author: 2002 J.P. Wellisch
33
//
34
// Modified:
35
// 10.11.2005 V.Ivanchenko edit to provide a standard and add mu-
36
//----------------------------------------------------------------------------
37
//
38
39
#include "
G4StoppingHadronBuilder.hh
"
40
#include "
G4MuonMinusCaptureAtRest.hh
"
41
#include "
G4AntiProtonAnnihilationAtRest.hh
"
42
#include "
G4AntiNeutronAnnihilationAtRest.hh
"
43
#include "
G4PionMinusAbsorptionAtRest.hh
"
44
#include "
G4KaonMinusAbsorption.hh
"
45
46
#include "
G4ParticleTable.hh
"
47
#include "
G4ProcessManager.hh
"
48
#include "
G4PionMinus.hh
"
49
#include "
G4KaonMinus.hh
"
50
#include "
G4AntiProton.hh
"
51
#include "
G4AntiNeutron.hh
"
52
53
G4StoppingHadronBuilder::G4StoppingHadronBuilder
():
54
theMuonMinusAbsorption(0),thePionMinusAbsorption(0),
55
theKaonMinusAbsorption(0), theAntiProtonAnnihilation(0),
56
theAntiNeutronAnnihilation(0),
57
wasActivated(false)
58
{}
59
60
G4StoppingHadronBuilder::~G4StoppingHadronBuilder
()
61
{
62
if
(wasActivated) {
63
delete
theMuonMinusAbsorption;
64
delete
thePionMinusAbsorption;
65
delete
theKaonMinusAbsorption;
66
delete
theAntiProtonAnnihilation;
67
delete
theAntiNeutronAnnihilation;
68
}
69
}
70
71
void
G4StoppingHadronBuilder::Build
()
72
{
73
G4ProcessManager
* aProcMan = 0;
74
wasActivated=
true
;
75
//G4cout << " adding stopping hadron Physics" << G4endl;
76
77
// Muon Minus Physics
78
aProcMan =
G4MuonMinus::MuonMinus
()->
GetProcessManager
();
79
theMuonMinusAbsorption =
new
G4MuonMinusCaptureAtRest
();
80
aProcMan->
AddRestProcess
(theMuonMinusAbsorption);
81
82
// PionMinus
83
aProcMan =
G4PionMinus::PionMinus
()->
GetProcessManager
();
84
thePionMinusAbsorption =
new
G4PionMinusAbsorptionAtRest
();
85
aProcMan->
AddRestProcess
(thePionMinusAbsorption);
86
87
// KaonMinus
88
aProcMan =
G4KaonMinus::KaonMinus
()->
GetProcessManager
();
89
theKaonMinusAbsorption =
new
G4KaonMinusAbsorption
();
90
aProcMan->
AddRestProcess
(theKaonMinusAbsorption);
91
92
// anti-Proton
93
aProcMan =
G4AntiProton::AntiProton
()->
GetProcessManager
();
94
theAntiProtonAnnihilation =
new
G4AntiProtonAnnihilationAtRest
();
95
aProcMan->
AddRestProcess
(theAntiProtonAnnihilation);
96
97
// AntiNeutron
98
aProcMan =
G4AntiNeutron::AntiNeutron
()->
GetProcessManager
();
99
theAntiNeutronAnnihilation =
new
G4AntiNeutronAnnihilationAtRest
();
100
aProcMan->
AddRestProcess
(theAntiNeutronAnnihilation);
101
102
}
G4AntiNeutronAnnihilationAtRest.hh
G4AntiNeutron.hh
G4AntiProtonAnnihilationAtRest.hh
G4AntiProton.hh
G4KaonMinusAbsorption.hh
G4KaonMinus.hh
G4MuonMinusCaptureAtRest.hh
G4ParticleTable.hh
G4PionMinusAbsorptionAtRest.hh
G4PionMinus.hh
G4ProcessManager.hh
G4StoppingHadronBuilder.hh
G4AntiNeutronAnnihilationAtRest
Definition:
G4AntiNeutronAnnihilationAtRest.hh:48
G4AntiNeutron::AntiNeutron
static G4AntiNeutron * AntiNeutron()
Definition:
G4AntiNeutron.cc:103
G4AntiProtonAnnihilationAtRest
Definition:
G4AntiProtonAnnihilationAtRest.hh:48
G4AntiProton::AntiProton
static G4AntiProton * AntiProton()
Definition:
G4AntiProton.cc:93
G4KaonMinusAbsorption
Definition:
G4KaonMinusAbsorption.hh:49
G4KaonMinus::KaonMinus
static G4KaonMinus * KaonMinus()
Definition:
G4KaonMinus.cc:113
G4MuonMinusCaptureAtRest
Definition:
G4MuonMinusCaptureAtRest.hh:66
G4MuonMinus::MuonMinus
static G4MuonMinus * MuonMinus()
Definition:
G4MuonMinus.cc:100
G4ParticleDefinition::GetProcessManager
G4ProcessManager * GetProcessManager() const
G4PionMinusAbsorptionAtRest
Definition:
G4PionMinusAbsorptionAtRest.hh:48
G4PionMinus::PionMinus
static G4PionMinus * PionMinus()
Definition:
G4PionMinus.cc:98
G4ProcessManager
Definition:
G4ProcessManager.hh:107
G4ProcessManager::AddRestProcess
G4int AddRestProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4StoppingHadronBuilder::G4StoppingHadronBuilder
G4StoppingHadronBuilder()
Definition:
G4StoppingHadronBuilder.cc:53
G4StoppingHadronBuilder::~G4StoppingHadronBuilder
virtual ~G4StoppingHadronBuilder()
Definition:
G4StoppingHadronBuilder.cc:60
G4StoppingHadronBuilder::Build
virtual void Build()
Definition:
G4StoppingHadronBuilder.cc:71
geant4-v9.6.0
source
physics_lists
builders
src
G4StoppingHadronBuilder.cc
Generated by
1.9.6