Geant4
9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4QEmExtraPhysics.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: G4QEmExtraPhysics
31
//
32
// Author: 23 May 2007 V. Ivanchenko
33
//
34
// Modified: 19 Nov 2009 M.Kosov: G4QInelastic instead of G4QCollision
35
//
36
//----------------------------------------------------------------------------
37
//
38
39
#include "
G4QEmExtraPhysics.hh
"
40
#include "
G4QInelastic.hh
"
41
42
#include "
G4ParticleDefinition.hh
"
43
#include "
G4ProcessManager.hh
"
44
45
#include "
G4LeptonConstructor.hh
"
46
#include "
G4MuonMinus.hh
"
47
#include "
G4MuonPlus.hh
"
48
#include "
G4Electron.hh
"
49
#include "
G4Positron.hh
"
50
#include "
G4Gamma.hh
"
51
#include "
G4HadronicDeprecate.hh
"
52
53
54
G4QEmExtraPhysics::G4QEmExtraPhysics
(
G4int
ver)
55
:
G4VPhysicsConstructor
(
"QEmExtra"
), hProcess(0), verbose(ver), wasActivated(false)
56
{
57
G4HadronicDeprecate
(
"G4QEmExtraPhysics"
);
58
if
(verbose > 1)
G4cout
<<
"### G4QEmExtraPhysics"
<<
G4endl
;
59
}
60
61
G4QEmExtraPhysics::~G4QEmExtraPhysics
()
62
{
63
delete
hProcess;
64
}
65
66
void
G4QEmExtraPhysics::ConstructParticle
()
67
{
68
// G4cout << "G4QEmExtraPhysics::ConstructParticle" << G4endl;
69
G4LeptonConstructor
pLeptonConstructor;
70
pLeptonConstructor.
ConstructParticle
();
71
}
72
73
void
G4QEmExtraPhysics::ConstructProcess
()
74
{
75
if
(verbose > 1)
G4cout
<<
"### G4QEmExtraPhysics::ConstructProcess "
76
<< wasActivated <<
G4endl
;
77
if
(wasActivated)
return
;
78
wasActivated =
true
;
79
80
hProcess =
new
G4QInelastic
();
81
82
G4ParticleDefinition
* particle =
G4Gamma::Gamma
();
83
G4ProcessManager
* pmanager = particle->
GetProcessManager
();
84
pmanager->
AddDiscreteProcess
(hProcess);
85
86
particle =
G4Electron::Electron
();
87
pmanager = particle->
GetProcessManager
();
88
pmanager->
AddDiscreteProcess
(hProcess);
89
90
particle =
G4Positron::Positron
();
91
pmanager = particle->
GetProcessManager
();
92
pmanager->
AddDiscreteProcess
(hProcess);
93
94
particle =
G4MuonMinus::MuonMinus
();
95
pmanager = particle->
GetProcessManager
();
96
pmanager->
AddDiscreteProcess
(hProcess);
97
98
particle =
G4MuonPlus::MuonPlus
();
99
pmanager = particle->
GetProcessManager
();
100
pmanager->
AddDiscreteProcess
(hProcess);
101
102
}
103
104
G4Electron.hh
G4Gamma.hh
G4HadronicDeprecate.hh
G4HadronicDeprecate
#define G4HadronicDeprecate(name)
Definition:
G4HadronicDeprecate.hh:33
G4LeptonConstructor.hh
G4MuonMinus.hh
G4MuonPlus.hh
G4ParticleDefinition.hh
G4Positron.hh
G4ProcessManager.hh
G4QEmExtraPhysics.hh
G4QInelastic.hh
G4int
int G4int
Definition:
G4Types.hh:66
G4endl
#define G4endl
Definition:
G4ios.hh:52
G4cout
G4DLLIMPORT std::ostream G4cout
G4Electron::Electron
static G4Electron * Electron()
Definition:
G4Electron.cc:94
G4Gamma::Gamma
static G4Gamma * Gamma()
Definition:
G4Gamma.cc:86
G4LeptonConstructor
Definition:
G4LeptonConstructor.hh:40
G4LeptonConstructor::ConstructParticle
static void ConstructParticle()
Definition:
G4LeptonConstructor.cc:60
G4MuonMinus::MuonMinus
static G4MuonMinus * MuonMinus()
Definition:
G4MuonMinus.cc:100
G4MuonPlus::MuonPlus
static G4MuonPlus * MuonPlus()
Definition:
G4MuonPlus.cc:99
G4ParticleDefinition
Definition:
G4ParticleDefinition.hh:68
G4ParticleDefinition::GetProcessManager
G4ProcessManager * GetProcessManager() const
G4Positron::Positron
static G4Positron * Positron()
Definition:
G4Positron.cc:94
G4ProcessManager
Definition:
G4ProcessManager.hh:107
G4ProcessManager::AddDiscreteProcess
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4QEmExtraPhysics::ConstructProcess
virtual void ConstructProcess()
Definition:
G4QEmExtraPhysics.cc:73
G4QEmExtraPhysics::G4QEmExtraPhysics
G4QEmExtraPhysics(G4int ver=1)
Definition:
G4QEmExtraPhysics.cc:54
G4QEmExtraPhysics::~G4QEmExtraPhysics
virtual ~G4QEmExtraPhysics()
Definition:
G4QEmExtraPhysics.cc:61
G4QEmExtraPhysics::ConstructParticle
virtual void ConstructParticle()
Definition:
G4QEmExtraPhysics.cc:66
G4QInelastic
Definition:
G4QInelastic.hh:123
G4VPhysicsConstructor
Definition:
G4VPhysicsConstructor.hh:69
geant4-v9.6.0
source
physics_lists
builders
src
G4QEmExtraPhysics.cc
Generated by
1.9.6