Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
F05SteppingVerbose Class Reference

#include <F05SteppingVerbose.hh>

Inheritance diagram for F05SteppingVerbose:
G4SteppingVerbose G4VSteppingVerbose

Public Member Functions

 F05SteppingVerbose ()
 
virtual ~F05SteppingVerbose ()
 
virtual void StepInfo ()
 
virtual void TrackingStarted ()
 
- Public Member Functions inherited from G4SteppingVerbose
 G4SteppingVerbose ()
 
 ~G4SteppingVerbose ()
 
void NewStep ()
 
void AtRestDoItInvoked ()
 
void AlongStepDoItAllDone ()
 
void PostStepDoItAllDone ()
 
void AlongStepDoItOneByOne ()
 
void PostStepDoItOneByOne ()
 
void StepInfo ()
 
void TrackingStarted ()
 
void DPSLStarted ()
 
void DPSLUserLimit ()
 
void DPSLPostStep ()
 
void DPSLAlongStep ()
 
void VerboseTrack ()
 
void VerboseParticleChange ()
 
void ShowStep () const
 
- Public Member Functions inherited from G4VSteppingVerbose
virtual ~G4VSteppingVerbose ()
 
void CopyState ()
 
void SetManager (G4SteppingManager *const)
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VSteppingVerbose
static void SetInstance (G4VSteppingVerbose *Instance)
 
static G4VSteppingVerboseGetInstance ()
 
static G4int GetSilent ()
 
static void SetSilent (G4int fSilent)
 
static G4int GetSilentStepInfo ()
 
static void SetSilentStepInfo (G4int fSilent)
 
- Protected Types inherited from G4VSteppingVerbose
typedef std::vector< G4intG4SelectedAtRestDoItVector
 
typedef std::vector< G4intG4SelectedAlongStepDoItVector
 
typedef std::vector< G4intG4SelectedPostStepDoItVector
 
- Protected Member Functions inherited from G4VSteppingVerbose
 G4VSteppingVerbose ()
 
- Protected Attributes inherited from G4VSteppingVerbose
G4SteppingManagerfManager
 
G4UserSteppingActionfUserSteppingAction
 
G4double PhysicalStep
 
G4double GeometricalStep
 
G4double CorrectedStep
 
G4bool PreStepPointIsGeom
 
G4bool FirstStep
 
G4StepStatus fStepStatus
 
G4double TempInitVelocity
 
G4double TempVelocity
 
G4double Mass
 
G4double sumEnergyChange
 
G4VParticleChangefParticleChange
 
G4TrackfTrack
 
G4TrackVectorfSecondary
 
G4StepfStep
 
G4StepPointfPreStepPoint
 
G4StepPointfPostStepPoint
 
G4VPhysicalVolumefCurrentVolume
 
G4VSensitiveDetectorfSensitive
 
G4VProcessfCurrentProcess
 
G4ProcessVectorfAtRestDoItVector
 
G4ProcessVectorfAlongStepDoItVector
 
G4ProcessVectorfPostStepDoItVector
 
G4ProcessVectorfAtRestGetPhysIntVector
 
G4ProcessVectorfAlongStepGetPhysIntVector
 
G4ProcessVectorfPostStepGetPhysIntVector
 
size_t MAXofAtRestLoops
 
size_t MAXofAlongStepLoops
 
size_t MAXofPostStepLoops
 
G4double currentMinimumStep
 
G4double numberOfInteractionLengthLeft
 
size_t fAtRestDoItProcTriggered
 
size_t fAlongStepDoItProcTriggered
 
size_t fPostStepDoItProcTriggered
 
G4int fN2ndariesAtRestDoIt
 
G4int fN2ndariesAlongStepDoIt
 
G4int fN2ndariesPostStepDoIt
 
G4NavigatorfNavigator
 
G4int verboseLevel
 
G4SelectedAtRestDoItVectorfSelectedAtRestDoItVector
 
G4SelectedAlongStepDoItVectorfSelectedAlongStepDoItVector
 
G4SelectedPostStepDoItVectorfSelectedPostStepDoItVector
 
G4double fPreviousStepSize
 
G4TouchableHandle fTouchableHandle
 
G4SteppingControl StepControlFlag
 
G4double physIntLength
 
G4ForceCondition fCondition
 
G4GPILSelection fGPILSelection
 
- Static Protected Attributes inherited from G4VSteppingVerbose
static G4ThreadLocal
G4VSteppingVerbose
fInstance = 0
 
static G4ThreadLocal G4int Silent = 0
 
static G4ThreadLocal G4int SilentStepInfo = 0
 

Detailed Description

Definition at line 53 of file F05SteppingVerbose.hh.

Constructor & Destructor Documentation

F05SteppingVerbose::F05SteppingVerbose ( )

Definition at line 42 of file F05SteppingVerbose.cc.

43 {}
F05SteppingVerbose::~F05SteppingVerbose ( )
virtual

Definition at line 47 of file F05SteppingVerbose.cc.

