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

#include <Doxymodules_field.h>

Inheritance diagram for F01SteppingVerbose:
G4SteppingVerbose G4VSteppingVerbose

Public Member Functions

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

Detailed Description

Definition at line 45 of file Doxymodules_field.h.

Constructor & Destructor Documentation

◆ F01SteppingVerbose()

F01SteppingVerbose::F01SteppingVerbose ( )
default

◆ ~F01SteppingVerbose()

F01SteppingVerbose::~F01SteppingVerbose ( )
overridedefault

Member Function Documentation

◆ StepInfo()

void F01SteppingVerbose::StepInfo ( )
override

Definition at line 41 of file F01SteppingVerbose.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) << "KineE" << " "
59 << std::setw(10) << "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->GetKineticEnergy(),"Energy") << " "
75 << std::setw(10) << G4BestUnit(
76 fStep->GetTotalEnergyDeposit(),"Energy") << " "
77 << std::setw(10) << G4BestUnit(fStep->GetStepLength(),"Length") << " "
78 << std::setw(10) << G4BestUnit(fTrack->GetTrackLength(),"Length") << " ";
79
80 if( fTrack->GetNextVolume() != nullptr ) {
81 G4cout << std::setw(10) << fTrack->GetVolume()->GetName();
82 } else {
83 G4cout << std::setw(10) << "OutOfWorld";
84 }
85
86 if(fStep->GetPostStepPoint()->GetProcessDefinedStep() != nullptr){
87 G4cout << " "
88 << std::setw(10)
89 << fStep->GetPostStepPoint()->GetProcessDefinedStep()
90 ->GetProcessName();
91 } else {
92 G4cout << " UserLimit";
93 }
94 G4cout << G4endl;
95
96 if( verboseLevel == 2 ){
97 G4int tN2ndariesTot = fN2ndariesAtRestDoIt +
98 fN2ndariesAlongStepDoIt +
99 fN2ndariesPostStepDoIt;
100 if(tN2ndariesTot>0){
101 G4cout << " :----- List of 2ndaries - "
102 << "#SpawnInStep=" << std::setw(3) << tN2ndariesTot
103 << "(Rest=" << std::setw(2) << fN2ndariesAtRestDoIt
104 << ",Along=" << std::setw(2) << fN2ndariesAlongStepDoIt
105 << ",Post=" << std::setw(2) << fN2ndariesPostStepDoIt
106 << "), "
107 << "#SpawnTotal=" << std::setw(3) << (*fSecondary).size()
108 << " ---------------"
109 << G4endl;
110
111 for(size_t lp1=(*fSecondary).size()-tN2ndariesTot;
112 lp1<(*fSecondary).size(); lp1++)
113 {
114 G4cout << " : "
115 << std::setw(6)
116 << G4BestUnit((*fSecondary)[lp1]->GetPosition().x(),"Length")
117 << std::setw(6)
118 << G4BestUnit((*fSecondary)[lp1]->GetPosition().y(),"Length")
119 << std::setw(6)
120 << G4BestUnit((*fSecondary)[lp1]->GetPosition().z(),"Length")
121 << std::setw(6)
122 << G4BestUnit((*fSecondary)[lp1]->GetKineticEnergy(),"Energy")
123 << std::setw(10)
124 << (*fSecondary)[lp1]->GetDefinition()->GetParticleName();
125 G4cout << G4endl;
126 }
127
128 G4cout << " :-----------------------------"
129 << "----------------------------------"
130 << "-- EndOf2ndaries Info ---------------"
131 << G4endl;
132 }
133 }
134
135 }
136 G4cout.precision(prec);
137}

◆ TrackingStarted()

void F01SteppingVerbose::TrackingStarted ( )
override

Definition at line 141 of file F01SteppingVerbose.cc.

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

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

Applications | User Support | Publications | Collaboration