source: trunk/source/tracking/src/G4VSteppingVerbose.cc@ 1190

Last change on this file since 1190 was 1011, checked in by garnier, 17 years ago

update

File size: 6.0 KB
Line 
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,v 1.18 2006/11/14 10:58:47 tsasaki Exp $
28// GEANT4 tag $Name: geant4-09-02-ref-02 $
29//
30//---------------------------------------------------------------
31//
32// G4VSteppingVerbose.cc
33//
34// Description:
35// This class manages the vervose outputs in G4SteppingManager.
36//
37//
38// Contact:
39// Questions and comments to this code should be sent to
40// Katsuya Amako (e-mail: Katsuya.Amako@kek.jp)
41// Takashi Sasaki (e-mail: Takashi.Sasaki@kek.jp)
42//
43//---------------------------------------------------------------
44
45#include "G4VSteppingVerbose.hh"
46#include "G4SteppingManager.hh"
47#include "G4Track.hh"
48#include "G4ParticleDefinition.hh"
49
50G4VSteppingVerbose* G4VSteppingVerbose::fInstance = 0;
51G4int G4VSteppingVerbose::Silent = 0;
52G4int G4VSteppingVerbose::SilentStepInfo = 0;
53G4VSteppingVerbose::G4VSteppingVerbose() :verboseLevel(0){
54 if(fInstance!= NULL) G4Exception("G4SteppingVerbose is the singleton. Only one SteppingVerbose class can be instantiated.");
55}
56G4VSteppingVerbose::~G4VSteppingVerbose(){;}
57
58//////////////////////////////////////////////////////////////////
59void G4VSteppingVerbose::SetManager(G4SteppingManager* const fMan)
60//////////////////////////////////////////////////////////////////
61{
62 fManager=fMan;
63}
64
65
66
67//////////////////////////////////////////////////
68void G4VSteppingVerbose::CopyState()
69//////////////////////////////////////////////////
70{
71
72 fUserSteppingAction = fManager->GetUserAction();
73 // fVerbose = this;
74
75 PhysicalStep = fManager->GetPhysicalStep();
76 GeometricalStep = fManager->GetGeometricalStep();
77 CorrectedStep = fManager->GetCorrectedStep();
78 PreStepPointIsGeom = fManager->GetPreStepPointIsGeom();
79 FirstStep = fManager->GetFirstStep();
80 fStepStatus = fManager->GetfStepStatus();
81
82 TempInitVelocity = fManager->GetTempInitVelocity();
83 TempVelocity = fManager->GetTempVelocity();
84 Mass = fManager->GetMass();
85
86 sumEnergyChange = fManager->GetsumEnergyChange();
87
88 fParticleChange = fManager->GetfParticleChange();
89 fTrack = fManager->GetfTrack();
90 fSecondary = fManager->GetfSecondary();
91 fStep = fManager->GetfStep();
92 fPreStepPoint = fManager->GetfPreStepPoint();
93 fPostStepPoint = fManager->GetfPostStepPoint();
94
95 fCurrentVolume = fManager->GetfCurrentVolume();
96 fSensitive = fManager->GetfSensitive();
97 fCurrentProcess = fManager->GetfCurrentProcess();
98
99 fAtRestDoItVector = fManager->GetfAtRestDoItVector();
100 fAlongStepDoItVector = fManager->GetfAlongStepDoItVector();
101 fPostStepDoItVector = fManager->GetfPostStepDoItVector();
102
103 fAtRestGetPhysIntVector = fManager->GetfAtRestGetPhysIntVector();
104 fAlongStepGetPhysIntVector = fManager->GetfAlongStepGetPhysIntVector();
105 fPostStepGetPhysIntVector = fManager->GetfPostStepGetPhysIntVector();
106
107 MAXofAtRestLoops = fManager->GetMAXofAtRestLoops();
108 MAXofAlongStepLoops = fManager->GetMAXofAlongStepLoops();
109 MAXofPostStepLoops = fManager->GetMAXofPostStepLoops();
110
111 fAtRestDoItProcTriggered = fManager->GetfAtRestDoItProcTriggered();
112 fAlongStepDoItProcTriggered = fManager->GetfAlongStepDoItProcTriggered();
113 fPostStepDoItProcTriggered = fManager->GetfPostStepDoItProcTriggered();
114
115 fN2ndariesAtRestDoIt = fManager->GetfN2ndariesAtRestDoIt();
116 fN2ndariesAlongStepDoIt = fManager->GetfN2ndariesAlongStepDoIt();
117 fN2ndariesPostStepDoIt = fManager->GetfN2ndariesPostStepDoIt();
118
119 fNavigator = fManager->GetfNavigator();
120
121 verboseLevel = fManager->GetverboseLevel();
122
123 fSelectedAtRestDoItVector = fManager->GetfSelectedAtRestDoItVector();
124 fSelectedAlongStepDoItVector = fManager->GetfSelectedAlongStepDoItVector();
125 fSelectedPostStepDoItVector = fManager->GetfSelectedPostStepDoItVector();
126
127 fPreviousStepSize = fManager->GetfPreviousStepSize();
128
129 fTouchableHandle = fManager->GetTouchableHandle();
130
131 StepControlFlag = fManager->GetStepControlFlag();
132
133 physIntLength = fManager->GetphysIntLength();
134 fCondition = fManager->GetfCondition();
135 fGPILSelection = fManager->GetfGPILSelection();
136}
137
138void G4VSteppingVerbose::SetInstance(G4VSteppingVerbose* Instance)
139{
140 fInstance=Instance;
141}
142
143G4VSteppingVerbose* G4VSteppingVerbose::GetInstance()
144{
145 return fInstance;
146}
147
148G4int G4VSteppingVerbose::GetSilent()
149{
150 return Silent;
151}
152
153void G4VSteppingVerbose::SetSilent(G4int fSilent)
154{
155 Silent=fSilent;
156}
157
158G4int G4VSteppingVerbose::GetSilentStepInfo()
159{
160 return SilentStepInfo;
161}
162
163void G4VSteppingVerbose::SetSilentStepInfo(G4int fSilent)
164{
165 SilentStepInfo=fSilent;
166}
167
Note: See TracBrowser for help on using the repository browser.