Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
examples
extended
exoticphysics
monopole
src
G4MonopolePhysics.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
//
28
//
29
// $Id: G4MonopolePhysics.cc 66994 2013-01-29 14:34:08Z gcosmo $
30
//
31
//---------------------------------------------------------------------------
32
//
33
// ClassName: G4MonopolePhysics
34
//
35
// Author: V.Ivanchenko 13.03.2005
36
//
37
// Modified:
38
//
39
// 12.07.10 S.Burdin (changed the magnetic and electric charge variables from integer to double)
40
//----------------------------------------------------------------------------
41
//
42
//
43
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
44
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
45
46
#include "
G4MonopolePhysics.hh
"
47
#include "
G4MonopolePhysicsMessenger.hh
"
48
49
#include "
G4Monopole.hh
"
50
#include "
G4ParticleDefinition.hh
"
51
#include "
G4ProcessManager.hh
"
52
53
#include "
G4StepLimiter.hh
"
54
#include "
G4Transportation.hh
"
55
#include "
G4MonopoleTransportation.hh
"
56
#include "
G4hMultipleScattering.hh
"
57
#include "
G4mplIonisation.hh
"
58
#include "
G4mplIonisationWithDeltaModel.hh
"
59
#include "
G4hhIonisation.hh
"
60
#include "
G4hIonisation.hh
"
61
62
#include "
G4PhysicsListHelper.hh
"
63
#include "
G4BuilderType.hh
"
64
#include "
G4SystemOfUnits.hh
"
65
66
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
67
68
G4MonopolePhysics::G4MonopolePhysics
(
const
G4String
& nam)
69
:
G4VPhysicsConstructor
(nam)
70
{
71
fMagCharge = 1.0;
72
// fMagCharge = -1.0;
73
// fElCharge = -50.0;
74
fElCharge = 0.0;
75
fMonopoleMass = 100.*
GeV
;
76
fMessenger =
new
G4MonopolePhysicsMessenger
(
this
);
77
fMpl = 0;
78
SetPhysicsType
(
bUnknown
);
79
}
80
81
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
82
83
G4MonopolePhysics::~G4MonopolePhysics
()
84
{
85
delete
fMessenger;
86
}
87
88
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
89
90
void
G4MonopolePhysics::ConstructParticle
()
91
{
92
fMpl =
G4Monopole::MonopoleDefinition
(fMonopoleMass, fMagCharge, fElCharge);
93
}
94
95
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
96
97
void
G4MonopolePhysics::ConstructProcess
()
98
{
99
if
(
verboseLevel
> 0) {
100
G4cout
<<
"G4MonopolePhysics::ConstructProcess"
<<
G4endl
;
101
}
102
103
G4PhysicsListHelper
* ph =
G4PhysicsListHelper::GetPhysicsListHelper
();
104
G4ProcessManager
* pmanager =
new
G4ProcessManager
(fMpl);
105
fMpl->
SetProcessManager
(pmanager);
106
107
// defined monopole parameters and binning
108
109
G4double
magn = fMpl->
MagneticCharge
();
110
G4double
emin = fMonopoleMass/20000.;
111
if
(emin <
keV
) { emin =
keV
; }
112
G4double
emax = std::max(10.*
TeV
, fMonopoleMass*100);
113
G4int
nbin =
G4lrint
(10*std::log10(emax/emin));
114
115
if
(magn == 0.0) {
116
ph->
RegisterProcess
(
new
G4Transportation
(), fMpl);
117
}
else
{
118
ph->
RegisterProcess
(
new
G4MonopoleTransportation
(fMpl), fMpl);
119
}
120
121
if
(fMpl->
GetPDGCharge
() != 0.0) {
122
G4hIonisation
* hhioni =
new
G4hIonisation
();
123
hhioni->
SetDEDXBinning
(nbin);
124
hhioni->
SetMinKinEnergy
(emin);
125
hhioni->
SetMaxKinEnergy
(emax);
126
ph->
RegisterProcess
(hhioni, fMpl);
127
}
128
if
(magn != 0.0) {
129
G4mplIonisation
* mplioni =
new
G4mplIonisation
(magn);
130
mplioni->
SetDEDXBinning
(nbin);
131
mplioni->
SetMinKinEnergy
(emin);
132
mplioni->
SetMaxKinEnergy
(emax);
133
ph->
RegisterProcess
(mplioni, fMpl);
134
}
135
ph->
RegisterProcess
(
new
G4StepLimiter
(), fMpl);
136
}
137
138
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
139
140
void
G4MonopolePhysics::SetMagneticCharge
(
G4double
val)
141
{
142
fMagCharge = val;
143
}
144
145
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
146
147
void
G4MonopolePhysics::SetElectricCharge
(
G4double
val)
148
{
149
fElCharge = val;
150
}
151
152
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
153
154
void
G4MonopolePhysics::SetMonopoleMass
(
G4double
mass)
155
{
156
fMonopoleMass = mass;
157
}
158
159
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
160
Generated on Sat May 25 2013 14:32:24 for Geant4 by
1.8.4