Geant4
9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4LHEPStoppingPhysics.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: G4LHEPStoppingPhysics
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
// 16.10.2012 A.Ribon: deprecated class, to be removed in G4 version 10.
37
//
38
//----------------------------------------------------------------------------
39
//
40
41
#include "
G4LHEPStoppingPhysics.hh
"
42
43
#include "
G4ParticleTable.hh
"
44
#include "
G4ProcessManager.hh
"
45
#include "
G4LeptonConstructor.hh
"
46
#include "
G4MesonConstructor.hh
"
47
#include "
G4BaryonConstructor.hh
"
48
#include "
G4MuonMinus.hh
"
49
#include "
G4PionMinus.hh
"
50
#include "
G4KaonMinus.hh
"
51
#include "
G4AntiProton.hh
"
52
#include "
G4AntiNeutron.hh
"
53
#include "
G4MuonMinusCaptureAtRest.hh
"
54
#include "
G4PionMinusAbsorptionAtRest.hh
"
55
#include "
G4KaonMinusAbsorption.hh
"
56
#include "
G4AntiProtonAnnihilationAtRest.hh
"
57
#include "
G4AntiNeutronAnnihilationAtRest.hh
"
58
#include "
G4HadronicDeprecate.hh
"
59
60
// factory
61
#include "
G4PhysicsConstructorFactory.hh
"
62
//
63
G4_DECLARE_PHYSCONSTR_FACTORY
(
G4LHEPStoppingPhysics
);
64
65
66
G4LHEPStoppingPhysics::G4LHEPStoppingPhysics
(
G4int
ver)
67
:
G4VPhysicsConstructor
(
"LHEP Stopping"
)
68
, muProcess(0), piProcess(0), kProcess(0), apProcess(0), anProcess(0)
69
, verbose(ver), wasActivated(false)
70
{
71
G4HadronicDeprecate
(
"G4LHEPStoppingPhysics"
);
72
}
73
74
G4LHEPStoppingPhysics::G4LHEPStoppingPhysics
(
const
G4String
& nam,
G4int
ver)
75
:
G4VPhysicsConstructor
(nam), muProcess(0), piProcess(0), kProcess(0), apProcess(0), anProcess(0)
76
, verbose(ver), wasActivated(false)
77
{
78
G4HadronicDeprecate
(
"G4LHEPStoppingPhysics"
);
79
}
80
81
G4LHEPStoppingPhysics::~G4LHEPStoppingPhysics
()
82
{
83
if
(wasActivated) {
84
delete
muProcess;
85
delete
piProcess;
86
delete
kProcess;
87
delete
apProcess;
88
delete
anProcess;
89
}
90
}
91
92
void
G4LHEPStoppingPhysics::ConstructParticle
()
93
{
94
// G4cout << "G4QStoppingPhysics::ConstructParticle" << G4endl;
95
G4LeptonConstructor
pLeptonConstructor;
96
pLeptonConstructor.
ConstructParticle
();
97
98
G4MesonConstructor
pMesonConstructor;
99
pMesonConstructor.
ConstructParticle
();
100
101
G4BaryonConstructor
pBaryonConstructor;
102
pBaryonConstructor.
ConstructParticle
();
103
104
}
105
106
void
G4LHEPStoppingPhysics::ConstructProcess
()
107
{
108
if
(wasActivated)
return
;
109
G4ProcessManager
* aProcMan = 0;
110
wasActivated=
true
;
111
//G4cout << " adding stopping hadron Physics" << G4endl;
112
113
// Muon Minus Physics
114
aProcMan =
G4MuonMinus::MuonMinus
()->
GetProcessManager
();
115
muProcess =
new
G4MuonMinusCaptureAtRest
();
116
aProcMan->
AddRestProcess
(muProcess);
117
118
// PionMinus
119
aProcMan =
G4PionMinus::PionMinus
()->
GetProcessManager
();
120
piProcess =
new
G4PionMinusAbsorptionAtRest
();
121
aProcMan->
AddRestProcess
(piProcess);
122
123
// KaonMinus
124
aProcMan =
G4KaonMinus::KaonMinus
()->
GetProcessManager
();
125
kProcess =
new
G4KaonMinusAbsorption
();
126
aProcMan->
AddRestProcess
(kProcess);
127
128
// anti-Proton
129
aProcMan =
G4AntiProton::AntiProton
()->
GetProcessManager
();
130
apProcess =
new
G4AntiProtonAnnihilationAtRest
();
131
aProcMan->
AddRestProcess
(apProcess);
132
133
// AntiNeutron
134
aProcMan =
G4AntiNeutron::AntiNeutron
()->
GetProcessManager
();
135
anProcess =
new
G4AntiNeutronAnnihilationAtRest
();
136
aProcMan->
AddRestProcess
(anProcess);
137
138
}
G4AntiNeutronAnnihilationAtRest.hh
G4AntiNeutron.hh
G4AntiProtonAnnihilationAtRest.hh
G4AntiProton.hh
G4BaryonConstructor.hh
G4HadronicDeprecate.hh
G4HadronicDeprecate
#define G4HadronicDeprecate(name)
Definition:
G4HadronicDeprecate.hh:33
G4KaonMinusAbsorption.hh
G4KaonMinus.hh
G4LHEPStoppingPhysics.hh
G4LeptonConstructor.hh
G4MesonConstructor.hh
G4MuonMinusCaptureAtRest.hh
G4MuonMinus.hh
G4ParticleTable.hh
G4PhysicsConstructorFactory.hh
G4_DECLARE_PHYSCONSTR_FACTORY
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
Definition:
G4PhysicsConstructorFactory.hh:60
G4PionMinusAbsorptionAtRest.hh
G4PionMinus.hh
G4ProcessManager.hh
G4int
int G4int
Definition:
G4Types.hh:66
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
G4BaryonConstructor
Definition:
G4BaryonConstructor.hh:40
G4BaryonConstructor::ConstructParticle
static void ConstructParticle()
Definition:
G4BaryonConstructor.cc:102
G4KaonMinusAbsorption
Definition:
G4KaonMinusAbsorption.hh:49
G4KaonMinus::KaonMinus
static G4KaonMinus * KaonMinus()
Definition:
G4KaonMinus.cc:113
G4LHEPStoppingPhysics
Definition:
G4LHEPStoppingPhysics.hh:51
G4LHEPStoppingPhysics::ConstructProcess
virtual void ConstructProcess()
Definition:
G4LHEPStoppingPhysics.cc:106
G4LHEPStoppingPhysics::G4LHEPStoppingPhysics
G4LHEPStoppingPhysics(G4int ver=1)
Definition:
G4LHEPStoppingPhysics.cc:66
G4LHEPStoppingPhysics::ConstructParticle
virtual void ConstructParticle()
Definition:
G4LHEPStoppingPhysics.cc:92
G4LHEPStoppingPhysics::~G4LHEPStoppingPhysics
virtual ~G4LHEPStoppingPhysics()
Definition:
G4LHEPStoppingPhysics.cc:81
G4LeptonConstructor
Definition:
G4LeptonConstructor.hh:40
G4LeptonConstructor::ConstructParticle
static void ConstructParticle()
Definition:
G4LeptonConstructor.cc:60
G4MesonConstructor
Definition:
G4MesonConstructor.hh:40
G4MesonConstructor::ConstructParticle
static void ConstructParticle()
Definition:
G4MesonConstructor.cc:80
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)
G4String
Definition:
G4String.hh:105
G4VPhysicsConstructor
Definition:
G4VPhysicsConstructor.hh:69
geant4-v9.6.0
source
physics_lists
builders
src
G4LHEPStoppingPhysics.cc
Generated by
1.9.6