48 G4int prec = G4cout.precision(8);
50 if (fTrack->GetDefinition()->GetParticleName() ==
"proton")
return;
53 if (fTrack->GetDefinition()->GetParticleName() ==
"e+")
return;
55 if( verboseLevel >= 1 ){
56 if( verboseLevel >= 4 ) VerboseTrack();
57 if( verboseLevel >= 3 ){
59 G4cout << std::setw( 5) <<
"#Step#" <<
" "
60 << std::setw(10) <<
"X" <<
" "
61 << std::setw(10) <<
"Y" <<
" "
62 << std::setw(10) <<
"Z" <<
" "
63 << std::setw(10) <<
"KineE" <<
" "
64 << std::setw(10) <<
"dEStep" <<
" "
65 << std::setw(10) <<
"StepLeng"
66 << std::setw(10) <<
"TrakLeng"
67 << std::setw(10) <<
"NextVolu"
68 << std::setw(10) <<
"Process"
69 << std::setw(10) <<
"Dir_x" <<
" "
70 << std::setw(10) <<
"Dir_y" <<
" "
71 << std::setw(10) <<
"Dir_z" <<
" "
75 G4cout << std::setw( 5) << fTrack->GetCurrentStepNumber() <<
" "
76 << std::setw(10) <<
G4BestUnit(fTrack->GetPosition().x(),
"Length")
77 << std::setw(10) <<
G4BestUnit(fTrack->GetPosition().y(),
"Length")
78 << std::setw(10) <<
G4BestUnit(fTrack->GetPosition().z(),
"Length")
79 << std::setw(10) <<
G4BestUnit(fTrack->GetKineticEnergy(),
"Energy")
81 GetTotalEnergyDeposit(),
"Energy")
82 << std::setw(10) <<
G4BestUnit(fStep->GetStepLength(),
"Length")
83 << std::setw(10) <<
G4BestUnit(fTrack->GetTrackLength(),
"Length");
85 if( fTrack->GetNextVolume() !=
nullptr ) {
86 G4cout << std::setw(10) << fTrack->GetVolume()->GetName();
88 G4cout << std::setw(10) <<
"OutOfWorld";
91 if(fStep->GetPostStepPoint()->GetProcessDefinedStep() !=
nullptr){
93 << std::setw(10) << fStep->GetPostStepPoint()->
94 GetProcessDefinedStep()->GetProcessName();
96 G4cout <<
" UserLimit";
108 if( verboseLevel == 2 ){
109 G4int tN2ndariesTot = fN2ndariesAtRestDoIt +
110 fN2ndariesAlongStepDoIt +
111 fN2ndariesPostStepDoIt;
113 G4cout <<
" :----- List of 2ndaries - "
114 <<
"#SpawnInStep=" << std::setw(3) << tN2ndariesTot
115 <<
"(Rest=" << std::setw(2) << fN2ndariesAtRestDoIt
116 <<
",Along=" << std::setw(2) << fN2ndariesAlongStepDoIt
117 <<
",Post=" << std::setw(2) << fN2ndariesPostStepDoIt
119 <<
"#SpawnTotal=" << std::setw(3) << (*fSecondary).size()
120 <<
" ---------------"
123 for(
size_t lp1=(*fSecondary).size()-tN2ndariesTot;
124 lp1<(*fSecondary).size(); lp1++){
127 <<
G4BestUnit((*fSecondary)[lp1]->GetPosition().x(),
"Length")
129 <<
G4BestUnit((*fSecondary)[lp1]->GetPosition().y(),
"Length")
131 <<
G4BestUnit((*fSecondary)[lp1]->GetPosition().z(),
"Length")
133 <<
G4BestUnit((*fSecondary)[lp1]->GetKineticEnergy(),
"Energy")
135 << (*fSecondary)[lp1]->GetDefinition()->GetParticleName();
139 G4cout <<
" :-----------------------------"
140 <<
"----------------------------------"
141 <<
"-- EndOf2ndaries Info ---------------"
147 G4cout.precision(prec);
156 G4int prec = G4cout.precision(3);
158 if (fTrack->GetDefinition()->GetParticleName() ==
"proton")
return;
161 if (fTrack->GetDefinition()->GetParticleName() ==
"e+")
return;
164 G4cout <<
"*******************************************************"
165 <<
"**************************************************"
167 G4cout <<
"* G4Track Information: "
168 <<
" Particle = " << fTrack->GetDefinition()->GetParticleName()
170 <<
" Track ID = " << fTrack->GetTrackID()
172 <<
" Parent ID = " << fTrack->GetParentID()
174 G4cout <<
"*******************************************************"
175 <<
"**************************************************"
179 if( verboseLevel > 0 ){
181 G4cout << std::setw( 5) <<
"Step#" <<
" "
182 << std::setw( 6) <<
"X" <<
" "
183 << std::setw( 6) <<
"Y" <<
" "
184 << std::setw( 6) <<
"Z" <<
" "
185 << std::setw( 9) <<
"KineE" <<
" "
186 << std::setw( 9) <<
"dEStep" <<
" "
187 << std::setw(10) <<
"StepLeng"
188 << std::setw(10) <<
"TrakLeng"
189 << std::setw(10) <<
"Volume" <<
" "
190 << std::setw(10) <<
"Process" << G4endl;
192 G4cout << std::setw( 5) << fTrack->GetCurrentStepNumber() <<
" "
193 << std::setw( 6) <<
G4BestUnit(fTrack->GetPosition().x(),
"Length")
194 << std::setw( 6) <<
G4BestUnit(fTrack->GetPosition().y(),
"Length")
195 << std::setw( 6) <<
G4BestUnit(fTrack->GetPosition().z(),
"Length")
196 << std::setw( 6) <<
G4BestUnit(fTrack->GetKineticEnergy(),
"Energy")
198 G4BestUnit(fStep->GetTotalEnergyDeposit(),
"Energy")
199 << std::setw( 6) <<
G4BestUnit(fStep->GetStepLength(),
"Length")
200 << std::setw( 6) <<
G4BestUnit(fTrack->GetTrackLength(),
"Length");
202 if(fTrack->GetNextVolume()){
203 G4cout << std::setw(10) << fTrack->GetVolume()->GetName();
205 G4cout << std::setw(10) <<
"OutOfWorld";
207 G4cout <<
" initStep" << G4endl;
209 G4cout.precision(prec);