ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4VSteppingVerbose.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file 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 //
28 //---------------------------------------------------------------
29 //
30 // G4VSteppingVerbose.cc
31 //
32 // Description:
33 // This class manages the vervose outputs in G4SteppingManager.
34 //
35 //
36 // Contact:
37 // Questions and comments to this code should be sent to
38 // Katsuya Amako (e-mail: Katsuya.Amako@kek.jp)
39 // Takashi Sasaki (e-mail: Takashi.Sasaki@kek.jp)
40 //
41 //---------------------------------------------------------------
42 
43 #include "G4VSteppingVerbose.hh"
44 #include "G4SteppingManager.hh"
45 #include "G4Track.hh"
46 #include "G4ParticleDefinition.hh"
47 
51 
53  : fManager(0), fUserSteppingAction(0),
57  fParticleChange(0), fTrack(0), fSecondary(0), fStep(0),
70 {
71  if(fInstance!= 0)
72  {
73  G4Exception("G4VSteppingVerbose::G4VSteppingVerbose()",
74  "Tracking0014", FatalException,
75  "Only one SteppingVerbose class can be instantiated.");
76  }
77 }
79 
83 {
84  fManager=fMan;
85 }
86 
90 {
91 
93  // fVerbose = this;
94 
101 
104  Mass = fManager->GetMass();
105 
107 
109  fTrack = fManager->GetfTrack();
111  fStep = fManager->GetfStep();
114 
118 
122 
126 
130 
134 
138 
140 
142 
146 
148 
150 
152 
156 }
157 
159 {
160  fInstance=Instance;
161 }
162 
164 {
165  return fInstance;
166 }
167 
169 {
170  return Silent;
171 }
172 
174 {
175  Silent=fSilent;
176 }
177 
179 {
180  return SilentStepInfo;
181 }
182 
184 {
185  SilentStepInfo=fSilent;
186 }
187