Geant4
10.01.p03
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
F04StepMax.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: F04StepMax.cc 68021 2013-03-13 13:36:07Z gcosmo $
27
//
30
//
31
32
#include "
G4Track.hh
"
33
#include "
G4VParticleChange.hh
"
34
35
#include "
F04StepMax.hh
"
36
37
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
38
39
F04StepMax::F04StepMax
(
const
G4String
& aName)
40
:
G4VDiscreteProcess
(aName), fMaxChargedStep(
DBL_MAX
)
41
{
42
if
(
verboseLevel
>0) {
43
G4cout
<<
GetProcessName
() <<
" is created "
<<
G4endl
;
44
}
45
}
46
47
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
48
49
F04StepMax::~F04StepMax
() {}
50
51
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
52
53
F04StepMax::F04StepMax
(
F04StepMax
&
right
) :
G4VDiscreteProcess
(right) {}
54
55
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
56
57
G4bool
F04StepMax::IsApplicable
(
const
G4ParticleDefinition
& particle)
58
{
59
return
(particle.
GetPDGCharge
() != 0.);
60
}
61
62
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
63
64
void
F04StepMax::SetStepMax
(
G4double
step) {
fMaxChargedStep
= step ; }
65
66
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
67
68
G4double
F04StepMax::PostStepGetPhysicalInteractionLength
(
69
const
G4Track
&,
70
G4double
,
71
G4ForceCondition
*
condition
)
72
{
73
// condition is set to "Not Forced"
74
*condition =
NotForced
;
75
76
G4double
proposedStep =
DBL_MAX
;
77
78
if
(
fMaxChargedStep
> 0.) proposedStep =
fMaxChargedStep
;
79
80
return
proposedStep;
81
}
82
83
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
84
85
G4VParticleChange
*
F04StepMax::PostStepDoIt
(
const
G4Track
& aTrack,
86
const
G4Step
& )
87
{
88
// do nothing
89
aParticleChange
.
Initialize
(aTrack);
90
return
&
aParticleChange
;
91
}
92
93
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
94
95
G4double
F04StepMax::GetMeanFreePath
(
const
G4Track
&,
G4double
,
G4ForceCondition
*)
96
{
97
return
0.;
98
}
F04StepMax::SetStepMax
void SetStepMax(G4double)
Definition:
F04StepMax.cc:64
condition
G4double condition(const G4ErrorSymMatrix &m)
F04StepMax::~F04StepMax
virtual ~F04StepMax()
Definition:
F04StepMax.cc:49
right
Definition:
F04UserTrackInformation.hh:37
G4VProcess::verboseLevel
G4int verboseLevel
Definition:
G4VProcess.hh:368
F04StepMax::IsApplicable
virtual G4bool IsApplicable(const G4ParticleDefinition &)
Definition:
F04StepMax.cc:57
G4Track.hh
G4ParticleDefinition
Definition:
G4ParticleDefinition.hh:111
G4cout
G4GLOB_DLL std::ostream G4cout
G4bool
bool G4bool
Definition:
G4Types.hh:79
F04StepMax.hh
Definition of the F04StepMax class.
G4Step
Definition:
G4Step.hh:76
G4VProcess::GetProcessName
const G4String & GetProcessName() const
Definition:
G4VProcess.hh:408
F04StepMax::PostStepGetPhysicalInteractionLength
virtual G4double PostStepGetPhysicalInteractionLength(const G4Track &, G4double, G4ForceCondition *)
Definition:
F04StepMax.cc:68
F04StepMax
Definition:
F04StepMax.hh:41
G4ParticleChange::Initialize
virtual void Initialize(const G4Track &)
Definition:
G4ParticleChange.cc:228
NotForced
Definition:
G4ForceCondition.hh:56
F04StepMax::PostStepDoIt
virtual G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
Definition:
F04StepMax.cc:85
G4VProcess::aParticleChange
G4ParticleChange aParticleChange
Definition:
G4VProcess.hh:289
G4Track
Definition:
G4Track.hh:73
G4VParticleChange.hh
G4endl
#define G4endl
Definition:
G4ios.hh:61
F04StepMax::fMaxChargedStep
G4double fMaxChargedStep
Definition:
F04StepMax.hh:76
F04StepMax::GetMeanFreePath
virtual G4double GetMeanFreePath(const G4Track &, G4double, G4ForceCondition *)
Definition:
F04StepMax.cc:95
G4VDiscreteProcess
Definition:
G4VDiscreteProcess.hh:58
F04StepMax::F04StepMax
F04StepMax(const G4String &processName="UserStepMax")
Definition:
F04StepMax.cc:39
G4double
double G4double
Definition:
G4Types.hh:76
G4ForceCondition
G4ForceCondition
Definition:
G4ForceCondition.hh:49
G4ParticleDefinition::GetPDGCharge
G4double GetPDGCharge() const
Definition:
G4ParticleDefinition.hh:163
DBL_MAX
#define DBL_MAX
Definition:
templates.hh:83
G4VParticleChange
Definition:
G4VParticleChange.hh:94
G4String
Definition:
G4String.hh:45
geant4.10.01.p03
examples
extended
field
field04
src
F04StepMax.cc
Generated on Fri Feb 19 2016 15:53:09 for Geant4 by
1.8.8