Geant4
10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4AdjointhMultipleScattering.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
//
27
28
//
29
// GEANT4 Class file
30
//
31
// File name: G4AdjointhMultipleScattering
32
//
33
// Author: Desorgher Laurent
34
//
35
// Creation date: 03.06.2009 cloned from G4hMultipleScattering by U.Laszlo with slight modification for adjoint_ion.
36
//
37
// -----------------------------------------------------------------------------
38
//
39
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
40
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
41
42
#include "
G4AdjointhMultipleScattering.hh
"
43
#include "
G4SystemOfUnits.hh
"
44
#include "
G4UrbanMscModel.hh
"
45
#include "
G4MscStepLimitType.hh
"
46
47
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
48
49
using namespace
std;
50
51
G4AdjointhMultipleScattering::G4AdjointhMultipleScattering
(
const
G4String
& processName)
52
:
G4VMultipleScattering
(processName)
53
{
54
isInitialized =
false
;
55
}
56
57
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
58
59
G4AdjointhMultipleScattering::~G4AdjointhMultipleScattering
()
60
{}
61
62
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
63
64
G4bool
G4AdjointhMultipleScattering::IsApplicable
(
const
G4ParticleDefinition
& p)
65
{
66
return
(p.
GetPDGCharge
() != 0.0 && !p.
IsShortLived
());
67
}
68
69
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
70
71
void
G4AdjointhMultipleScattering::InitialiseProcess
(
const
G4ParticleDefinition
*)
72
{
73
if
(isInitialized) {
return
; }
74
AddEmModel
(1,
new
G4UrbanMscModel
());
75
isInitialized =
true
;
76
}
77
78
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
79
80
void
G4AdjointhMultipleScattering::PrintInfo
()
81
{
82
G4cout
<<
" RangeFactor= "
<<
RangeFactor
()
83
<<
", step limit type: "
<<
StepLimitType
()
84
<<
", lateralDisplacement: "
<<
LateralDisplasmentFlag
()
85
<<
", skin= "
<<
Skin
()
86
<<
G4endl
;
87
}
88
89
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
90
91
/*G4double G4AdjointhMultipleScattering::AlongStepGetPhysicalInteractionLength(
92
const G4Track& track,
93
double,
94
G4double currentMinimalStep,
95
G4double& currentSafety,
96
G4GPILSelection* selection)
97
{
98
// get Step limit proposed by the process
99
valueGPILSelectionMSC = NotCandidateForSelection;
100
101
G4double escaled = track.GetKineticEnergy();
102
if(isIon) escaled *= track.GetDynamicParticle()->GetMass()/proton_mass_c2;
103
104
G4double steplength = GetMscContinuousStepLimit(track,
105
escaled,
106
currentMinimalStep,
107
currentSafety);
108
// G4cout << "StepLimit= " << steplength << G4endl;
109
// set return value for G4GPILSelection
110
*selection = valueGPILSelectionMSC;
111
return steplength;
112
}
113
*/
114
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4AdjointhMultipleScattering.hh
G4MscStepLimitType.hh
G4SystemOfUnits.hh
G4bool
bool G4bool
Definition:
G4Types.hh:86
G4UrbanMscModel.hh
G4endl
#define G4endl
Definition:
G4ios.hh:57
G4cout
G4GLOB_DLL std::ostream G4cout
G4AdjointhMultipleScattering::~G4AdjointhMultipleScattering
virtual ~G4AdjointhMultipleScattering()
Definition:
G4AdjointhMultipleScattering.cc:59
G4AdjointhMultipleScattering::InitialiseProcess
void InitialiseProcess(const G4ParticleDefinition *)
Definition:
G4AdjointhMultipleScattering.cc:71
G4AdjointhMultipleScattering::IsApplicable
G4bool IsApplicable(const G4ParticleDefinition &p)
Definition:
G4AdjointhMultipleScattering.cc:64
G4AdjointhMultipleScattering::PrintInfo
void PrintInfo()
Definition:
G4AdjointhMultipleScattering.cc:80
G4AdjointhMultipleScattering::G4AdjointhMultipleScattering
G4AdjointhMultipleScattering(const G4String &processName="msc")
Definition:
G4AdjointhMultipleScattering.cc:51
G4ParticleDefinition
Definition:
G4ParticleDefinition.hh:60
G4ParticleDefinition::IsShortLived
G4bool IsShortLived() const
Definition:
G4ParticleDefinition.hh:144
G4ParticleDefinition::GetPDGCharge
G4double GetPDGCharge() const
Definition:
G4ParticleDefinition.hh:112
G4String
Definition:
G4String.hh:53
G4UrbanMscModel
Definition:
G4UrbanMscModel.hh:71
G4VMultipleScattering
Definition:
G4VMultipleScattering.hh:92
G4VMultipleScattering::RangeFactor
G4double RangeFactor() const
Definition:
G4VMultipleScattering.hh:345
G4VMultipleScattering::Skin
G4double Skin() const
Definition:
G4VMultipleScattering.hh:331
G4VMultipleScattering::AddEmModel
void AddEmModel(G4int order, G4VEmModel *, const G4Region *region=nullptr)
Definition:
G4VMultipleScattering.cc:143
G4VMultipleScattering::LateralDisplasmentFlag
G4bool LateralDisplasmentFlag() const
Definition:
G4VMultipleScattering.hh:317
G4VMultipleScattering::StepLimitType
G4MscStepLimitType StepLimitType() const
Definition:
G4VMultipleScattering.hh:376
geant4-v10.7.0
source
processes
electromagnetic
adjoint
src
G4AdjointhMultipleScattering.cc
Generated by
1.9.6