Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
52 
54  : fManager(0), fUserSteppingAction(0),
56  PreStepPointIsGeom(false), FirstStep(false),
58  fParticleChange(0), fTrack(0), fSecondary(0), fStep(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