48 {}

Member Function Documentation

void F05SteppingVerbose::StepInfo ( )
virtual

Implements G4VSteppingVerbose.

Definition at line 52 of file F05SteppingVerbose.cc.

References G4VSteppingVerbose::CopyState(), G4VSteppingVerbose::fN2ndariesAlongStepDoIt, G4VSteppingVerbose::fN2ndariesAtRestDoIt, G4VSteppingVerbose::fN2ndariesPostStepDoIt, G4VSteppingVerbose::fSecondary, G4VSteppingVerbose::fStep, G4VSteppingVerbose::fTrack, G4BestUnit, G4cout, G4endl, G4Track::GetCurrentStepNumber(), G4Track::GetGlobalTime(), G4Track::GetMomentumDirection(), G4VPhysicalVolume::GetName(), G4Track::GetNextVolume(), G4Track::GetPosition(), G4Step::GetPostStepPoint(), G4StepPoint::GetProcessDefinedStep(), G4VProcess::GetProcessName(), G4Step::GetStepLength(), G4Step::GetTotalEnergyDeposit(), G4Track::GetTrackLength(), G4Track::GetVolume(), G4VSteppingVerbose::verboseLevel, G4SteppingVerbose::VerboseTrack(), test::x, CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), z, and CLHEP::Hep3Vector::z().

53 {
54  CopyState();
55 
56  G4int prec = G4cout.precision(6);
57 
58  if( verboseLevel >= 1 ){
59  if( verboseLevel >= 4 ) VerboseTrack();
60  if( verboseLevel >= 3 ){
61  G4cout << G4endl;
62  G4cout << std::setw( 5) << "#Step#" << " "
63  << std::setw(10) << "X" << " "
64  << std::setw(10) << "Y" << " "
65  << std::setw(10) << "Z" << " "
66  << std::setw(10) << "Direction x" << " "
67  << std::setw(10) << "dir y" << " "
68  << std::setw(10) << "dir z" << " "
69  << std::setw( 8) << "Time" << " "
70  << std::setw( 6) << "dEStep" << " "
71  << std::setw(10) << "StepLeng"
72  << std::setw(10) << "TrakLeng"
73  << std::setw(10) << "NextVolu"
74  << std::setw(10) << "Process" << " "
75  << G4endl;
76  }
77 
78  G4cout << std::setw( 5) << fTrack->GetCurrentStepNumber() << " "
79  << std::setw(10) << G4BestUnit(fTrack->GetPosition().x(),"Length")
80  << std::setw(10) << G4BestUnit(fTrack->GetPosition().y(),"Length")
81  << std::setw(10) << G4BestUnit(fTrack->GetPosition().z(),"Length");
82  G4cout << std::setw(10) << fTrack->GetMomentumDirection().x() << " "
83  << std::setw(10) << fTrack->GetMomentumDirection().y() << " "
84  << std::setw(10) << fTrack->GetMomentumDirection().z() << " ";
85  G4cout << std::setw( 8) << G4BestUnit(fTrack->GetGlobalTime(),"Time")
86  << std::setw( 6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
87  << std::setw(10) << G4BestUnit(fStep->GetStepLength(),"Length")
88  << std::setw(10) << G4BestUnit(fTrack->GetTrackLength(),"Length");
89 
90  if( fTrack->GetNextVolume() != 0 ) {
91  G4cout << std::setw(10) << fTrack->GetVolume()->GetName();
92  } else {
93  G4cout << std::setw(10) << "OutOfWorld";
94  }
95 
97  G4cout << " "
98  << std::setw(10) << fStep->GetPostStepPoint()->GetProcessDefinedStep()
99  ->GetProcessName();
100  } else {
101  G4cout << " UserLimit";
102  }
103  G4cout << G4endl;
104 
105  if( verboseLevel == 2 ){
106  G4int tN2ndariesTot = fN2ndariesAtRestDoIt +
109  if(tN2ndariesTot>0){
110  G4cout << " :----- List of 2ndaries - "
111  << "#SpawnInStep=" << std::setw(3) << tN2ndariesTot
112  << "(Rest=" << std::setw(2) << fN2ndariesAtRestDoIt
113  << ",Along=" << std::setw(2) << fN2ndariesAlongStepDoIt
114  << ",Post=" << std::setw(2) << fN2ndariesPostStepDoIt
115  << "), "
116  << "#SpawnTotal=" << std::setw(3) << (*fSecondary).size()
117  << " ---------------"
118  << G4endl;
119 
120  for(size_t lp1=(*fSecondary).size()-tN2ndariesTot;
121  lp1<(*fSecondary).size(); lp1++)
122  {
123  G4cout << " : "
124  << std::setw(6)
125  << G4BestUnit((*fSecondary)[lp1]->GetPosition().x(),"Length")
126  << std::setw(6)
127  << G4BestUnit((*fSecondary)[lp1]->GetPosition().y(),"Length")
128  << std::setw(6)
129  << G4BestUnit((*fSecondary)[lp1]->GetPosition().z(),"Length")
130  << std::setw(6)
131  << G4BestUnit((*fSecondary)[lp1]->GetKineticEnergy(),"Energy")
132  << std::setw(10)
133  << (*fSecondary)[lp1]->GetDefinition()->GetParticleName();
134  G4cout << G4endl;
135  }
136 
137  G4cout << " :-----------------------------"
138  << "----------------------------------"
139  << "-- EndOf2ndaries Info ---------------"
140  << G4endl;
141  }
142  }
143 
144  }
145  G4cout.precision(prec);
146 }
G4double GetStepLength() const
double x() const
G4double z
Definition: TRTMaterials.hh:39
const G4ThreeVector & GetPosition() const
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
int G4int
Definition: G4Types.hh:78
double z() const
G4VPhysicalVolume * GetNextVolume() const
G4GLOB_DLL std::ostream G4cout
G4int GetCurrentStepNumber() const
G4TrackVector * fSecondary
const G4String & GetName() const
G4double GetGlobalTime() const
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
G4double GetTotalEnergyDeposit() const
G4double GetTrackLength() const
const G4VProcess * GetProcessDefinedStep() const
const G4ThreeVector & GetMomentumDirection() const
G4StepPoint * GetPostStepPoint() const
double y() const
G4VPhysicalVolume * GetVolume() const
#define G4endl
Definition: G4ios.hh:61
void F05SteppingVerbose::TrackingStarted ( )
virtual

