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
source
tracking
src
G4VSteppingVerbose.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
// $Id: G4VSteppingVerbose.cc 67009 2013-01-29 16:00:21Z gcosmo $
28
//
29
//---------------------------------------------------------------
30
//
31
// G4VSteppingVerbose.cc
32
//
33
// Description:
34
// This class manages the vervose outputs in G4SteppingManager.
35
//
36
//
37
// Contact:
38
// Questions and comments to this code should be sent to
39
// Katsuya Amako (e-mail: Katsuya.Amako@kek.jp)
40
// Takashi Sasaki (e-mail: Takashi.Sasaki@kek.jp)
41
//
42
//---------------------------------------------------------------
43
44
#include "
G4VSteppingVerbose.hh
"
45
#include "
G4SteppingManager.hh
"
46
#include "
G4Track.hh
"
47
#include "
G4ParticleDefinition.hh
"
48
49
G4VSteppingVerbose
*
G4VSteppingVerbose::fInstance
= 0;
50
G4int
G4VSteppingVerbose::Silent
= 0;
51
G4int
G4VSteppingVerbose::SilentStepInfo
= 0;
52
53
G4VSteppingVerbose::G4VSteppingVerbose
()
54
:
fManager
(0),
fUserSteppingAction
(0),
55
PhysicalStep
(0.),
GeometricalStep
(0.),
CorrectedStep
(0.),
56
PreStepPointIsGeom
(false),
FirstStep
(false),
57
TempInitVelocity
(0.),
TempVelocity
(0.),
Mass
(0.),
sumEnergyChange
(0.),
58
fParticleChange
(0),
fTrack
(0),
fSecondary
(0),
fStep
(0),
59
fPreStepPoint
(0),
fPostStepPoint
(0),
fCurrentVolume
(0),
60
fSensitive
(0),
fCurrentProcess
(0),
fAtRestDoItVector
(0),
61
fAlongStepDoItVector
(0),
fPostStepDoItVector
(0),
fAtRestGetPhysIntVector
(0),
62
fAlongStepGetPhysIntVector
(0),
fPostStepGetPhysIntVector
(0),
63
MAXofAtRestLoops
(0),
MAXofAlongStepLoops
(0),
MAXofPostStepLoops
(0),
64
currentMinimumStep
(0.),
numberOfInteractionLengthLeft
(0.),
65
fAtRestDoItProcTriggered
(0),
fAlongStepDoItProcTriggered
(0),
66
fPostStepDoItProcTriggered
(0),
fN2ndariesAtRestDoIt
(0),
67
fN2ndariesAlongStepDoIt
(0),
fN2ndariesPostStepDoIt
(0),
68
fNavigator
(0),
verboseLevel
(0),
fSelectedAtRestDoItVector
(0),
69
fSelectedAlongStepDoItVector
(0),
fSelectedPostStepDoItVector
(0),
70
fPreviousStepSize
(0.),
physIntLength
(0.)
71
{
72
if
(
fInstance
!= 0)
73
{
74
G4Exception
(
"G4VSteppingVerbose::G4VSteppingVerbose()"
,
75
"Tracking0014"
,
FatalException
,
76
"Only one SteppingVerbose class can be instantiated."
);
77
}
78
}
79
G4VSteppingVerbose::~G4VSteppingVerbose
(){;}
80
82
void
G4VSteppingVerbose::SetManager
(
G4SteppingManager
*
const
fMan)
84
{
85
fManager
=fMan;
86
}
87
89
void
G4VSteppingVerbose::CopyState
()
91
{
92
93
fUserSteppingAction
=
fManager
->
GetUserAction
();
94
// fVerbose = this;
95
96
PhysicalStep
=
fManager
->
GetPhysicalStep
();
97
GeometricalStep
=
fManager
->
GetGeometricalStep
();
98
CorrectedStep
=
fManager
->
GetCorrectedStep
();
99
PreStepPointIsGeom
=
fManager
->
GetPreStepPointIsGeom
();
100
FirstStep
=
fManager
->
GetFirstStep
();
101
fStepStatus
=
fManager
->
GetfStepStatus
();
102
103
TempInitVelocity
=
fManager
->
GetTempInitVelocity
();
104
TempVelocity
=
fManager
->
GetTempVelocity
();
105
Mass
=
fManager
->
GetMass
();
106
107
sumEnergyChange
=
fManager
->
GetsumEnergyChange
();
108
109
fParticleChange
=
fManager
->
GetfParticleChange
();
110
fTrack
=
fManager
->
GetfTrack
();
111
fSecondary
=
fManager
->
GetfSecondary
();
112
fStep
=
fManager
->
GetfStep
();
113
fPreStepPoint
=
fManager
->
GetfPreStepPoint
();
114
fPostStepPoint
=
fManager
->
GetfPostStepPoint
();
115
116
fCurrentVolume
=
fManager
->
GetfCurrentVolume
();
117
fSensitive
=
fManager
->
GetfSensitive
();
118
fCurrentProcess
=
fManager
->
GetfCurrentProcess
();
119
120
fAtRestDoItVector
=
fManager
->
GetfAtRestDoItVector
();
121
fAlongStepDoItVector
=
fManager
->
GetfAlongStepDoItVector
();
122
fPostStepDoItVector
=
fManager
->
GetfPostStepDoItVector
();
123
124
fAtRestGetPhysIntVector
=
fManager
->
GetfAtRestGetPhysIntVector
();
125
fAlongStepGetPhysIntVector
=
fManager
->
GetfAlongStepGetPhysIntVector
();
126
fPostStepGetPhysIntVector
=
fManager
->
GetfPostStepGetPhysIntVector
();
127
128
MAXofAtRestLoops
=
fManager
->
GetMAXofAtRestLoops
();
129
MAXofAlongStepLoops
=
fManager
->
GetMAXofAlongStepLoops
();
130
MAXofPostStepLoops
=
fManager
->
GetMAXofPostStepLoops
();
131
132
fAtRestDoItProcTriggered
=
fManager
->
GetfAtRestDoItProcTriggered
();
133
fAlongStepDoItProcTriggered
=
fManager
->
GetfAlongStepDoItProcTriggered
();
134
fPostStepDoItProcTriggered
=
fManager
->
GetfPostStepDoItProcTriggered
();
135
136
fN2ndariesAtRestDoIt
=
fManager
->
GetfN2ndariesAtRestDoIt
();
137
fN2ndariesAlongStepDoIt
=
fManager
->
GetfN2ndariesAlongStepDoIt
();
138
fN2ndariesPostStepDoIt
=
fManager
->
GetfN2ndariesPostStepDoIt
();
139
140
fNavigator
=
fManager
->
GetfNavigator
();
141
142
verboseLevel
=
fManager
->
GetverboseLevel
();
143
144
fSelectedAtRestDoItVector
=
fManager
->
GetfSelectedAtRestDoItVector
();
145
fSelectedAlongStepDoItVector
=
fManager
->
GetfSelectedAlongStepDoItVector
();
146
fSelectedPostStepDoItVector
=
fManager
->
GetfSelectedPostStepDoItVector
();
147
148
fPreviousStepSize
=
fManager
->
GetfPreviousStepSize
();
149
150
fTouchableHandle
=
fManager
->
GetTouchableHandle
();
151
152
StepControlFlag
=
fManager
->
GetStepControlFlag
();
153
154
physIntLength
=
fManager
->
GetphysIntLength
();
155
fCondition
=
fManager
->
GetfCondition
();
156
fGPILSelection
=
fManager
->
GetfGPILSelection
();
157
}
158
159
void
G4VSteppingVerbose::SetInstance
(
G4VSteppingVerbose
* Instance)
160
{
161
fInstance
=Instance;
162
}
163
164
G4VSteppingVerbose
*
G4VSteppingVerbose::GetInstance
()
165
{
166
return
fInstance
;
167
}
168
169
G4int
G4VSteppingVerbose::GetSilent
()
170
{
171
return
Silent
;
172
}
173
174
void
G4VSteppingVerbose::SetSilent
(
G4int
fSilent)
175
{
176
Silent
=fSilent;
177
}
178
179
G4int
G4VSteppingVerbose::GetSilentStepInfo
()
180
{
181
return
SilentStepInfo
;
182
}
183
184
void
G4VSteppingVerbose::SetSilentStepInfo
(
G4int
fSilent)
185
{
186
SilentStepInfo
=fSilent;
187
}
188
Generated on Sat May 25 2013 14:34:13 for Geant4 by
1.8.4