Geant4_10
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
source
source
processes
electromagnetic
dna
processes
src
G4DNAChargeDecrease.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: G4DNAChargeDecrease.cc 70171 2013-05-24 13:34:18Z gcosmo $
27
28
#include "
G4DNAChargeDecrease.hh
"
29
#include "
G4SystemOfUnits.hh
"
30
31
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
32
33
using namespace
std;
34
35
G4DNAChargeDecrease::G4DNAChargeDecrease
(
const
G4String
& processName,
36
G4ProcessType
type):
G4VEmProcess
(processName, type),
37
isInitialised(false)
38
{
39
SetProcessSubType
(56);
40
}
41
42
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
43
44
G4DNAChargeDecrease::~G4DNAChargeDecrease
()
45
{}
46
47
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
48
49
G4bool
G4DNAChargeDecrease::IsApplicable
(
const
G4ParticleDefinition
&
p
)
50
{
51
52
G4DNAGenericIonsManager
*instance;
53
instance =
G4DNAGenericIonsManager::Instance
();
54
55
return
56
(
57
&p ==
G4Proton::ProtonDefinition
()
58
|| &p == instance->
GetIon
(
"alpha++"
)
59
|| &p == instance->
GetIon
(
"alpha+"
)
60
);
61
}
62
63
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
64
65
void
G4DNAChargeDecrease::InitialiseProcess
(
const
G4ParticleDefinition
*
p
)
66
{
67
if
(!isInitialised)
68
{
69
isInitialised =
true
;
70
SetBuildTableFlag
(
false
);
71
72
G4String
name
= p->
GetParticleName
();
73
74
if
( name ==
"proton"
)
75
{
76
if
(!
EmModel
())
SetEmModel
(
new
G4DNADingfelderChargeDecreaseModel
);
77
EmModel
()->
SetLowEnergyLimit
(100*
eV
);
78
EmModel
()->
SetHighEnergyLimit
(100*
MeV
);
79
80
AddEmModel
(1,
EmModel
());
81
}
82
83
if
( name ==
"alpha"
|| name ==
"alpha+"
)
84
{
85
if
(!
EmModel
())
SetEmModel
(
new
G4DNADingfelderChargeDecreaseModel
);
86
EmModel
()->
SetLowEnergyLimit
(1*
keV
);
87
EmModel
()->
SetHighEnergyLimit
(400*
MeV
);
88
89
AddEmModel
(1,
EmModel
());
90
}
91
92
}
93
}
94
95
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
96
97
void
G4DNAChargeDecrease::PrintInfo
()
98
{
99
G4cout
100
<<
" Total cross sections computed from "
<<
EmModel
()->
GetName
() <<
" model"
101
<<
G4endl
;
102
}
103
104
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4VEmProcess
Definition:
G4VEmProcess.hh:92
G4DNAChargeDecrease::IsApplicable
virtual G4bool IsApplicable(const G4ParticleDefinition &)
Definition:
G4DNAChargeDecrease.cc:49
G4DNAChargeDecrease::InitialiseProcess
virtual void InitialiseProcess(const G4ParticleDefinition *)
Definition:
G4DNAChargeDecrease.cc:65
G4VEmProcess::SetBuildTableFlag
void SetBuildTableFlag(G4bool val)
Definition:
G4VEmProcess.hh:658
G4VEmProcess::EmModel
G4VEmModel * EmModel(G4int index=1) const
Definition:
G4VEmProcess.cc:207
python.hepunit.MeV
MeV
Definition:
hepunit.py:117
p
const char * p
Definition:
xmltok.h:285
G4Proton::ProtonDefinition
static G4Proton * ProtonDefinition()
Definition:
G4Proton.cc:88
G4DNAChargeDecrease::G4DNAChargeDecrease
G4DNAChargeDecrease(const G4String &processName="DNAChargeDecrease", G4ProcessType type=fElectromagnetic)
Definition:
G4DNAChargeDecrease.cc:35
name
const XML_Char * name
Definition:
expat.h:151
G4ParticleDefinition
Definition:
G4ParticleDefinition.hh:111
G4ParticleDefinition::GetParticleName
const G4String & GetParticleName() const
Definition:
G4ParticleDefinition.hh:159
G4VEmModel::SetHighEnergyLimit
void SetHighEnergyLimit(G4double)
Definition:
G4VEmModel.hh:683
G4VEmProcess::SetEmModel
void SetEmModel(G4VEmModel *, G4int index=1)
Definition:
G4VEmProcess.cc:198
G4cout
G4GLOB_DLL std::ostream G4cout
G4bool
bool G4bool
Definition:
G4Types.hh:79
G4DNADingfelderChargeDecreaseModel
Definition:
G4DNADingfelderChargeDecreaseModel.hh:40
python.hepunit.eV
eV
Definition:
hepunit.py:118
G4VProcess::SetProcessSubType
void SetProcessSubType(G4int)
Definition:
G4VProcess.hh:432
G4DNAChargeDecrease.hh
G4DNAGenericIonsManager::Instance
static G4DNAGenericIonsManager * Instance(void)
Definition:
G4DNAGenericIonsManager.cc:36
G4VEmProcess::AddEmModel
void AddEmModel(G4int, G4VEmModel *, const G4Region *region=0)
Definition:
G4VEmProcess.cc:188
G4DNAChargeDecrease::PrintInfo
virtual void PrintInfo()
Definition:
G4DNAChargeDecrease.cc:97
G4endl
#define G4endl
Definition:
G4ios.hh:61
G4VEmModel::GetName
const G4String & GetName() const
Definition:
G4VEmModel.hh:753
python.hepunit.keV
keV
Definition:
hepunit.py:119
G4DNAGenericIonsManager
Definition:
G4DNAGenericIonsManager.hh:39
G4SystemOfUnits.hh
G4VEmModel::SetLowEnergyLimit
void SetLowEnergyLimit(G4double)
Definition:
G4VEmModel.hh:690
G4DNAChargeDecrease::~G4DNAChargeDecrease
virtual ~G4DNAChargeDecrease()
Definition:
G4DNAChargeDecrease.cc:44
G4DNAGenericIonsManager::GetIon
G4ParticleDefinition * GetIon(const G4String &name)
Definition:
G4DNAGenericIonsManager.cc:46
G4String
Definition:
G4String.hh:45
G4ProcessType
G4ProcessType
Definition:
G4ProcessType.hh:43
Generated on Sat Dec 14 2013 14:34:30 for Geant4_10 by
1.8.5