Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4VSteppingVerbose.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 //
27 // $Id: G4VSteppingVerbose.cc 66872 2013-01-15 01:25:57Z japost $
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 
52 
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 }
80 
84 {
85  fManager=fMan;
86 }
87 
91 {
92 
94  // fVerbose = this;
95 
102 
105  Mass = fManager->GetMass();
106 
108 
110  fTrack = fManager->GetfTrack();
112  fStep = fManager->GetfStep();
115 
119 
123 
127 
131 
135 
139 
141 
143 
147 
149 
151 
153 
157 }
158 
160 {
161  fInstance=Instance;
162 }
163 
165 {
166  return fInstance;
167 }
168 
170 {
171  return Silent;
172 }
173 
175 {
176  Silent=fSilent;
177 }
178 
180 {
181  return SilentStepInfo;
182 }
183 
185 {
186  SilentStepInfo=fSilent;
187 }
188 
G4VPhysicalVolume * fCurrentVolume
G4SelectedAtRestDoItVector * GetfSelectedAtRestDoItVector()
G4VPhysicalVolume * GetfCurrentVolume()
size_t GetfPostStepDoItProcTriggered()
static void SetSilentStepInfo(G4int fSilent)
G4StepPoint * fPostStepPoint
G4double GetsumEnergyChange()
G4StepStatus GetfStepStatus()
G4StepPoint * fPreStepPoint
G4VProcess * fCurrentProcess
G4SteppingManager * fManager
G4VSensitiveDetector * GetfSensitive()
G4ProcessVector * fAtRestDoItVector
G4ProcessVector * GetfAlongStepGetPhysIntVector()
G4Navigator * GetfNavigator()
G4VParticleChange * fParticleChange
G4UserSteppingAction * GetUserAction()
G4ForceCondition GetfCondition()
G4SelectedAlongStepDoItVector * GetfSelectedAlongStepDoItVector()
G4ProcessVector * fAlongStepGetPhysIntVector
G4VSensitiveDetector * fSensitive
#define G4ThreadLocal
Definition: tls.hh:69
static G4ThreadLocal G4int SilentStepInfo
G4double GetTempInitVelocity()
G4VParticleChange * GetfParticleChange()
G4double GetGeometricalStep()
G4StepPoint * GetfPreStepPoint()
static G4VSteppingVerbose * GetInstance()
void SetManager(G4SteppingManager *const)
size_t GetfAlongStepDoItProcTriggered()
G4StepPoint * GetfPostStepPoint()
G4SelectedAlongStepDoItVector * fSelectedAlongStepDoItVector
size_t GetfAtRestDoItProcTriggered()
G4UserSteppingAction * fUserSteppingAction
static void SetSilent(G4int fSilent)
static G4ThreadLocal G4int Silent
G4TrackVector * fSecondary
G4SelectedPostStepDoItVector * fSelectedPostStepDoItVector
G4ProcessVector * fPostStepDoItVector
G4SteppingControl StepControlFlag
static G4int GetSilent()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.hh:65
G4ProcessVector * GetfPostStepGetPhysIntVector()
G4ProcessVector * fAlongStepDoItVector
int G4int
Definition: G4Types.hh:78
G4TouchableHandle fTouchableHandle
G4ProcessVector * fPostStepGetPhysIntVector
G4SteppingControl GetStepControlFlag()
G4SelectedAtRestDoItVector * fSelectedAtRestDoItVector
static G4ThreadLocal G4VSteppingVerbose * fInstance
static void SetInstance(G4VSteppingVerbose *Instance)
G4GPILSelection GetfGPILSelection()
const G4TouchableHandle & GetTouchableHandle()
G4ProcessVector * GetfAtRestDoItVector()
G4ForceCondition fCondition
G4ProcessVector * fAtRestGetPhysIntVector
G4SelectedPostStepDoItVector * GetfSelectedPostStepDoItVector()
G4ProcessVector * GetfAlongStepDoItVector()
G4GPILSelection fGPILSelection
G4double GetfPreviousStepSize()
G4int GetfN2ndariesAlongStepDoIt()
G4ProcessVector * GetfAtRestGetPhysIntVector()
static G4int GetSilentStepInfo()
G4VProcess * GetfCurrentProcess()
G4ProcessVector * GetfPostStepDoItVector()
G4TrackVector * GetfSecondary()