29 G4cout << std::setw(5) <<
"#Step#"
30 <<
" " << std::setw(6) <<
"X"
31 <<
" " << std::setw(6) <<
"Y"
32 <<
" " << std::setw(6) <<
"Z"
33 <<
" " << std::setw(9) <<
"KineE"
34 <<
" " << std::setw(9) <<
"dEStep"
35 <<
" " << std::setw(10) <<
"StepLength"
36 <<
" " << std::setw(10) <<
"TrackLength"
37 <<
" " << std::setw(10) <<
"Volume"
38 <<
" " << std::setw(10) <<
"Process" << G4endl;
40 G4cout << std::setw(5) << fTrack->GetCurrentStepNumber() <<
" " << std::setw(6)
41 << G4BestUnit(fTrack->GetPosition().x(),
"Length") << std::setw(6)
42 << G4BestUnit(fTrack->GetPosition().y(),
"Length") << std::setw(6)
43 << G4BestUnit(fTrack->GetPosition().z(),
"Length") << std::setw(6)
44 << G4BestUnit(fTrack->GetKineticEnergy(),
"Energy") << std::setw(6)
45 << G4BestUnit(fStep->GetTotalEnergyDeposit(),
"Energy") << std::setw(6)
46 << G4BestUnit(fStep->GetStepLength(),
"Length") << std::setw(6)
47 << G4BestUnit(fTrack->GetTrackLength(),
"Length") <<
" ";
49 if (fTrack->GetNextVolume() !=
nullptr) {
50 G4cout << std::setw(10) << fTrack->GetVolume()->GetName();
52 G4cout << std::setw(10) <<
"OutOfWorld";
55 if (fStep->GetPostStepPoint()->GetProcessDefinedStep() !=
nullptr) {
56 G4cout <<
" " << std::setw(10) << fStep->GetPostStepPoint()->GetProcessDefinedStep()->GetProcessName();
65 G4int tN2ndariesTot = fN2ndariesAtRestDoIt + fN2ndariesAlongStepDoIt + fN2ndariesPostStepDoIt;
67 if (tN2ndariesTot > 0) {
68 G4cout <<
" :---- List of Secondaries - "
69 <<
"#SpawnInStep = " << std::setw(3) << tN2ndariesTot <<
"(Rest = " << std::setw(2)
70 << fN2ndariesAtRestDoIt <<
", Along = " << std::setw(2) << fN2ndariesAlongStepDoIt
71 <<
", Post = " << std::setw(2) << fN2ndariesPostStepDoIt <<
"), "
72 <<
"#SpawnTotal = " << std::setw(3) << (*fSecondary).size() <<
" --------- " << G4endl;
74 for (
size_t lp1 = (*fSecondary).size() - tN2ndariesTot; lp1 < (*fSecondary).size(); lp1++) {
75 G4cout <<
" : " << std::setw(6) << G4BestUnit((*fSecondary)[lp1]->GetPosition().
x(),
"Length")
76 << std::setw(6) << G4BestUnit((*fSecondary)[lp1]->GetPosition().
y(),
"Length") << std::setw(6)
77 << G4BestUnit((*fSecondary)[lp1]->GetPosition().
z(),
"Length") << std::setw(6)
78 << G4BestUnit((*fSecondary)[lp1]->GetKineticEnergy(),
"Energy") << std::setw(10)
79 << (*fSecondary)[lp1]->GetDefinition()->GetParticleName();
83 G4cout <<
" :----------------------"
84 <<
"--------------------------"
85 <<
"-- End of Secondaries Info --------------------------------- " << G4endl;