Implements G4VSteppingVerbose.

Definition at line 150 of file F05SteppingVerbose.cc.

References G4VSteppingVerbose::CopyState(), G4VSteppingVerbose::fStep, G4VSteppingVerbose::fTrack, G4BestUnit, G4cout, G4endl, G4Track::GetCurrentStepNumber(), G4Track::GetGlobalTime(), G4Track::GetMomentumDirection(), G4VPhysicalVolume::GetName(), G4Track::GetNextVolume(), G4Track::GetPosition(), G4Step::GetStepLength(), G4Step::GetTotalEnergyDeposit(), G4Track::GetTrackLength(), G4Track::GetVolume(), G4VSteppingVerbose::verboseLevel, CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().

151 {
152 
153  CopyState();
154  G4int prec = G4cout.precision(6);
155  if( verboseLevel > 0 ){
156 
157  G4cout << std::setw( 5) << "Step#" << " "
158  << std::setw(10) << "X" << " "
159  << std::setw(10) << "Y" << " "
160  << std::setw(10) << "Z" << " "
161  << std::setw(10) << "Direction x" << " "
162  << std::setw(10) << "dir y" << " "
163  << std::setw(10) << "dir z" << " "
164  << std::setw(10) << "Time" << " "
165  << std::setw(10) << "dEStep" << " "
166  << std::setw(10) << "StepLeng"
167  << std::setw(10) << "TrakLeng"
168  << std::setw(10) << "Volume" << " "
169  << std::setw(10) << "Process"
170  << G4endl;
171 
172  G4cout << std::setw( 5) << fTrack->GetCurrentStepNumber() << " "
173  << std::setw(10) << G4BestUnit(fTrack->GetPosition().x(),"Length")
174  << std::setw(10) << G4BestUnit(fTrack->GetPosition().y(),"Length")
175  << std::setw(10) << G4BestUnit(fTrack->GetPosition().z(),"Length");
176  G4cout << std::setw(10) << fTrack->GetMomentumDirection().x() << " "
177  << std::setw(10) << fTrack->GetMomentumDirection().y() << " "
178  << std::setw(10) << fTrack->GetMomentumDirection().z() << " ";
179  G4cout << std::setw( 8) << G4BestUnit(fTrack->GetGlobalTime(),"Time")
180  << std::setw( 6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
181  << std::setw(10) << G4BestUnit(fStep->GetStepLength(),"Length")
182  << std::setw(10) << G4BestUnit(fTrack->GetTrackLength(),"Length");
183 
184  if(fTrack->GetNextVolume()){
185  G4cout << std::setw(10) << fTrack->GetVolume()->GetName();
186  } else {
187  G4cout << std::setw(10) << "OutOfWorld";
188  }
189  G4cout << " initStep" << G4endl;
190  }
191  G4cout.precision(prec);
192 }
G4double GetStepLength() const
double x() const
const G4ThreeVector & GetPosition() const
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
int G4int
Definition: G4Types.hh:78
double z() const
G4VPhysicalVolume * GetNextVolume() const
G4GLOB_DLL std::ostream G4cout
G4int GetCurrentStepNumber() const
const G4String & GetName() const
G4double GetGlobalTime() const
G4double GetTotalEnergyDeposit() const
G4double GetTrackLength() const
const G4ThreeVector & GetMomentumDirection() const
double y() const
G4VPhysicalVolume * GetVolume() const
#define G4endl
Definition: G4ios.hh:61

The documentation for this class was generated from the following files: