Geant4
v4-10.4-release
메인 페이지
관련된 페이지
모듈
네임스페이스
클래스
파일들
파일 목록
파일 멤버
모두
클래스
네임스페이스들
파일들
함수
변수
타입정의
열거형 타입
열거형 멤버
Friends
매크로
그룹들
페이지들
examples
extended
electromagnetic
TestEm5
src
electromagnetic/TestEm5/src/StepMax.cc
이 파일의 문서화 페이지로 가기
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: StepMax.cc 109000 2018-03-21 09:25:56Z gcosmo $
27
//
28
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
29
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
30
31
#include "StepMax.hh"
32
#include "PhysicsListMessenger.hh"
33
#include "
G4VPhysicalVolume.hh
"
34
#include "
G4TransportationProcessType.hh
"
35
36
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
37
38
StepMax::StepMax
(
PhysicsListMessenger
* mess)
39
:
G4VEmProcess
(
"UserMaxStep"
,
fGeneral
),fMessenger(mess),
40
fMaxChargedStep(
DBL_MAX
),isInitialised(false)
41
{
42
SetProcessSubType
(static_cast<G4int>(
STEP_LIMITER
));
43
}
44
45
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
46
47
StepMax::~StepMax
()
48
{}
49
50
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
51
52
G4bool
StepMax::IsApplicable
(
const
G4ParticleDefinition
&
part
)
53
{
54
return
(part.
GetPDGCharge
() != 0. && !part.
IsShortLived
());
55
}
56
57
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
58
59
void
StepMax::PreparePhysicsTable
(
const
G4ParticleDefinition
&)
60
{
61
if
(
isInitialised
) {
62
isInitialised
=
false
;
63
}
64
}
65
66
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
67
68
void
StepMax::BuildPhysicsTable
(
const
G4ParticleDefinition
&)
69
{
70
if
(!
isInitialised
) {
71
fMaxChargedStep
=
fMessenger
->GetMaxChargedStep();
72
isInitialised
=
true
;
73
if
(
fMaxChargedStep
<
DBL_MAX
) {
74
G4cout
<<
GetProcessName
() <<
": SubType= "
<<
GetProcessSubType
()
75
<<
" Step limit(mm)= "
<<
fMaxChargedStep
<<
G4endl
;
76
}
77
}
78
}
79
80
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
81
82
void
StepMax::InitialiseProcess
(
const
G4ParticleDefinition
*)
83
{}
84
85
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
86
87
G4double
88
StepMax::PostStepGetPhysicalInteractionLength
(
const
G4Track
&,
89
G4double
,
90
G4ForceCondition
*
condition
)
91
{
92
// condition is set to "Not Forced"
93
*condition =
NotForced
;
94
return
fMaxChargedStep
;
95
}
96
97
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
98
99
G4VParticleChange
*
StepMax::PostStepDoIt
(
const
G4Track
& aTrack,
const
G4Step
&)
100
{
101
// do nothing
102
aParticleChange
.
Initialize
(aTrack);
103
return
&
aParticleChange
;
104
}
105
106
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
107
StepMax::isInitialised
G4bool isInitialised
Definition:
electromagnetic/TestEm2/include/StepMax.hh:69
StepMax::fMaxChargedStep
G4double fMaxChargedStep
Definition:
electromagnetic/TestEm1/include/StepMax.hh:66
G4VEmProcess
Definition:
G4VEmProcess.hh:93
G4endl
#define G4endl
Definition:
G4ios.hh:61
G4ParticleDefinition::GetPDGCharge
G4double GetPDGCharge() const
Definition:
G4ParticleDefinition.hh:125
StepMax::PostStepGetPhysicalInteractionLength
virtual G4double PostStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
Definition:
electromagnetic/TestEm1/src/StepMax.cc:62
G4VParticleChange
Definition:
G4VParticleChange.hh:94
condition
G4double condition(const G4ErrorSymMatrix &m)
StepMax::PreparePhysicsTable
virtual void PreparePhysicsTable(const G4ParticleDefinition &)
Definition:
electromagnetic/TestEm2/src/StepMax.cc:59
G4VProcess::aParticleChange
G4ParticleChange aParticleChange
Definition:
G4VProcess.hh:289
G4TransportationProcessType.hh
G4double
double G4double
Definition:
G4Types.hh:76
G4bool
bool G4bool
Definition:
G4Types.hh:79
part
TString part[npart]
Definition:
Style.C:32
StepMax::BuildPhysicsTable
virtual void BuildPhysicsTable(const G4ParticleDefinition &)
Definition:
electromagnetic/TestEm2/src/StepMax.cc:68
G4VPhysicalVolume.hh
G4ParticleChange::Initialize
virtual void Initialize(const G4Track &)
Definition:
G4ParticleChange.cc:228
G4Track
Definition:
G4Track.hh:76
NotForced
Definition:
G4ForceCondition.hh:56
StepMax::~StepMax
~StepMax()
Definition:
electromagnetic/TestEm1/src/StepMax.cc:47
G4ParticleDefinition
Definition:
G4ParticleDefinition.hh:73
G4VProcess::GetProcessName
const G4String & GetProcessName() const
Definition:
G4VProcess.hh:411
StepMax::fMessenger
StepMaxMessenger * fMessenger
Definition:
electromagnetic/TestEm10/include/StepMax.hh:74
G4Step
Definition:
G4Step.hh:76
StepMax::InitialiseProcess
virtual void InitialiseProcess(const G4ParticleDefinition *)
Definition:
electromagnetic/TestEm2/src/StepMax.cc:82
StepMax::PostStepDoIt
virtual G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
Definition:
electromagnetic/TestEm1/src/StepMax.cc:74
fGeneral
Definition:
G4ProcessType.hh:52
StepMax::IsApplicable
virtual G4bool IsApplicable(const G4ParticleDefinition &)
Definition:
electromagnetic/TestEm1/src/StepMax.cc:51
G4VProcess::SetProcessSubType
void SetProcessSubType(G4int)
Definition:
G4VProcess.hh:435
G4ForceCondition
G4ForceCondition
Definition:
G4ForceCondition.hh:49
G4cout
G4GLOB_DLL std::ostream G4cout
G4ParticleDefinition::IsShortLived
G4bool IsShortLived() const
Definition:
G4ParticleDefinition.hh:158
StepMax::StepMax
StepMax(const G4String &processName="UserMaxStep")
Definition:
electromagnetic/TestEm1/src/StepMax.cc:39
DBL_MAX
#define DBL_MAX
Definition:
templates.hh:83
PhysicsListMessenger
Definition:
environments/g4py/examples/demos/TestEm0/module/PhysicsListMessenger.hh:44
STEP_LIMITER
Definition:
G4TransportationProcessType.hh:48
G4VProcess::GetProcessSubType
G4int GetProcessSubType() const
Definition:
G4VProcess.hh:429
다음에 의해 생성됨 :
1.8.5