Loading...
Searching...
No Matches
Public Member Functions | List of all members
F05SteppingVerbose Class Reference

#include <Doxymodules_field.h>

Inheritance diagram for F05SteppingVerbose:
G4SteppingVerbose G4VSteppingVerbose

Public Member Functions

 F05SteppingVerbose ()=default
 
 ~F05SteppingVerbose () override=default
 
void StepInfo () override
 
void TrackingStarted () override
 

Detailed Description

Definition at line 140 of file Doxymodules_field.h.

Constructor & Destructor Documentation

◆ F05SteppingVerbose()

F05SteppingVerbose::F05SteppingVerbose ( )
default

◆ ~F05SteppingVerbose()

F05SteppingVerbose::~F05SteppingVerbose ( )
overridedefault

Member Function Documentation

◆ StepInfo()

void F05SteppingVerbose::StepInfo ( )
override

Definition at line 41 of file F05SteppingVerbose.cc.

42{
43 CopyState();
44
45 G4int prec = G4cout.precision(6);
46
47 if( verboseLevel >= 1 ){
48 if( verboseLevel >= 4 ) VerboseTrack();
49 if( verboseLevel >= 3 ){
50 G4cout << G4endl;
51 G4cout << std::setw( 5) << "#Step#" << " "
52 << std::setw(10) << "X" << " "
53 << std::setw(10) << "Y" << " "
54 << std::setw(10) << "Z" << " "
55 << std::setw(10) << "Direction x" << " "
56 << std::setw(10) << "dir y" << " "
57 << std::setw(10) << "dir z" << " "
58 << std::setw( 8) << "Time" << " "
59 << std::setw( 6) << "dEStep" << " "
60 << std::setw(10) << "StepLeng"
61 << std::setw(10) << "TrakLeng"
62 << std::setw(10) << "NextVolu"
63 << std::setw(10) << "Process" << " "
64 << G4endl;
65 }
66
67 G4cout << std::setw( 5) << fTrack->GetCurrentStepNumber() << " "
68 << std::setw(10) << G4BestUnit(fTrack->GetPosition().x(),"Length")
69 << std::setw(10) << G4BestUnit(fTrack->GetPosition().y(),"Length")
70 << std::setw(10) << G4BestUnit(fTrack->GetPosition().z(),"Length");
71 G4cout << std::setw(10) << fTrack->GetMomentumDirection().x() << " "
72 << std::setw(10) << fTrack->GetMomentumDirection().y() << " "
73 << std::setw(10) << fTrack->GetMomentumDirection().z() << " ";
74 G4cout << std::setw( 8) << G4BestUnit(fTrack->GetGlobalTime(),"Time")
75 << std::setw( 6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
76 << std::setw(10) << G4BestUnit(fStep->GetStepLength(),"Length")
77 << std::setw(10) << G4BestUnit(fTrack->GetTrackLength(),"Length");
78
79 if( fTrack->GetNextVolume() != nullptr ) {
80 G4cout << std::setw(10) << fTrack->GetVolume()->GetName();
81 } else {
82 G4cout << std::setw(10) << "OutOfWorld";
83 }
84
85 if(fStep->GetPostStepPoint()->GetProcessDefinedStep() != nullptr){
86 G4cout << " "
87 << std::setw(10) << fStep->GetPostStepPoint()->GetProcessDefinedStep()
88 ->GetProcessName();
89 } else {
90 G4cout << " UserLimit";
91 }
92 G4cout << G4endl;
93
94 if( verboseLevel == 2 ){
95 G4int tN2ndariesTot = fN2ndariesAtRestDoIt +
96 fN2ndariesAlongStepDoIt +
97 fN2ndariesPostStepDoIt;
98 if(tN2ndariesTot>0){
99 G4cout << " :----- List of 2ndaries - "
100 << "#SpawnInStep=" << std::setw(3) << tN2ndariesTot
101 << "(Rest=" << std::setw(2) << fN2ndariesAtRestDoIt
102 << ",Along=" << std::setw(2) << fN2ndariesAlongStepDoIt
103 << ",Post=" << std::setw(2) << fN2ndariesPostStepDoIt
104 << "), "
105 << "#SpawnTotal=" << std::setw(3) << (*fSecondary).size()
106 << " ---------------"
107 << G4endl;
108
109 for(size_t lp1=(*fSecondary).size()-tN2ndariesTot;
110 lp1<(*fSecondary).size(); lp1++)
111 {
112 G4cout << " : "
113 << std::setw(6)
114 << G4BestUnit((*fSecondary)[lp1]->GetPosition().x(),"Length")
115 << std::setw(6)
116 << G4BestUnit((*fSecondary)[lp1]->GetPosition().y(),"Length")
117 << std::setw(6)
118 << G4BestUnit((*fSecondary)[lp1]->GetPosition().z(),"Length")
119 << std::setw(6)
120 << G4BestUnit((*fSecondary)[lp1]->GetKineticEnergy(),"Energy")
121 << std::setw(10)
122 << (*fSecondary)[lp1]->GetDefinition()->GetParticleName();
123 G4cout << G4endl;
124 }
125
126 G4cout << " :-----------------------------"
127 << "----------------------------------"
128 << "-- EndOf2ndaries Info ---------------"
129 << G4endl;
130 }
131 }
132
133 }
134 G4cout.precision(prec);
135}

◆ TrackingStarted()

void F05SteppingVerbose::TrackingStarted ( )
override

Definition at line 139 of file F05SteppingVerbose.cc.

140{
141
142 CopyState();
143 G4int prec = G4cout.precision(6);
144 if( verboseLevel > 0 ){
145
146 G4cout << std::setw( 5) << "Step#" << " "
147 << std::setw(10) << "X" << " "
148 << std::setw(10) << "Y" << " "
149 << std::setw(10) << "Z" << " "
150 << std::setw(10) << "Direction x" << " "
151 << std::setw(10) << "dir y" << " "
152 << std::setw(10) << "dir z" << " "
153 << std::setw(10) << "Time" << " "
154 << std::setw(10) << "dEStep" << " "
155 << std::setw(10) << "StepLeng"
156 << std::setw(10) << "TrakLeng"
157 << std::setw(10) << "Volume" << " "
158 << std::setw(10) << "Process"
159 << G4endl;
160
161 G4cout << std::setw( 5) << fTrack->GetCurrentStepNumber() << " "
162 << std::setw(10) << G4BestUnit(fTrack->GetPosition().x(),"Length")
163 << std::setw(10) << G4BestUnit(fTrack->GetPosition().y(),"Length")
164 << std::setw(10) << G4BestUnit(fTrack->GetPosition().z(),"Length");
165 G4cout << std::setw(10) << fTrack->GetMomentumDirection().x() << " "
166 << std::setw(10) << fTrack->GetMomentumDirection().y() << " "
167 << std::setw(10) << fTrack->GetMomentumDirection().z() << " ";
168 G4cout << std::setw( 8) << G4BestUnit(fTrack->GetGlobalTime(),"Time")
169 << std::setw( 6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
170 << std::setw(10) << G4BestUnit(fStep->GetStepLength(),"Length")
171 << std::setw(10) << G4BestUnit(fTrack->GetTrackLength(),"Length");
172
173 if(fTrack->GetNextVolume()){
174 G4cout << std::setw(10) << fTrack->GetVolume()->GetName();
175 } else {
176 G4cout << std::setw(10) << "OutOfWorld";
177 }
178 G4cout << " initStep" << G4endl;
179 }
180 G4cout.precision(prec);
181}

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

Applications | User Support | Publications | Collaboration