Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4VITSteppingVerbose.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  * G4VITSteppingVerbose.cc
28  *
29  * Created on: Jun 22, 2015
30  * Author: mkaramit
31  */
32 
33 #include <G4VITSteppingVerbose.hh>
34 #include <G4UIcmdWithAnInteger.hh>
35 
36 //______________________________________________________________________________
37 
39 {
40  fpStepProcessor = 0;
41  fpState = 0;
43 
44  PhysicalStep = -1;
46 
47  fParticleChange = 0;
48  fTrack = 0;
49  fSecondary = 0;
50  fStep = 0;
51  fPreStepPoint = 0;
52  fPostStepPoint = 0;
53 
54  fCurrentVolume = 0;
55  // fSensitive = fpStepProcessor->GetfSensitive();
56  fCurrentProcess = 0;
57 
61 
65 
66  MAXofAtRestLoops = 0;
69 
72 
76 
77  // fNavigator = fpStepProcessor->GetfNavigator();
78 
79  fVerboseLevel = 0;
80  fpVerboseUI = new G4UIcmdWithAnInteger("/chem/tracking/verbose", this);
81 
84 
85  fPreviousStepSize = 0.;
86 
87  fTouchableHandle = 0;
88 
89  // StepControlFlag = fpStepProcessor->GetStepControlFlag();
90 
91  physIntLength = 0;
94 
95 }
96 
97 //______________________________________________________________________________
98 
100 {
101  if(fpVerboseUI) delete fpVerboseUI;
102 }
103 
104 //______________________________________________________________________________
105 
107 {
108 
110  else
111  {
113  }
114 
116 
119 
126 
128 // fSensitive = fpStepProcessor->GetfSensitive();
130 
134 
139 
143 
146 
150 
151 // fNavigator = fpStepProcessor->GetfNavigator();
152 
155 
157 
159 
160 // StepControlFlag = fpStepProcessor->GetStepControlFlag();
161 
165 }
166 
167 //______________________________________________________________________________
168 
170 {
171  if(command == fpVerboseUI)
172  {
174  }
175 }
176 
177 //______________________________________________________________________________
178 
180 {
181  return command->ConvertToString(fVerboseLevel);
182 }
183 
184 //______________________________________________________________________________
185 
187 #ifdef G4VERBOSE
188  track
189 #endif
190 )
191 {
192 #ifdef G4VERBOSE
193  if(fVerboseLevel > 0)
194  {
195  TrackBanner(track, "G4ITTrackingManager::StartTracking : ");
196  }
197 #endif
198 
199 }
200 
201 //______________________________________________________________________________
202 
204 #ifdef G4VERBOSE
205  track
206 #endif
207 )
208 {
209 #ifdef G4VERBOSE
210  if(fVerboseLevel > 0)
211  {
212  TrackBanner(track, "G4ITTrackingManager::EndTracking : ");
213  }
214 #endif
215 }
216 
217 //______________________________________________________________________________
218 
220 {
221  G4cout << G4endl;
222  G4cout << "*******************************************************"
223  << "**************************************************"
224  << G4endl;
225  if(message != "")
226  {
227  G4cout << message;
228  }
229  G4cout << " * G4Track Information: "
230  << " Particle : " << track->GetDefinition()->GetParticleName()
231  << ","
232  << " Track ID : " << track->GetTrackID()
233  << ","
234  << " Parent ID : " << track->GetParentID()
235  << G4endl;
236  G4cout << "*******************************************************"
237  << "**************************************************"
238  << G4endl;
239  G4cout << G4endl;
240 }
const G4VPhysicalVolume * GetCurrentVolume() const
const ProcessGeneralInfo * fpProcessGeneralInfo
G4ProcessVector * fpAlongStepGetPhysIntVector
size_t GetAtRestDoItProcTriggered() const
G4SelectedPostStepDoItVector fSelectedPostStepDoItVector
G4StepPoint * GetPreStepPoint() const
#define G4endl
Definition: G4ios.hh:61
G4ForceCondition GetCondition() const
G4TouchableHandle fTouchableHandle
virtual void TrackingEnded(G4Track *track)
void message(RunManager *runmanager)
Definition: ts_scorers.cc:72
const G4String & GetParticleName() const
G4int GetTrackID() const
const G4VParticleChange * fParticleChange
G4ProcessVector * fpAtRestGetPhysIntVector
G4ParticleDefinition * GetDefinition() const
G4ProcessVector * fAlongStepGetPhysIntVector
G4TrackVector * GetSecondaries() const
void TrackBanner(G4Track *track, const G4String &message)
G4ProcessVector * fAtRestGetPhysIntVector
G4ProcessVector * fAlongStepDoItVector
G4SelectedPostStepDoItVector * fSelectedPostStepDoItVector
G4ProcessVector * fPostStepDoItVector
G4ProcessVector * fpAlongStepDoItVector
const ProcessGeneralInfo * GetCurrentProcessInfo() const
const G4VParticleChange * GetParticleChange() const
G4SelectedAtRestDoItVector fSelectedAtRestDoItVector
G4ProcessVector * fpPostStepGetPhysIntVector
G4UIcmdWithAnInteger * fpVerboseUI
G4ProcessVector * fPostStepGetPhysIntVector
G4SelectedAtRestDoItVector * fSelectedAtRestDoItVector
G4TouchableHandle fTouchableHandle
G4int GetN2ndariesAtRestDoIt() const
const G4VPhysicalVolume * fCurrentVolume
G4StepPoint * GetPostStepPoint() const
G4ITStepProcessorState * fpState
static G4String ConvertToString(G4bool boolVal)
Definition: G4UIcommand.cc:374
const G4TrackVector * fSecondary
G4ProcessVector * fpPostStepDoItVector
const G4ITStepProcessorState * GetProcessorState() const
virtual G4String GetCurrentValue(G4UIcommand *command)
static G4int GetNewIntValue(const char *paramString)
size_t GetPostStepDoItProcTriggered() const
G4GLOB_DLL std::ostream G4cout
virtual void TrackingStarted(G4Track *track)
const G4VITProcess * fCurrentProcess
G4ProcessVector * fpAtRestDoItVector
G4int GetN2ndariesPostStepDoIt() const
G4GPILSelection GetGPILSelection() const
const G4ITStepProcessor * fpStepProcessor
G4GPILSelection fGPILSelection
G4double GetPhysIntLength() const
const G4VITProcess * GetCurrentProcess() const
G4ProcessVector * fAtRestDoItVector
virtual void SetNewValue(G4UIcommand *command, G4String newValue)
G4int GetN2ndariesAlongStepDoIt() const
G4int GetParentID() const